github-pages 106 → 107

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7587ed336f8d23324a4e347832ca6054fd4b5cfd
4
- data.tar.gz: 952a4676cc35e57cf10d40688e889f26dab58c64
3
+ metadata.gz: 6e93b8c1ba99999c38ba20ef3ba7469de08184e6
4
+ data.tar.gz: 000d7c670f6f439a5a88e755324aff5d80a9dc67
5
5
  SHA512:
6
- metadata.gz: d259b183f56c6f49275ae09367398064efff97415550c08feb37e29a0a085191cf6f9adaea4d33b8d03c2edc8ae2a1d2f270b80b6ee23c9e5ea4769994d72a41
7
- data.tar.gz: c921bd135dacaf6a9574dd9e262feb01b2a11cb8b1ceafa6668eb37a7fcf009363869f688f969c5050f06b36cd6762cf2b076b9ae62356da3b9f9f36b8eaca00
6
+ metadata.gz: 87c5a74947cdbc7f66eb49f9d81e143f54d3fd08d2f159d3f583c33ace1d8797dc4b075cc4f2b8c9b6daead2516e4f3e7b17b1ced34f0778b485ec059a1cd071
7
+ data.tar.gz: d12d25e9f0ec112fd94880a3a7a37b39f963a4362167e5a7874c48626dbec1192c2a0a54bed608c83680dfd2138694e8d0adacc29190b44673842e8a0628f245
@@ -4,6 +4,7 @@ require "jekyll"
4
4
 
5
5
  # Top-level namespace for all GitHub Pages-related concerns.
6
6
  module GitHubPages
7
+ autoload :Plugins, "github-pages/plugins"
7
8
  autoload :Configuration, "github-pages/configuration"
8
9
  autoload :Dependencies, "github-pages/dependencies"
9
10
  autoload :VERSION, "github-pages/version"
@@ -2,43 +2,20 @@
2
2
  require "securerandom"
3
3
 
4
4
  module GitHubPages
5
- #
5
+ # Sets and manages Jekyll configuration defaults and overrides
6
6
  class Configuration
7
- # Plugins which are activated by default
8
- DEFAULT_PLUGINS = %w(
9
- jekyll-coffeescript
10
- jekyll-gist
11
- jekyll-github-metadata
12
- jekyll-paginate
13
- jekyll-relative-links
14
- ).freeze
15
-
16
- # Plugins allowed by GitHub Pages
17
- PLUGIN_WHITELIST = %w(
18
- jekyll-coffeescript
19
- jekyll-feed
20
- jekyll-gist
21
- jekyll-github-metadata
22
- jekyll-mentions
23
- jekyll-paginate
24
- jekyll-redirect-from
25
- jekyll-seo-tag
26
- jekyll-sitemap
27
- jekyll-avatar
28
- jekyll-relative-links
29
- jemoji
30
- ).freeze
31
-
32
- # Plugins only allowed locally
33
- DEVELOPMENT_PLUGINS = %w(
34
- jekyll-admin
35
- ).freeze
7
+ # Backward compatability of constants
8
+ DEFAULT_PLUGINS = GitHubPages::Plugins::DEFAULT_PLUGINS
9
+ PLUGIN_WHITELIST = GitHubPages::Plugins::PLUGIN_WHITELIST
10
+ DEVELOPMENT_PLUGINS = GitHubPages::Plugins::DEVELOPMENT_PLUGINS
11
+ THEMES = GitHubPages::Plugins::THEMES
36
12
 
37
13
  # Default, user overwritable options
38
14
  DEFAULTS = {
39
15
  "jailed" => false,
40
- "gems" => DEFAULT_PLUGINS,
16
+ "gems" => GitHubPages::Plugins::DEFAULT_PLUGINS,
41
17
  "future" => true,
18
+ "theme" => "jekyll-theme-primer",
42
19
  "kramdown" => {
43
20
  "input" => "GFM",
44
21
  "hard_wrap" => false
@@ -66,7 +43,7 @@ module GitHubPages
66
43
  "safe" => true,
67
44
  "plugins" => SecureRandom.hex,
68
45
  "plugins_dir" => SecureRandom.hex,
69
- "whitelist" => PLUGIN_WHITELIST,
46
+ "whitelist" => GitHubPages::Plugins::PLUGIN_WHITELIST,
70
47
  "highlighter" => "rouge",
71
48
  "kramdown" => {
72
49
  "template" => "",
@@ -18,18 +18,24 @@ module GitHubPages
18
18
  "github-pages-health-check" => "1.2.0",
19
19
 
20
20
  # Plugins
21
- "jemoji" => "0.7.0",
22
- "jekyll-mentions" => "1.2.0",
23
- "jekyll-redirect-from" => "0.11.0",
24
- "jekyll-sitemap" => "0.12.0",
25
- "jekyll-feed" => "0.8.0",
26
- "jekyll-gist" => "1.4.0",
27
- "jekyll-paginate" => "1.1.0",
28
- "jekyll-coffeescript" => "1.0.1",
29
- "jekyll-seo-tag" => "2.1.0",
30
- "jekyll-github-metadata" => "2.2.0",
31
- "jekyll-avatar" => "0.4.2",
32
- "jekyll-relative-links" => "0.2.1",
21
+ "jekyll-redirect-from" => "0.11.0",
22
+ "jekyll-sitemap" => "0.12.0",
23
+ "jekyll-feed" => "0.8.0",
24
+ "jekyll-gist" => "1.4.0",
25
+ "jekyll-paginate" => "1.1.0",
26
+ "jekyll-coffeescript" => "1.0.1",
27
+ "jekyll-seo-tag" => "2.1.0",
28
+ "jekyll-github-metadata" => "2.2.0",
29
+ "jekyll-avatar" => "0.4.2",
30
+
31
+ # Plugins to match GitHub.com Markdown
32
+ "jemoji" => "0.7.0",
33
+ "jekyll-mentions" => "1.2.0",
34
+ "jekyll-relative-links" => "0.2.1",
35
+ "jekyll-optional-front-matter" => "0.1.2",
36
+ "jekyll-readme-index" => "0.0.2",
37
+ "jekyll-default-layout" => "0.1.4",
38
+ "jekyll-titles-from-headings" => "0.1.2",
33
39
 
34
40
  # Pin listen because it's broken on 2.1 & that's what we recommend.
35
41
  # https://github.com/guard/listen/pull/371
@@ -39,17 +45,11 @@ module GitHubPages
39
45
  "activesupport" => "4.2.7"
40
46
  }.freeze
41
47
 
42
- # Themes
43
- THEMES = {
44
- "minima" => "2.0.0",
45
- "jekyll-swiss" => "0.4.0"
46
- }.freeze
47
-
48
48
  # Jekyll and related dependency versions as used by GitHub Pages.
49
49
  # For more information see:
50
50
  # https://help.github.com/articles/using-jekyll-with-pages
51
51
  def self.gems
52
- VERSIONS.merge(THEMES)
52
+ VERSIONS.merge(GitHubPages::Plugins::THEMES)
53
53
  end
54
54
 
55
55
  # Versions used by GitHub Pages, including github-pages gem and ruby version
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ module GitHubPages
3
+ # Manages the constants the govern what plugins are allows on GitHub Pages
4
+ class Plugins
5
+ # Plugins which are activated by default
6
+ DEFAULT_PLUGINS = %w(
7
+ jekyll-coffeescript
8
+ jekyll-gist
9
+ jekyll-github-metadata
10
+ jekyll-paginate
11
+ jekyll-relative-links
12
+ jekyll-optional-front-matter
13
+ jekyll-readme-index
14
+ jekyll-default-layout
15
+ jekyll-titles-from-headings
16
+ ).freeze
17
+
18
+ # Plugins allowed by GitHub Pages
19
+ PLUGIN_WHITELIST = %w(
20
+ jekyll-coffeescript
21
+ jekyll-feed
22
+ jekyll-gist
23
+ jekyll-github-metadata
24
+ jekyll-paginate
25
+ jekyll-redirect-from
26
+ jekyll-seo-tag
27
+ jekyll-sitemap
28
+ jekyll-avatar
29
+ jemoji
30
+ jekyll-mentions
31
+ jekyll-relative-links
32
+ jekyll-optional-front-matter
33
+ jekyll-readme-index
34
+ jekyll-default-layout
35
+ jekyll-titles-from-headings
36
+ ).freeze
37
+
38
+ # Plugins only allowed locally
39
+ DEVELOPMENT_PLUGINS = %w(
40
+ jekyll-admin
41
+ ).freeze
42
+
43
+ # Themes
44
+ THEMES = {
45
+ "minima" => "2.0.0",
46
+ "jekyll-swiss" => "0.4.0",
47
+ "jekyll-theme-primer" => "0.1.1"
48
+ }.freeze
49
+ end
50
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GitHubPages
3
- VERSION = 106
3
+ VERSION = 107
4
4
  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: '106'
4
+ version: '107'
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-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,34 +94,6 @@ dependencies:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.2.0
97
- - !ruby/object:Gem::Dependency
98
- name: jemoji
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 0.7.0
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 0.7.0
111
- - !ruby/object:Gem::Dependency
112
- name: jekyll-mentions
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 1.2.0
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 1.2.0
125
97
  - !ruby/object:Gem::Dependency
126
98
  name: jekyll-redirect-from
127
99
  requirement: !ruby/object:Gem::Requirement
@@ -248,6 +220,34 @@ dependencies:
248
220
  - - '='
249
221
  - !ruby/object:Gem::Version
250
222
  version: 0.4.2
223
+ - !ruby/object:Gem::Dependency
224
+ name: jemoji
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '='
228
+ - !ruby/object:Gem::Version
229
+ version: 0.7.0
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '='
235
+ - !ruby/object:Gem::Version
236
+ version: 0.7.0
237
+ - !ruby/object:Gem::Dependency
238
+ name: jekyll-mentions
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - '='
242
+ - !ruby/object:Gem::Version
243
+ version: 1.2.0
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - '='
249
+ - !ruby/object:Gem::Version
250
+ version: 1.2.0
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: jekyll-relative-links
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -262,6 +262,62 @@ dependencies:
262
262
  - - '='
263
263
  - !ruby/object:Gem::Version
264
264
  version: 0.2.1
265
+ - !ruby/object:Gem::Dependency
266
+ name: jekyll-optional-front-matter
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - '='
270
+ - !ruby/object:Gem::Version
271
+ version: 0.1.2
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - '='
277
+ - !ruby/object:Gem::Version
278
+ version: 0.1.2
279
+ - !ruby/object:Gem::Dependency
280
+ name: jekyll-readme-index
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - '='
284
+ - !ruby/object:Gem::Version
285
+ version: 0.0.2
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - '='
291
+ - !ruby/object:Gem::Version
292
+ version: 0.0.2
293
+ - !ruby/object:Gem::Dependency
294
+ name: jekyll-default-layout
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - '='
298
+ - !ruby/object:Gem::Version
299
+ version: 0.1.4
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - '='
305
+ - !ruby/object:Gem::Version
306
+ version: 0.1.4
307
+ - !ruby/object:Gem::Dependency
308
+ name: jekyll-titles-from-headings
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - '='
312
+ - !ruby/object:Gem::Version
313
+ version: 0.1.2
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - '='
319
+ - !ruby/object:Gem::Version
320
+ version: 0.1.2
265
321
  - !ruby/object:Gem::Dependency
266
322
  name: listen
267
323
  requirement: !ruby/object:Gem::Requirement
@@ -318,6 +374,20 @@ dependencies:
318
374
  - - '='
319
375
  - !ruby/object:Gem::Version
320
376
  version: 0.4.0
377
+ - !ruby/object:Gem::Dependency
378
+ name: jekyll-theme-primer
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - '='
382
+ - !ruby/object:Gem::Version
383
+ version: 0.1.1
384
+ type: :runtime
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - '='
389
+ - !ruby/object:Gem::Version
390
+ version: 0.1.1
321
391
  - !ruby/object:Gem::Dependency
322
392
  name: mercenary
323
393
  requirement: !ruby/object:Gem::Requirement
@@ -414,6 +484,7 @@ files:
414
484
  - lib/github-pages.rb
415
485
  - lib/github-pages/configuration.rb
416
486
  - lib/github-pages/dependencies.rb
487
+ - lib/github-pages/plugins.rb
417
488
  - lib/github-pages/version.rb
418
489
  homepage: https://github.com/github/pages-gem
419
490
  licenses: