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 +4 -4
- data/README.markdown +2 -2
- data/lib/jekyll/deprecator.rb +1 -1
- data/lib/jekyll/filters/url_filters.rb +4 -6
- data/lib/jekyll/static_file.rb +2 -9
- data/lib/jekyll/version.rb +1 -1
- data/lib/site_template/_config.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2703d120f266bf4fa3319dea8db0bddd9e93a5f6
|
4
|
+
data.tar.gz: d7fdca32ac835ab181b160cfa21791b9a2d2b15a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcb7cde2b2e10a65f23364915994f2c22bfe026fc331b44cf68971ac96a274af5372d84084b1e3c989d7b3e762e8a9bff6e7b968b590be6fd925edf75508345
|
7
|
+
data.tar.gz: 3c89aa0d26a9815146ea18a1f24e9c57aa80699d5f8f86fdb8422c8abb8cfa32ea89b83cb6a09d608fd1656f2aaafca8d9e709d2175d0939c845a2928e88cf75
|
data/README.markdown
CHANGED
@@ -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
|
25
|
+
## Having trouble with OS X/macOS?
|
26
26
|
|
27
|
-
See: https://jekyllrb.com/docs/troubleshooting
|
27
|
+
See: https://jekyllrb.com/docs/troubleshooting/
|
28
28
|
|
29
29
|
## Getting Started
|
30
30
|
|
data/lib/jekyll/deprecator.rb
CHANGED
@@ -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
|
-
|
26
|
+
parts = [sanitized_baseurl, input]
|
26
27
|
Addressable::URI.parse(
|
27
|
-
|
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
|
|
data/lib/jekyll/static_file.rb
CHANGED
@@ -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
|
data/lib/jekyll/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|