Add #to_s method to rails version#117
Conversation
Add #to_s method to rails version
|
Thank you |
|
I wonder how many gems will have to add a |
|
Good question. Maybe if we have a lot of gems relaying on this behavior we
|
|
Depends on whether the gems interpolate it or not, I guess. :\ On Mar 23, 2013, at 8:37 PM, Rafael Mendonça França notifications@github.com wrote:
|
|
Nitpicking a bit, but this is not the right way to do it. 2.0.0p0 :020 > '4.0.0.beta1' > '4.0.0.1'
=> true
2.0.0p0 :021 > Gem::Version.new('4.0.0.beta1') > Gem::Version.new('4.0.0.1')
=> falseString comparison semantics are different from |
|
It was more about getting it to not crash at the moment. Doing it right would be a Gem::Requirement.new(">= 4.0.0.beta").satisfied_by?(Rails.version) |
|
Ah, fair enough. |
|
can we get a new version of jquery-rails with this patch, please? 😁 |
|
@guilleiguaran would be nice 👍 |
|
Waiting for release with this fix. |
now Rails.version returns an instance of Gem::Version
cc @rafaelfranca
ref rails/rails#8501, https://travis-ci.org/rails/rails/jobs/5750326