jekyll-sanity 1.1.0 → 1.2.0
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.
- checksums.yaml +4 -4
- data/lib/jekyll/sanity.rb +9 -6
- data/lib/jekyll/sanity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6de159c1c4e1ef5eb7621545a0919fe076d33abb
|
4
|
+
data.tar.gz: 29ff9b69e7a9fa180d419627a9f9e21f306d2684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80642146cb8d535ec57d67c836a6af1b89f1b887721662261789189521acb1797e0cc0372cbaa733ce40c10af2c64efdcb072cb3f9920f78b8542630634731f8
|
7
|
+
data.tar.gz: 3fc244edd4d1f9374b33152e2ee69bdac391696f8d83d15dff1105ca640e607cf79f31b3a5c1d7be314a74f4e180d5b260e5890ff484cf4fc1af070faec721ab
|
data/lib/jekyll/sanity.rb
CHANGED
@@ -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
|
-
|
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
|