jekyll 3.5.0 → 3.5.1

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: a657dd9fc0fec7b9b0a13e9eb30aadd5a4c4f36c
4
- data.tar.gz: b7012ba4c8d92eb11118adc0869d10dbb3e425a0
3
+ metadata.gz: 2703d120f266bf4fa3319dea8db0bddd9e93a5f6
4
+ data.tar.gz: d7fdca32ac835ab181b160cfa21791b9a2d2b15a
5
5
  SHA512:
6
- metadata.gz: 351307bc6003b80a90335b757e25655fbf47c578fbabfb93b85774dc74a66c967b814949e8c9c8cd91c2a615ee2d83787f287f5cc59d986b7717a6bff4d5a603
7
- data.tar.gz: 90066e7822209f3ce5c62c29ba375de469260551b78363951c6907a5f1231510a2b1e72b8fc808be404a4b3bad1b5119334d270ad0c33e014b10a94d6e014f43
6
+ metadata.gz: 4bcb7cde2b2e10a65f23364915994f2c22bfe026fc331b44cf68971ac96a274af5372d84084b1e3c989d7b3e762e8a9bff6e7b968b590be6fd925edf75508345
7
+ data.tar.gz: 3c89aa0d26a9815146ea18a1f24e9c57aa80699d5f8f86fdb8422c8abb8cfa32ea89b83cb6a09d608fd1656f2aaafca8d9e709d2175d0939c845a2928e88cf75
@@ -22,9 +22,9 @@ Jekyll is a simple, blog-aware, static site generator perfect for personal, proj
22
22
 
23
23
  Jekyll does what you tell it to do — no more, no less. It doesn't try to outsmart users by making bold assumptions, nor does it burden them with needless complexity and configuration. Put simply, Jekyll gets out of your way and allows you to concentrate on what truly matters: your content.
24
24
 
25
- ## Having trouble with OS X El Capitan?
25
+ ## Having trouble with OS X/macOS?
26
26
 
27
- See: https://jekyllrb.com/docs/troubleshooting/#jekyll-amp-mac-os-x-1011
27
+ See: https://jekyllrb.com/docs/troubleshooting/
28
28
 
29
29
  ## Getting Started
30
30
 
@@ -38,7 +38,7 @@ module Jekyll
38
38
  end
39
39
 
40
40
  def deprecation_message(message)
41
- Jekyll.logger.error "Deprecation:", message
41
+ Jekyll.logger.warn "Deprecation:", message
42
42
  end
43
43
 
44
44
  def defaults_deprecate_type(old, current)
@@ -11,6 +11,7 @@ module Jekyll
11
11
  def absolute_url(input)
12
12
  return if input.nil?
13
13
  return input if Addressable::URI.parse(input).absolute?
14
+ site = @context.registers[:site]
14
15
  return relative_url(input).to_s if site.config["url"].nil?
15
16
  Addressable::URI.parse(site.config["url"] + relative_url(input)).normalize.to_s
16
17
  end
@@ -22,9 +23,9 @@ module Jekyll
22
23
  # Returns a URL relative to the domain root as a String.
23
24
  def relative_url(input)
24
25
  return if input.nil?
25
- return ensure_leading_slash(input.to_s) if sanitized_baseurl.nil?
26
+ parts = [sanitized_baseurl, input]
26
27
  Addressable::URI.parse(
27
- ensure_leading_slash(sanitized_baseurl) + ensure_leading_slash(input.to_s)
28
+ parts.compact.map { |part| ensure_leading_slash(part.to_s) }.join
28
29
  ).normalize.to_s
29
30
  end
30
31
 
@@ -40,11 +41,8 @@ module Jekyll
40
41
 
41
42
  private
42
43
 
43
- def site
44
- @context.registers[:site]
45
- end
46
-
47
44
  def sanitized_baseurl
45
+ site = @context.registers[:site]
48
46
  site.config["baseurl"].to_s.chomp("/")
49
47
  end
50
48
 
@@ -1,6 +1,6 @@
1
1
  module Jekyll
2
2
  class StaticFile
3
- attr_reader :relative_path, :extname, :name
3
+ attr_reader :relative_path, :extname, :name, :data
4
4
 
5
5
  class << self
6
6
  # The cache of last modification times [path] -> mtime.
@@ -28,10 +28,7 @@ module Jekyll
28
28
  @collection = collection
29
29
  @relative_path = File.join(*[@dir, @name].compact)
30
30
  @extname = File.extname(@name)
31
-
32
- data.default_proc = proc do |_, key|
33
- site.frontmatter_defaults.find(relative_path, type, key)
34
- end
31
+ @data = @site.frontmatter_defaults.all(relative_path, type)
35
32
  end
36
33
  # rubocop: enable ParameterLists
37
34
 
@@ -103,10 +100,6 @@ module Jekyll
103
100
  @to_liquid ||= Drops::StaticFileDrop.new(self)
104
101
  end
105
102
 
106
- def data
107
- @data ||= {}
108
- end
109
-
110
103
  def basename
111
104
  File.basename(name, extname)
112
105
  end
@@ -1,3 +1,3 @@
1
1
  module Jekyll
2
- VERSION = "3.5.0".freeze
2
+ VERSION = "3.5.1".freeze
3
3
  end
@@ -27,7 +27,7 @@ github_username: jekyll
27
27
  # Build settings
28
28
  markdown: kramdown
29
29
  theme: minima
30
- gems:
30
+ plugins:
31
31
  - jekyll-feed
32
32
 
33
33
  # Exclude from processing.
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.5.0
4
+ version: 3.5.1
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-06-18 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable