Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Sep 25, 2019
1 parent 47d2497 commit d31977f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Install Dependencies
run: gem install "rake:>=10.4.2" "minitest:>=5.4.3" --conservative --no-document
- name: Run Test
run: rake test
run: rake TEST=test/rubygems/test_build_commands.rb
1 change: 1 addition & 0 deletions Manifest.txt
Expand Up @@ -17,6 +17,7 @@ bundler/CHANGELOG.md
bundler/CODE_OF_CONDUCT.md
bundler/LICENSE.md
bundler/README.md
bundler/UPGRADING.md
bundler/bundler.gemspec
bundler/exe/bundle
bundler/exe/bundler
Expand Down
6 changes: 4 additions & 2 deletions lib/rubygems/installer.rb
Expand Up @@ -210,8 +210,8 @@ def initialize(package, options={})
#
# If +@force+ is set +filename+ is overwritten.
#
# If +filename+ exists and is a RubyGems wrapper for different gem the user
# is consulted.
# If +filename+ exists and it is a RubyGems wrapper for a different gem, then
# the user is consulted.
#
# If +filename+ exists and +@bin_dir+ is Gem.default_bindir (/usr/local) the
# user is consulted.
Expand Down Expand Up @@ -247,6 +247,8 @@ def check_executable_overwrite(filename) # :nodoc:
}x, 3)
end

puts File.read(generated_bin)

return if spec.name == existing

# somebody has written to RubyGems' directory, overwrite, too bad
Expand Down

0 comments on commit d31977f

Please sign in to comment.