jekyll 3.2.0 → 3.2.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: fb6d09c543908a9e92a03dec3e709e25bb0a291f
4
- data.tar.gz: 3b306c86e96b2cf1ec0a4f7bf00abc1ef5970d02
3
+ metadata.gz: 623eb4b161f9348d78dc2ea345b5a6cc4da0297b
4
+ data.tar.gz: 3420c64ceca3753c2c0830c158c8269bd6c92211
5
5
  SHA512:
6
- metadata.gz: 4df49dea68ad05648ea7d75a7142b57948f11a011d78810150253190de4c17e074278394a0e757ff4ac868883ad0ca7d7cc8a868a4e2d9bdad7da3bb2fb00042
7
- data.tar.gz: 6a31318b580d36092a51a128f2ad8e8cec93251ac5c83c2b9be8517e965515520914013938c1c2babe3a51afb2685f42fb0aea0e6b61ae84c6fb02b259d84ed6
6
+ metadata.gz: ca9f677cb215ab07b323ab6d8245f87c3859b57eec6b21473cc8ec21eaae5475373f0779040ff022dc187013a6cb4053e45f16d0295c12a2b054f09a30dae9bf
7
+ data.tar.gz: 21301e3cc0088ef1ffba069aa0b7d19b59ffb3bfed86b575efb29fb69fb467dc51dc0a35e2ecd2db338cddc06359271d3be6a5fa25d599bf86491d82b256c00c
@@ -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
@@ -10,7 +10,11 @@ module Jekyll
10
10
  end
11
11
 
12
12
  def root
13
- @root ||= gemspec.full_gem_path
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
- resolved_dir = realpath_for(folder)
38
- return unless resolved_dir
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)
@@ -1,3 +1,3 @@
1
1
  module Jekyll
2
- VERSION = "3.2.0".freeze
2
+ VERSION = "3.2.1".freeze
3
3
  end
@@ -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").reject { |f| f.match(%r{^(<%= theme_directories.join("|") %>)/}) }
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.0
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-07-28 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid