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

Utilize Environment Variables to set Dependency Versions #71

Closed
wants to merge 2 commits into from

Conversation

parkr
Copy link
Contributor

@parkr parkr commented Jun 26, 2014

@benbalter This should allow for easier testing. E.g.:

$ PAGES_JEKYLL_MENTIONS_VERSION=0.0.7 bundle install
# installs all gems, with jekyll-mentions bumped to 0.0.7

Or, just update one:

$ PAGES_JEKYLL_MENTIONS_VERSIONS=0.0.9 bundle update jekyll-mentions
# updates jekyll-mentions to 0.0.9

@ixti
Copy link

ixti commented Jun 26, 2014

@parkr I have updated my gist once again. Now it really looks clean and simple: https://gist.github.com/ixti/990f53e9d693ae075ea1

@benbalter
Copy link
Contributor

Why not have a single bit that, once flipped, initializes the DEPENDENCIES constant, but doesn't actually require add the gems to the gemspec? Testing would require you to implement any dependencies in a vanilla Gemfile?

@parkr
Copy link
Contributor Author

parkr commented Jun 27, 2014

Testing would require you to implement any dependencies in a vanilla Gemfile?

Well, this is what we do now. And we have a ton of dependencies. Unless there's a really easy way to put all of them into the Gemfile, it would be far too tedious to rewrite all of them individually in the Gemfile.

@parkr
Copy link
Contributor Author

parkr commented Jun 29, 2014

If the .gemspec is converted into YAML when the gem is built, this won't work. 😦

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.

3 participants