-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RubyGems 1.3.6 does not ‘~>’ with a prerelease version. #398
Comments
Which RubyGems version does ML ship with? |
Here you go, my setup is vanilla Mountain Lion GM:
I'm not sure if you want to consider ML bugs yet, but as the release is just a few days away and this is expected to be the final version, I figured you would be interested to know how Cocoapods behaves on that new platform. |
Definitely, but I’ll have to install it first to do some proper debugging. Version 1.3.6 should be good, but in the meantime, could you update RubyGems and see if that fixes it?
|
Installing RubyGem 1.8.24 fixes the problem, thanks! Please note that JSONKit is the only package among the 25 pods our project uses that behaved this way. Other packages with a My latest setup (which fixes the bug):
|
Damn, it’s a real shame Apple did not upgrade Ruby or RubyGems. I think the fix for this issue was in RubyGems 1.4.0: Dependency “~>”s now respect lower-bound prerelease versions. We’ll probably have to back port that to 1.3.6 by monkey-patching :( |
(Btw, I have update the title to reflect the issue.) |
So this issue would also impact a vanilla Lion install, right? |
Indeed, so I will have to push out a fix for this ASAP. |
Unfortunately trying to backport the fixes meant vendoring so much RubyGems code, that I decided to just have the user update their version. We now exit immediately with a helpful error message telling the user to update. |
Upgrade to Flurry v4.0.1
Closes #398. Unfortunately, OS X >= 10.7 ships with 1.3.6 :(
I just updated to Mountain Lion, installed Cocoapods 0.8.0 and ran pod install to checkout the dependencies of our project. This includes RestKit 0.10.1, which requires JSONKit 1.5pre. Problem is, JSONKit 1.4 gets installed instead.
The RestKit 0.10.1 Podspec contains the
jos.dependency 'JSONKit', '>= 1.5pre'
statement to require JSONKit, and JSONKit exists in 1.4 and 1.5pre versions. If I change that statement tojos.dependency 'JSONKit', '1.5pre'
it works fine and installs 1.5pre. If I change it tojos.dependency 'JSONKit', '> 1.4'
it fails with the following error:I suspect there is an issue with the ranking algorithm, and the '1.5pre' version does not look very standard. My Ruby context is as follows:
The text was updated successfully, but these errors were encountered: