rspec-puppet-facts 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +3 -0
- data/lib/rspec-puppet-facts.rb +2 -0
- data/lib/rspec-puppet-facts/version.rb +1 -1
- data/rspec-puppet-facts.gemspec +5 -1
- data/spec/rspec_puppet_facts_spec.rb +30 -0
- 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: 25dba2e8315cd00eabd5d471bfae20a617ac3cdb
|
4
|
+
data.tar.gz: 1362031f653c28534a8858edfb330218eb05d97a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f5f2ad99655433291c78064abe45919123be877124f9ec8f204cb5b08ca5bd698fd4cc482b3cdc186057e366d890ff253b3557449efba526defb6927f07ba90
|
7
|
+
data.tar.gz: 3ace83756a933a7d4d09e573dd0387d5cc80dcf1c4b12d2fcb1cea41ab06567d24edc8e020b948e2fecd5cf0168920b09f185c459fd8ecb46dc312393cf6ea45
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/rspec-puppet-facts.rb
CHANGED
data/rspec-puppet-facts.gemspec
CHANGED
@@ -16,7 +16,11 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
|
19
|
-
|
19
|
+
if RUBY_VERSION =~ /^1\./
|
20
|
+
s.add_development_dependency 'mime-types', '< 3.0'
|
21
|
+
else
|
22
|
+
s.add_development_dependency 'mime-types'
|
23
|
+
end
|
20
24
|
s.add_development_dependency 'coveralls'
|
21
25
|
s.add_development_dependency 'rake'
|
22
26
|
s.add_development_dependency 'rspec'
|
@@ -151,6 +151,36 @@ describe 'RspecPuppetFacts' do
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
+
unless Facter.version.to_f < 2.4
|
155
|
+
context 'When testing Windows 7' do
|
156
|
+
subject {
|
157
|
+
on_supported_os(
|
158
|
+
{
|
159
|
+
:supported_os => [
|
160
|
+
{
|
161
|
+
"operatingsystem" => "windows",
|
162
|
+
"operatingsystemrelease" => [
|
163
|
+
"7",
|
164
|
+
],
|
165
|
+
},
|
166
|
+
],
|
167
|
+
}
|
168
|
+
)
|
169
|
+
}
|
170
|
+
it 'should return a hash' do
|
171
|
+
expect(subject.class).to eq Hash
|
172
|
+
end
|
173
|
+
it 'should have 1 elements' do
|
174
|
+
expect(subject.size).to eq 1
|
175
|
+
end
|
176
|
+
it 'should return supported OS' do
|
177
|
+
expect(subject.keys.sort).to eq [
|
178
|
+
'windows-7-x64',
|
179
|
+
]
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
154
184
|
context 'When operatingsystemrelease has space' do
|
155
185
|
subject {
|
156
186
|
on_supported_os(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-puppet-facts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickaël Canévet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.5.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Standard facts fixtures for Puppet
|