-
Notifications
You must be signed in to change notification settings - Fork 349
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
Output the dependency versions for this build of Pages. #73
Conversation
This allows easy access to the Gemfile bundler directives, which may be easily used to tweak versions for upgrades, etc.
@benbalter Gem dependencies can't actually be modified at runtime... SO making it easier to get all the directives was all I could think of. An alternative to this is to say gem "github-pages", :git => "git://github.com/github/pages-gem", :branch => "branch_name" Anything to make it easier to bump. |
@@ -20,6 +20,10 @@ def self.gems | |||
} | |||
end | |||
|
|||
def self.gem_directives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this does not belong here. It should be in bin
script directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Perhaps |
'versions' prints out the gem declarations for the individual dependencies. 'br' prints out the gem declaration for this gem, based on its repo and the branch name provided.
@benbalter Done! |
|
Output the dependency versions for this build of Pages.
This allows easy access to the Gemfile bundler directives, which may
be easily used to tweak versions for upgrades, etc.
An alternative to #71.
Usage:
Individual dependencies
$ bundle exec github-pages versions
github-pages
gem git directive$ bundle exec github-pages br [branch_name]
Using in your project