jekyll-sanity 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeee8a3f6f9ebd5fc6e87d5eb4a747609373c1fc
4
- data.tar.gz: a6c34045f9dbbbd2d38465107621e9e72049e63f
3
+ metadata.gz: 6de159c1c4e1ef5eb7621545a0919fe076d33abb
4
+ data.tar.gz: 29ff9b69e7a9fa180d419627a9f9e21f306d2684
5
5
  SHA512:
6
- metadata.gz: c778c6246c57fa5f254dc1607a1612b2767717fef84f777f4968c54bf1ffbc4fc6e21810ac369f510e9a6e47f41aadc3d1e392dc3a4a77a9c602c01bbf09fc7e
7
- data.tar.gz: bf83a22d23ea06682d345db7b78b2c567fd5c731ddef9e52e1908fa65881f992da2b4fcd18b42876c498bd4f57688fa33f1fb0b95d2d43e7bd94e647e8507184
6
+ metadata.gz: 80642146cb8d535ec57d67c836a6af1b89f1b887721662261789189521acb1797e0cc0372cbaa733ce40c10af2c64efdcb072cb3f9920f78b8542630634731f8
7
+ data.tar.gz: 3fc244edd4d1f9374b33152e2ee69bdac391696f8d83d15dff1105ca640e607cf79f31b3a5c1d7be314a74f4e180d5b260e5890ff484cf4fc1af070faec721ab
@@ -24,8 +24,8 @@ module Jekyll
24
24
  })
25
25
  end
26
26
  ensure
27
- $stdout = oldo
28
- $stderr = olde
27
+ $stdout = oldo if oldo
28
+ $stderr = olde if olde
29
29
  end
30
30
 
31
31
 
@@ -35,7 +35,7 @@ module Jekyll
35
35
  # site instance at all, Jekyll is weird.
36
36
  # --
37
37
  def self.reload_config
38
- @config = nil || config
38
+ instance_variable_set(:@config, nil); config
39
39
  end
40
40
 
41
41
  # --
@@ -71,7 +71,8 @@ module Jekyll
71
71
  # --
72
72
  def self.source_dir
73
73
  @source_dir ||= begin
74
- Pathutil.new(config.fetch("source"))
74
+ Pathutil.new(config.fetch("source")). \
75
+ expand_path
75
76
  end
76
77
  end
77
78
 
@@ -82,7 +83,8 @@ module Jekyll
82
83
  # --
83
84
  def self.plugins_dir
84
85
  @plugins_dir ||= begin
85
- Pathutil.new(config.fetch("plugins_dir"))
86
+ Pathutil.new(config.fetch("plugins_dir")). \
87
+ expand_path
86
88
  end
87
89
  end
88
90
 
@@ -107,7 +109,8 @@ module Jekyll
107
109
  # --
108
110
  def self.site_dir
109
111
  @site_dir ||= begin
110
- Pathutil.new(config.fetch("destination"))
112
+ Pathutil.new(config.fetch("destination")). \
113
+ expand_path
111
114
  end
112
115
  end
113
116
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Sanity
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-sanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell