jekyll 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/jekyll/layout.rb +4 -10
- data/lib/jekyll/theme.rb +7 -6
- data/lib/jekyll/version.rb +1 -1
- data/lib/theme_template/theme.gemspec.erb +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: 623eb4b161f9348d78dc2ea345b5a6cc4da0297b
|
4
|
+
data.tar.gz: 3420c64ceca3753c2c0830c158c8269bd6c92211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca9f677cb215ab07b323ab6d8245f87c3859b57eec6b21473cc8ec21eaae5475373f0779040ff022dc187013a6cb4053e45f16d0295c12a2b054f09a30dae9bf
|
7
|
+
data.tar.gz: 21301e3cc0088ef1ffba069aa0b7d19b59ffb3bfed86b575efb29fb69fb467dc51dc0a35e2ecd2db338cddc06359271d3be6a5fa25d599bf86491d82b256c00c
|
data/lib/jekyll/layout.rb
CHANGED
@@ -11,6 +11,9 @@ module Jekyll
|
|
11
11
|
# Gets the path to this layout.
|
12
12
|
attr_reader :path
|
13
13
|
|
14
|
+
# Gets the path to this layout relative to its base
|
15
|
+
attr_reader :relative_path
|
16
|
+
|
14
17
|
# Gets/Sets the extension of this layout.
|
15
18
|
attr_accessor :ext
|
16
19
|
|
@@ -37,6 +40,7 @@ module Jekyll
|
|
37
40
|
@base_dir = site.source
|
38
41
|
@path = site.in_source_dir(base, name)
|
39
42
|
end
|
43
|
+
@relative_path = @path.sub(@base_dir, "")
|
40
44
|
|
41
45
|
self.data = {}
|
42
46
|
|
@@ -52,15 +56,5 @@ module Jekyll
|
|
52
56
|
def process(name)
|
53
57
|
self.ext = File.extname(name)
|
54
58
|
end
|
55
|
-
|
56
|
-
# The path to the layout, relative to the site source.
|
57
|
-
#
|
58
|
-
# Returns a String path which represents the relative path
|
59
|
-
# from the site source to this layout
|
60
|
-
def relative_path
|
61
|
-
@relative_path ||= Pathname.new(path).relative_path_from(
|
62
|
-
Pathname.new(@base_dir)
|
63
|
-
).to_s
|
64
|
-
end
|
65
59
|
end
|
66
60
|
end
|
data/lib/jekyll/theme.rb
CHANGED
@@ -10,7 +10,11 @@ module Jekyll
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def root
|
13
|
-
|
13
|
+
# Must use File.realpath to resolve symlinks created by rbenv
|
14
|
+
# Otherwise, Jekyll.sanitized path with prepend the unresolved root
|
15
|
+
@root ||= File.realpath(gemspec.full_gem_path)
|
16
|
+
rescue Errno::ENOENT, Errno::EACCES, Errno::ELOOP
|
17
|
+
nil
|
14
18
|
end
|
15
19
|
|
16
20
|
def includes_path
|
@@ -34,11 +38,8 @@ module Jekyll
|
|
34
38
|
private
|
35
39
|
|
36
40
|
def path_for(folder)
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
path = Jekyll.sanitized_path(root, resolved_dir)
|
41
|
-
path if File.directory?(path)
|
41
|
+
path = realpath_for(folder)
|
42
|
+
path if path && File.directory?(path)
|
42
43
|
end
|
43
44
|
|
44
45
|
def realpath_for(folder)
|
data/lib/jekyll/version.rb
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
11
11
|
spec.license = "MIT"
|
12
12
|
|
13
|
-
spec.files = `git ls-files -z`.split("\x0").
|
13
|
+
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(<%= theme_directories.join("|") %>|LICENSE|README)/i}) }
|
14
14
|
|
15
15
|
spec.add_development_dependency "jekyll", "~> <%= jekyll_version_with_minor %>"
|
16
16
|
spec.add_development_dependency "bundler", "~> 1.12"
|
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.2.
|
4
|
+
version: 3.2.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: 2016-
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|