simp-beaker-helpers 1.21.3 → 1.21.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/simp/beaker_helpers.rb +2 -5
- data/lib/simp/beaker_helpers/version.rb +1 -1
- data/simp-beaker-helpers.gemspec +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843c00fb877d83ee9cd76a342b122923764e67452b3e8974de7232193d31d387
|
4
|
+
data.tar.gz: 195e83133f422f09bf168870c7acafbea8c59ed22c0bae7aea87126c4248349a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ba248b4786e0950a8f6df44e6f697e7d4f83603334e101dc49c3096403d5ded68aaf3c98845cd6b1046706021c2957556b80d792f6588e9f6a6eee9184ba4f9
|
7
|
+
data.tar.gz: 40d7e4f4a8ea7ab2b6d3d841be12b95a85006093f290030c91958dd6215ac8f5cabd064af1773e94a5b2cb4c9beb86c47958b09a17fd56d4017372d4297d6cdd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 1.21.4 / 2021-01-21
|
2
|
+
* Fixed:
|
3
|
+
* Reverted the use of OpenStruct due to issues with seralization
|
4
|
+
* Hash objects have a 'dig' method as of Ruby 2.3 so pinned this gem to a
|
5
|
+
minimum version of Ruby 2.3
|
6
|
+
|
1
7
|
### 1.21.3 / 2021-01-20
|
2
8
|
* Fixed:
|
3
9
|
* Allow all methods that can safely take SUT arrays to do so
|
data/lib/simp/beaker_helpers.rb
CHANGED
@@ -166,8 +166,6 @@ module Simp::BeakerHelpers
|
|
166
166
|
|
167
167
|
# use the `puppet fact` face to look up facts on an SUT
|
168
168
|
def pfact_on(sut, fact_name)
|
169
|
-
require 'ostruct'
|
170
|
-
|
171
169
|
found_fact = nil
|
172
170
|
# If puppet is not installed, there are no puppet facts to fetch
|
173
171
|
if sut.which('puppet').empty?
|
@@ -176,16 +174,15 @@ module Simp::BeakerHelpers
|
|
176
174
|
facts_json = nil
|
177
175
|
begin
|
178
176
|
cmd_output = on(sut, 'facter -p --json', :silent => true)
|
179
|
-
|
180
177
|
# Facter 4+
|
181
178
|
raise('skip facter -p') if (cmd_output.stderr =~ /no longer supported/)
|
182
179
|
|
183
|
-
facts = JSON.parse(cmd_output.stdout
|
180
|
+
facts = JSON.parse(cmd_output.stdout)
|
184
181
|
rescue StandardError
|
185
182
|
# If *anything* fails, we need to fall back to `puppet facts`
|
186
183
|
|
187
184
|
facts_json = on(sut, 'puppet facts find garbage_xxx', :silent => true).stdout
|
188
|
-
facts = JSON.parse(facts_json
|
185
|
+
facts = JSON.parse(facts_json)['values']
|
189
186
|
end
|
190
187
|
|
191
188
|
found_fact = facts.dig(*(fact_name.split('.')))
|
data/simp-beaker-helpers.gemspec
CHANGED
@@ -18,6 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.metadata = {
|
19
19
|
'issue_tracker' => 'https://simp-project.atlassian.net'
|
20
20
|
}
|
21
|
+
|
22
|
+
s.required_ruby_version = '>= 2.3.0'
|
23
|
+
|
21
24
|
s.add_runtime_dependency 'beaker' , ['>= 4.17.0', '< 5.0.0']
|
22
25
|
s.add_runtime_dependency 'beaker-rspec' , '~> 6.2'
|
23
26
|
s.add_runtime_dependency 'beaker-puppet' , ['>= 1.18.14', '< 2.0.0']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-beaker-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.21.
|
4
|
+
version: 1.21.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01-
|
12
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|
@@ -230,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
230
|
requirements:
|
231
231
|
- - ">="
|
232
232
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
233
|
+
version: 2.3.0
|
234
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
236
|
- - ">="
|