-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Consider adding ./VERSION file to gemspec in order to support local unpacking. #1308
Comments
Do you know why this one doesn't work? |
I expect it would. The issue is that the gemspec has a dependency on the existence of the '../VERSION' file and running bundle install on the locally unpacked gem trips over the unsatisfied dependency. I could have copied the one from the project to fix my problem, but the issue is that it would be easier if it came with the unpacked gem in the first place. I expect that adding "VERSION" to the s.files section of the gemspec would fix the problem, but I don't really have the experience to say whether it's the best solution or that the issue even warrants the effort. |
Ahh sorry, this must have been an oversight. Could you send a patch? 🙇 |
@zzak I made a patch. |
Ruby Version: 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]
Procedure to reproduce:
Unpack gem locally:
Create Gemfile:
Run bundler:
Output:
Local Fix:
Create local
./sinatra-2.0.0/VERSION
file with following contents:The text was updated successfully, but these errors were encountered: