hiera-simulator 0.2.2 → 0.2.3
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/Gemfile.lock +3 -3
- data/README.md +1 -0
- data/lib/hiera-simulator/hieralookup.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53c835b4c42499249861888e4cbaec409f8586da
|
|
4
|
+
data.tar.gz: ff9dae5c9fedd76274e6878bc231f3e85a8a5ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 557939001261bf5fc76e049c1c6067f5aaa741ae79b67decdec293c528d16692269d914e5730824aec6a067da62b27133f35e381a51e3c2bd4aaa49c66278bf8
|
|
7
|
+
data.tar.gz: 40d8f83fbb5a836c1286b7d78ca695e966311357b7f574b57adeae04fbb266fe36481287dd134315690e9d0fd2293cf6fe64dafc8b08391de1a41414970c2555
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
hiera-simulator (0.2.
|
|
4
|
+
hiera-simulator (0.2.3)
|
|
5
5
|
bundler
|
|
6
6
|
deep_merge
|
|
7
7
|
hiera
|
|
@@ -14,7 +14,7 @@ GEM
|
|
|
14
14
|
specs:
|
|
15
15
|
deep_merge (1.0.1)
|
|
16
16
|
diff-lcs (1.2.5)
|
|
17
|
-
hiera (3.1.
|
|
17
|
+
hiera (3.1.2)
|
|
18
18
|
json_pure
|
|
19
19
|
httparty (0.13.7)
|
|
20
20
|
json (~> 1.8)
|
|
@@ -45,4 +45,4 @@ DEPENDENCIES
|
|
|
45
45
|
rspec (>= 3.0.0)
|
|
46
46
|
|
|
47
47
|
BUNDLED WITH
|
|
48
|
-
1.
|
|
48
|
+
1.12.3
|
data/README.md
CHANGED
|
@@ -45,6 +45,7 @@ Here are the important ones:
|
|
|
45
45
|
|
|
46
46
|
| Version | Notes |
|
|
47
47
|
|---------|-------|
|
|
48
|
+
| 0.2.3 | Resolve `No such file or directory @ unlink_internal` error unlinking hiera config file if value wasn't found |
|
|
48
49
|
| 0.2.2 | Raise error directly if PuppetDB responds with code 200 but has an error message |
|
|
49
50
|
| 0.2.1 | Remove PuppetDB hiera backend support, add --[no-]stringify-facts command line option |
|
|
50
51
|
| 0.2.0 | Add support for PuppetDB API v4 |
|
|
@@ -14,7 +14,7 @@ module HieraSimulator
|
|
|
14
14
|
hiera = Hiera.new(config: hiera_tmp_config)
|
|
15
15
|
Hiera.logger = options.fetch(:verbose, false) ? 'console' : 'noop'
|
|
16
16
|
result = hiera.lookup(key, nil, facts, nil, options.fetch(:resolution_type, :priority))
|
|
17
|
-
File.unlink(hiera_tmp_config)
|
|
17
|
+
File.unlink(hiera_tmp_config) if File.file?(hiera_tmp_config)
|
|
18
18
|
result
|
|
19
19
|
end
|
|
20
20
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hiera-simulator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Paulisse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
156
|
rubyforge_project:
|
|
157
|
-
rubygems_version: 2.
|
|
157
|
+
rubygems_version: 2.5.1
|
|
158
158
|
signing_key:
|
|
159
159
|
specification_version: 4
|
|
160
160
|
summary: Determine what hiera would output for a set of facts
|