jekyll 3.6.1 → 3.6.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da4a384123184e24eac3e77cca8dfe0ddc86c55c
4
- data.tar.gz: 1b50d6473eae20b98d00816f179e1a244463c68f
3
+ metadata.gz: 0c8892e6c24d91e7bb872ababcdf1fc3c473fb2a
4
+ data.tar.gz: f65449e305df03d45e5981cd20758880e0d64e3b
5
5
  SHA512:
6
- metadata.gz: 1521cccd09c634740f50581b5263a437b51df9f2c3d008aa80cea2cc94c3b09968ab9e96b686c50cbe7e9fbc3c92707e18d5c0525f2a5a6553912d9da6b2e2de
7
- data.tar.gz: 7df670b70cb204ad179f07e111c707f365fae94d9ff3ae14b5bf4daa820fc84e70f99281a9e153a74829890e6eafb9ad7e4b4d422f7c4123b0cc88d3cc06e988
6
+ metadata.gz: d2bf3e0ff6ddbbe01bbe533598776c4080d905b43f01f01c059518afd39fa37ee0dcd9cfc1018137149e685260c2a23928428ba0afafd07f52b466c49bd93e20
7
+ data.tar.gz: 8effefaa97451ea446b29eec58e77dc04fed9626d960fdb2ce38455ba263d959f78cfafdd38f525cfdbadd3865a7477c21f7fdb9c792eb1f355a618b97508410
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  AllCops:
3
- TargetRubyVersion: 2.0
3
+ TargetRubyVersion: 2.1
4
4
  Include:
5
5
  - lib/**/*.rb
6
6
  Exclude:
@@ -117,8 +117,6 @@ Style/Documentation:
117
117
  - !ruby/regexp /features\/.*.rb$/
118
118
  Style/DoubleNegation:
119
119
  Enabled: false
120
- Style/Encoding:
121
- EnforcedStyle: when_needed
122
120
  Style/GuardClause:
123
121
  Enabled: false
124
122
  Style/HashSyntax:
@@ -96,7 +96,7 @@ module Jekyll
96
96
  )
97
97
  end
98
98
  end
99
- end # end of class << self
99
+ end
100
100
  end
101
101
  end
102
102
  end
@@ -206,7 +206,7 @@ module Jekyll
206
206
  rescue ArgumentError => err
207
207
  Jekyll.logger.warn "WARNING:", "Error reading configuration. " \
208
208
  "Using defaults (and options)."
209
- $stderr.puts err
209
+ warn err
210
210
  end
211
211
 
212
212
  configuration.fix_common_issues.backwards_compatibilize.add_default_collections
@@ -47,7 +47,7 @@ class Jekyll::Converters::Markdown::RedcarpetParser
47
47
  end
48
48
 
49
49
  module WithRouge
50
- def block_code(code, lang)
50
+ def block_code(_code, lang)
51
51
  code = "<pre>#{super}</pre>"
52
52
 
53
53
  "<div class=\"highlight\">#{add_code_tags(code, lang)}</div>"
@@ -143,7 +143,7 @@ module Jekyll
143
143
  # Returns String rendered content
144
144
  def place_in_layouts(content, payload, info)
145
145
  output = content.dup
146
- layout = layouts[document.data["layout"]]
146
+ layout = layouts[document.data["layout"].to_s]
147
147
  validate_layout(layout)
148
148
 
149
149
  used = Set.new([layout])
@@ -444,6 +444,7 @@ module Jekyll
444
444
  def configure_file_read_opts
445
445
  self.file_read_opts = {}
446
446
  self.file_read_opts[:encoding] = config["encoding"] if config["encoding"]
447
+ self.file_read_opts = Jekyll::Utils.merged_file_read_opts(self, {})
447
448
  end
448
449
 
449
450
  private
@@ -301,6 +301,9 @@ module Jekyll
301
301
  # and a given param
302
302
  def merged_file_read_opts(site, opts)
303
303
  merged = (site ? site.file_read_opts : {}).merge(opts)
304
+ if merged[:encoding] && !merged[:encoding].start_with?("bom|")
305
+ merged[:encoding] = "bom|#{merged[:encoding]}"
306
+ end
304
307
  if merged["encoding"] && !merged["encoding"].start_with?("bom|")
305
308
  merged["encoding"] = "bom|#{merged["encoding"]}"
306
309
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jekyll
4
- VERSION = "3.6.1".freeze
4
+ VERSION = "3.6.2".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2017-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable