github-pages 60 → 61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/github-pages +2 -2
  3. data/lib/github-pages.rb +10 -56
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0df5e80194a97df98a47e6a66ec93d9ae5785b17
4
- data.tar.gz: 9c391ebff93342839332841e49f68b9f20b2335b
3
+ metadata.gz: 947979e5fe5eabfdfa234fd3f042b1a40b94fab6
4
+ data.tar.gz: ed1fcd0afb78520c9c957ae83e4a78aba8fbb2f8
5
5
  SHA512:
6
- metadata.gz: cb3ad43ab56fcdffe8d01750394b50a7fb1be5dcf50e57a6e184444459bd104fdb216bf2615012497ce660eeae36bc475f16b85e12c36e2025fb088112cdd723
7
- data.tar.gz: 84d936ced542c619227a4c74a6ca7e628de58dd201bf9d94f4f5d44ce7486c0cf9ac48861a55c7e84869c7c7b75759529d5c7cc543c5007bd1f150480f5ede6a
6
+ metadata.gz: b0cba9eaa7e7fd9287335cf8663a289feff67a2b599fb34b0fd292218d9d25df1b65b01620306d54a1d9c5d2516af8824cbe2e05cace5c8aaea78eb50675b8e5
7
+ data.tar.gz: c6e6d5f4b04d6116863c931ee1fc9f44c0f85ef7675f07731e978082534156979240c6355512e622be7fc78972fc4f644928987d379d0d1c7d3957d6dd734abe
@@ -15,10 +15,10 @@ Mercenary.program(:"github-pages") do |p|
15
15
  c.option "gemfile", "--gemfile", "use Gemfile formatting"
16
16
  c.action do |args, options|
17
17
  if options["gemfile"]
18
- GitHubPages.gems.each { |g,v| puts "gem '#{g}', '#{v}'" }
18
+ GitHubPages::Dependencies.gems.each { |g,v| puts "gem '#{g}', '#{v}'" }
19
19
  else
20
20
  require 'terminal-table'
21
- versions = options['all'] ? GitHubPages.versions : GitHubPages.gems
21
+ versions = options['all'] ? GitHubPages::Dependencies.versions : GitHubPages::Dependencies.gems
22
22
  puts Terminal::Table.new :rows => versions, :headings => ["Gem", "Version"]
23
23
  end
24
24
  end
@@ -1,62 +1,16 @@
1
- # Jekyll and related dependency versions as used by GitHub Pages.
2
- # For more information see:
3
- # https://help.github.com/articles/using-jekyll-with-pages
4
- module GitHubPages
5
- VERSION = 60
6
-
7
- def self.gems
8
- {
9
- # Jekyll
10
- "jekyll" => "3.0.3",
11
- "jekyll-sass-converter" => "1.3.0",
12
- "jekyll-textile-converter" => "0.1.0",
13
-
14
- # Converters
15
- "kramdown" => "1.10.0",
16
- "rdiscount" => "2.1.8",
17
- "redcarpet" => "3.3.3",
18
- "RedCloth" => "4.2.9",
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ require "jekyll"
19
3
 
20
- # Liquid
21
- "liquid" => "3.0.6",
22
-
23
- # Highlighters
24
- "rouge" => "1.10.1",
25
-
26
- # Plugins
27
- "jemoji" => "0.5.1",
28
- "jekyll-mentions" => "1.0.1",
29
- "jekyll-redirect-from" => "0.9.1",
30
- "jekyll-sitemap" => "0.10.0",
31
- "jekyll-feed" => "0.4.0",
32
- "jekyll-gist" => "1.4.0",
33
- "jekyll-paginate" => "1.1.0",
34
- "github-pages-health-check" => "1.1.0",
35
- "jekyll-coffeescript" => "1.0.1",
36
- "jekyll-seo-tag" => "1.3.2",
37
- "jekyll-github-metadata" => "1.9.0"
38
- }
39
- end
4
+ # Top-level namespace for all GitHub Pages-related concerns.
5
+ module GitHubPages
6
+ autoload :Configuration, "github-pages/configuration"
7
+ autoload :Dependencies, "github-pages/dependencies"
40
8
 
41
- # Versions used by GitHub Pages, including github-pages gem and ruby version
42
- # Useful for programmatically querying for the current-running version
43
9
  def self.versions
44
- gems.merge deps_version_report
10
+ Dependencies.versions
45
11
  end
12
+ end
46
13
 
47
- def self.deps_version_report
48
- require "html/pipeline/version"
49
- require "sass/version"
50
- require "safe_yaml/version"
51
-
52
- {
53
- "ruby" => RUBY_VERSION,
54
-
55
- # Gem versions we're curious about
56
- "github-pages" => VERSION.to_s,
57
- "html-pipeline" => HTML::Pipeline::VERSION,
58
- "sass" => Sass.version[:number],
59
- "safe_yaml" => SafeYAML::VERSION
60
- }
61
- end
14
+ Jekyll::Hooks.register :site, :after_reset do |site|
15
+ GitHubPages::Configuration.set(site)
62
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: '60'
4
+ version: '61'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll