github-pages 145 → 146

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: 03c194e001bf8d767f03f85d68a1ca03b996a319
4
- data.tar.gz: da0faf4eeed7c4f3cae67e81a51703656bfa63ce
3
+ metadata.gz: 3452fa8d2e89e11358362570bc8086e2cc02abd7
4
+ data.tar.gz: f80e078ca0c05736dccc47beb03a83c8e3be4dd3
5
5
  SHA512:
6
- metadata.gz: c15416a40211b02a5d06ef9e192d8fe730bcd77be4f86103b0a21e8afc8ad243fef29599c7864e63fe661bb81a81b210dcc927a6eeca755f2a9f28883b4aae00
7
- data.tar.gz: 3ab06d215b9a6249ebaffb7bd0f293a3b9a34290d54326c42641386dfab3c4929189f3327a5bb58399301b00b28c0ab091a9307ba0b7a1038cb794d4d991acad
6
+ metadata.gz: 77aed80494b99bb92ff35e5820b2ff19274a6c7c6e52484a071540351d098bd4215813592409d771300579d31c30f77100001bc029802cdd78cc4c866c66e6f1
7
+ data.tar.gz: 48c391a7bb3b14be1df9c57cdfa4803161e84d285686eaa40afc1adf1a2b7a3fef1d5588526fd6dc725e58a74bf509b9d54d02769d5332522a59109832313d72
@@ -24,11 +24,12 @@ module GitHubPages
24
24
  },
25
25
  }.freeze
26
26
 
27
- # Jekyll defaults merged with Pages defaults.
28
- MERGED_DEFAULTS = Jekyll::Utils.deep_merge_hashes(
29
- Jekyll::Configuration::DEFAULTS,
30
- DEFAULTS
31
- ).freeze
27
+ # User-overwritable defaults used only in production for practical reasons
28
+ PRODUCTION_DEFAULTS = Jekyll::Utils.deep_merge_hashes DEFAULTS, {
29
+ "sass" => {
30
+ "style" => "compressed",
31
+ },
32
+ }.freeze
32
33
 
33
34
  # Options which GitHub Pages sets, regardless of the user-specified value
34
35
  #
@@ -82,6 +83,11 @@ module GitHubPages
82
83
  Jekyll.env == "development"
83
84
  end
84
85
 
86
+ def defaults_for_env
87
+ defaults = development? ? DEFAULTS : PRODUCTION_DEFAULTS
88
+ Jekyll::Utils.deep_merge_hashes Jekyll::Configuration::DEFAULTS, defaults
89
+ end
90
+
85
91
  # Given a user's config, determines the effective configuration by building a user
86
92
  # configuration sandwhich with our overrides overriding the user's specified
87
93
  # values which themselves override our defaults.
@@ -91,7 +97,7 @@ module GitHubPages
91
97
  # Note: this is a highly modified version of Jekyll#configuration
92
98
  def effective_config(user_config)
93
99
  # Merge user config into defaults
94
- config = Jekyll::Utils.deep_merge_hashes(MERGED_DEFAULTS, user_config)
100
+ config = Jekyll::Utils.deep_merge_hashes(defaults_for_env, user_config)
95
101
  .fix_common_issues
96
102
  .add_default_collections
97
103
 
@@ -16,7 +16,7 @@ module GitHubPages
16
16
  # Misc
17
17
  "liquid" => "3.0.6",
18
18
  "rouge" => "1.11.1",
19
- "github-pages-health-check" => "1.3.4",
19
+ "github-pages-health-check" => "1.3.5",
20
20
 
21
21
  # Plugins
22
22
  "jekyll-redirect-from" => "0.12.1",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHubPages
4
- VERSION = 145
4
+ VERSION = 146
5
5
  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: '145'
4
+ version: '146'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-18 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.4
89
+ version: 1.3.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.3.4
96
+ version: 1.3.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jekyll-redirect-from
99
99
  requirement: !ruby/object:Gem::Requirement