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 948c451
Show file tree
Hide file tree
Showing 2 changed files with 7 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
8 changes: 6 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,10 @@ def check_executable_overwrite(filename) # :nodoc:
}x, 3)
end

puts File.read(generated_bin)

puts "Installing spec: #{spec.name}; Existing spec: #{existing}"

return if spec.name == existing

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

0 comments on commit 948c451

Please sign in to comment.