jekyll-sanity 1.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/sanity/version.rb +1 -1
- data/lib/jekyll/sanity.rb +15 -3
- 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: aeee8a3f6f9ebd5fc6e87d5eb4a747609373c1fc
|
4
|
+
data.tar.gz: a6c34045f9dbbbd2d38465107621e9e72049e63f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c778c6246c57fa5f254dc1607a1612b2767717fef84f777f4968c54bf1ffbc4fc6e21810ac369f510e9a6e47f41aadc3d1e392dc3a4a77a9c602c01bbf09fc7e
|
7
|
+
data.tar.gz: bf83a22d23ea06682d345db7b78b2c567fd5c731ddef9e52e1908fa65881f992da2b4fcd18b42876c498bd4f57688fa33f1fb0b95d2d43e7bd94e647e8507184
|
data/lib/jekyll/sanity.rb
CHANGED
@@ -9,11 +9,23 @@ module Jekyll
|
|
9
9
|
# --
|
10
10
|
def self.config
|
11
11
|
@config ||= begin
|
12
|
+
oldo, olde = $stdout, $stderr
|
13
|
+
$stdout, $stderr = StringIO.new, StringIO.new
|
12
14
|
file = Pathutil.pwd.join("_config.yml")
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
config = file.read_yaml(safe: true)
|
16
|
+
source = config["source"]
|
17
|
+
defs = {
|
18
|
+
"source" => Pathutil.pwd.to_s
|
19
|
+
}
|
20
|
+
|
21
|
+
config = config.merge(defs)
|
22
|
+
configuration(config).update({
|
23
|
+
"source" => source || Configuration::DEFAULTS["source"]
|
24
|
+
})
|
16
25
|
end
|
26
|
+
ensure
|
27
|
+
$stdout = oldo
|
28
|
+
$stderr = olde
|
17
29
|
end
|
18
30
|
|
19
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-sanity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|