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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ea1229c54e48676bfa61c86e6ef332ece6d9d17
4
- data.tar.gz: 0785bb75f2938ddd7c1fac96a62ba856479a6a38
3
+ metadata.gz: 25dba2e8315cd00eabd5d471bfae20a617ac3cdb
4
+ data.tar.gz: 1362031f653c28534a8858edfb330218eb05d97a
5
5
  SHA512:
6
- metadata.gz: 193f60bd0aa09fc7728f0cbbba4fec12cb3cf3de079a3e43220f6478efa7043b0169a4e39693ece4ba09c4d63b7568d89d7e5c96dc87d1e457887a36de8916fe
7
- data.tar.gz: 8c1291f4f0b05fd67967c273e5859bc26203d10ecd3ca8e6ee00b1ed42855361ae4a588ea87309091a5e643f648cebe2aa40e8da2886c8f1cd2f609c5a387924
6
+ metadata.gz: 4f5f2ad99655433291c78064abe45919123be877124f9ec8f204cb5b08ca5bd698fd4cc482b3cdc186057e366d890ff253b3557449efba526defb6927f07ba90
7
+ data.tar.gz: 3ace83756a933a7d4d09e573dd0387d5cc80dcf1c4b12d2fcb1cea41ab06567d24edc8e020b948e2fecd5cf0168920b09f185c459fd8ecb46dc312393cf6ea45
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  .vagrant/
5
5
  .bundle/
6
6
  coverage/
7
+ .idea
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ##2016-03-29 - Release 1.5.0
2
+ - Add some Microsft Windows support
3
+
1
4
  ##2016-02-04 - Release 1.4.1
2
5
  - Add missing mcollective-client dependency
3
6
 
@@ -20,6 +20,8 @@ module RspecPuppetFacts
20
20
  hardwaremodel = 'amd64'
21
21
  elsif os_sup['operatingsystem'] =~ /Solaris/
22
22
  hardwaremodel = 'i86pc'
23
+ elsif os_sup['operatingsystem'] =~ /windows/
24
+ hardwaremodel = 'x64'
23
25
  end
24
26
 
25
27
  filter << {
@@ -1,5 +1,5 @@
1
1
  module RspecPuppetFacts
2
2
  module Version
3
- STRING = '1.4.1'
3
+ STRING = '1.5.0'
4
4
  end
5
5
  end
@@ -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
- s.add_development_dependency 'mime-types'
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.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-02-04 00:00:00.000000000 Z
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.4.5.1
181
+ rubygems_version: 2.5.1
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Standard facts fixtures for Puppet