Skip to content

Commit

Permalink
Dynamically load GitHub Pages dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jabenninghoff committed Nov 20, 2016
1 parent 0c87c08 commit b0c30db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
source 'https://rubygems.org'
ruby '2.3.1'
gem 'github-pages', '104', group: :jekyll_plugins

require 'json'
require 'open-uri'
version = JSON.parse(open('https://pages.github.com/versions.json').read)

ruby version['ruby']
gem 'github-pages', version['github-pages'], group: :jekyll_plugins
gem 'html-proofer', group: :htmlproofer
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ PLATFORMS
DEPENDENCIES
github-pages (= 104)
html-proofer
json

RUBY VERSION
ruby 2.3.1p112
Expand Down

0 comments on commit b0c30db

Please sign in to comment.