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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 244e74fd5255bd63d91a4484e2f91fb446b4d355
4
- data.tar.gz: b5d00e54eb52577e9e1a4b213f583aff663a660e
3
+ metadata.gz: aeee8a3f6f9ebd5fc6e87d5eb4a747609373c1fc
4
+ data.tar.gz: a6c34045f9dbbbd2d38465107621e9e72049e63f
5
5
  SHA512:
6
- metadata.gz: 1d1b55e9ffbafd514269a73b45cd9d380d7c53d846716e2be9b3f2ceceafbf3663ff8441965a880e4939a8ad7a32ca3c27eba05af38fff4c0f84d58d64e0e193
7
- data.tar.gz: e83c98ed92b4aba742cf1534179b22c7e4557260aac7dbc8c9129931bc4b0a00c1ad28b5dd3b07c24306c762f0114cdc2898fa963d34a954a50bcda129ec0855
6
+ metadata.gz: c778c6246c57fa5f254dc1607a1612b2767717fef84f777f4968c54bf1ffbc4fc6e21810ac369f510e9a6e47f41aadc3d1e392dc3a4a77a9c602c01bbf09fc7e
7
+ data.tar.gz: bf83a22d23ea06682d345db7b78b2c567fd5c731ddef9e52e1908fa65881f992da2b4fcd18b42876c498bd4f57688fa33f1fb0b95d2d43e7bd94e647e8507184
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Sanity
3
- VERSION = "1.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
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
- Jekyll.configuration(file.read_yaml({
14
- safe: true
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: '1.0'
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-10 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec