Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Bundler >= 1.9.0 fails to create gem plugins #3603

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Bundler >= 1.9.0 fails to create gem plugins #3603

merged 1 commit into from
Apr 30, 2015

Conversation

amatsuda
Copy link
Member

Since 17a4fc4 (#3123), any gem name starting with an
existing const name has been regarded as "Invalid gem name" by bundle gem command.
However, "gem-foo" or "rails-bar" should be totally valid and rather preferable
naming for plugins for RubyGems/Rails.

This patch changes the rule to raise error only when the new gem name fully
matches an existing const name.

invalid: gem, gem-version (because Gem::Version already exists)
valid : gem-foobar, gem-version-foobar (when FooBarmodule does not exist)

@indirect
Copy link
Member

Oh no! Thank you for fixing this. I will merge it to the 1.9 branch.

@indirect
Copy link
Member

@amatsuda it seems like the tests are failing on older Rubies. Could you check the test failures on Travis?

Since 17a4fc4, any gem name starting with an
existing const name has been regarded as "Invalid gem name" by `bundle gem` command.
However, "gem-foo" or "rails-bar" should be totally valid and rather preferable
naming for plugins for RubyGems/Rails.

This commit changes the rule to raise error only when the new gem name fully
matches an existing const name.
@amatsuda
Copy link
Member Author

@indirect Oh, sorry! Writing code that works on Ruby 1.8.7..2.2 is so hard! You're really doing a great job here!
Fixed and push -fed the patch. Hope it works now..

@indirect
Copy link
Member

Thanks!

indirect added a commit that referenced this pull request Apr 30, 2015
…_starting_with_an_existing_const

Bundler >= 1.9.0 fails to create gem plugins
@indirect indirect merged commit 4958fdc into rubygems:master Apr 30, 2015
@amatsuda amatsuda deleted the bundle_gem_hyphenated_gem_name_starting_with_an_existing_const branch April 30, 2015 08:32
@amatsuda
Copy link
Member Author

🍰

@coilysiren coilysiren modified the milestone: Release Archive Oct 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants