Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore but deprecate support for Array values on Gem.paths= #1514

Merged
merged 1 commit into from Feb 27, 2016

Conversation

tenderlove
Copy link
Contributor

Some users (most notably Spring users with generated bin files) are
passing Arrays as values in the hash to Gem.paths=. This commit
restores support for Array values but issues a deprecation warning. The
point is to warn people about their broken code, but allow RubyGems to
continue to work, thus reducing "upgrade friction".

@drbrain I'm not sure about the deprecation cycle, so I just added a deprecation message. In what version should we drop support for this?

/cc @jonleighton

Some users (most notably Spring users with generated bin files) are
passing Arrays as values in the hash to `Gem.paths=`.  This commit
restores support for Array values but issues a deprecation warning.  The
point is to warn people about their broken code, but allow RubyGems to
continue to work, thus reducing "upgrade friction".
@segiddins
Copy link
Member

👍

@indirect
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Feb 27, 2016

📌 Commit a6b69e9 has been approved by indirect

@homu
Copy link
Contributor

homu commented Feb 27, 2016

⚡ Test exempted - status

@homu homu merged commit a6b69e9 into rubygems:master Feb 27, 2016
homu added a commit that referenced this pull request Feb 27, 2016
restore but deprecate support for Array values on `Gem.paths=`

Some users (most notably Spring users with generated bin files) are
passing Arrays as values in the hash to `Gem.paths=`.  This commit
restores support for Array values but issues a deprecation warning.  The
point is to warn people about their broken code, but allow RubyGems to
continue to work, thus reducing "upgrade friction".

@drbrain I'm not sure about the deprecation cycle, so I just added a deprecation message.  In what version should we drop support for this?

/cc @jonleighton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants