hiera-simulator 0.2.2 → 0.2.3

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: 0916abf46cbd4952f409917b63b12f650429e5ba
4
- data.tar.gz: 2a6ad789894a3010e9791139c340000543257d42
3
+ metadata.gz: 53c835b4c42499249861888e4cbaec409f8586da
4
+ data.tar.gz: ff9dae5c9fedd76274e6878bc231f3e85a8a5ac4
5
5
  SHA512:
6
- metadata.gz: bf6660801c35ab1258daf3040dc939438d7b495d85b35131500cb924ac443de5535545b878d0de2dc5cea3a53e486fd1424e801f3a5f11fefcc1b9c75f447e57
7
- data.tar.gz: 21bf2b36c8a84e42348d08d9a31d7ec32a53cbd9e731529598e763f2bdca0d01569d2351c0e8b2aaba90bd92175cf81abd0b552ece8d0a902dc3fb9ecf5852a7
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.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.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.11.2
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.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-04-11 00:00:00.000000000 Z
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.2.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