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

Output the dependency versions for this build of Pages. #73

Merged
merged 6 commits into from
Jul 1, 2014

Conversation

parkr
Copy link
Contributor

@parkr parkr commented Jun 29, 2014

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

$ bundle exec github-pages versions | pbcopy
# comment out the gem "github-pages" directive, replace with contents of clipboard
# bump versions of gems you're interested in.
$ bundle update # does it work?
$ bundle exec rake test # does your app/site still build with the new versions?
$ # if it all works out, go submit a PR to pages-gem.

This allows easy access to the Gemfile bundler directives, which may
be easily used to tweak versions for upgrades, etc.
@parkr
Copy link
Contributor Author

parkr commented Jun 29, 2014

@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 github-pages <branch_name> and for it to spit out:

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
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@benbalter
Copy link
Contributor

Perhaps github-pages versions or something similar to give us an entire namespace, rather than a unitasker?

'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.
@parkr
Copy link
Contributor Author

parkr commented Jun 30, 2014

@benbalter Done!

@benbalter
Copy link
Contributor

:shipit:

parkr added a commit that referenced this pull request Jul 1, 2014
Output the dependency versions for this build of Pages.
@parkr parkr merged commit 8e1f7fd into master Jul 1, 2014
@parkr parkr deleted the gimme-gem-directives branch July 1, 2014 20:33
@parkr parkr added this to the 20 milestone Jul 1, 2014
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.

None yet

3 participants