rspec-puppet-facts 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 685f349b8552136126852826590e18ff97e3d000
4
- data.tar.gz: 4eb2ab8fd527c128f3b3102cb7015af52ccc21db
3
+ metadata.gz: 14bfd6f02ce88d6ae572fc059b35700373247328
4
+ data.tar.gz: 3df2a486a07e4994bc16b733b8695a08990203d0
5
5
  SHA512:
6
- metadata.gz: 1f4d30f8342b0e1f694f725298cae0c43e7a32c3b93336e01dc8b7f08870b89d47a83ccc77c1a706ce3e8f9acec3132e33c19506d8cff6c8f8089c20eabf6873
7
- data.tar.gz: 7c25ab19fc4ecd474481333a2b73457c2ac5666b778e5fafe58ef47e1a8a0a592fdf6b48205e269904f4895a47dff4edfe1450835730a749e645c196fc014a35
6
+ metadata.gz: 9e7bbb144158a3d2e7ee9d95f4e9caa706b6d2b0ec9a18190c158d781246bb9b6e73dbe77541a254d8f1f3b0e536024cf441560b093ed676a8a7a6408f4484a0
7
+ data.tar.gz: 0363bd1f8a12ef3fd65d5f520c61edbaeacadb09b75d07b3660aa082f6e9c4105927e63c6ff0b4d4a1faddf34352135dd768862616236fa47ce929d13256e9a9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ##2015-09-15 - Release 1.1.1
2
+ - Fix OpenBSD support
3
+
1
4
  ##2015-09-09 - Release 1.1.0
2
5
  - Populate augeasversion, puppetversion and rubyversion
3
6
 
@@ -15,7 +15,7 @@ module RspecPuppetFacts
15
15
  os_sup['operatingsystemrelease'].map do |operatingsystemmajrelease|
16
16
  opts[:hardwaremodels].each do |hardwaremodel|
17
17
 
18
- if os_sup['operatingsystem'] =~ /FreeBSD/
18
+ if os_sup['operatingsystem'] =~ /BSD/
19
19
  hardwaremodel = 'amd64'
20
20
  elsif os_sup['operatingsystem'] =~ /Solaris/
21
21
  hardwaremodel = 'i86pc'
@@ -1,5 +1,5 @@
1
1
  module RspecPuppetFacts
2
2
  module Version
3
- STRING = '1.1.0'
3
+ STRING = '1.1.1'
4
4
  end
5
5
  end
@@ -123,6 +123,34 @@ describe 'RspecPuppetFacts' do
123
123
  end
124
124
  end
125
125
 
126
+ context 'When testing OpenBSD 5.7' do
127
+ subject {
128
+ on_supported_os(
129
+ {
130
+ :supported_os => [
131
+ {
132
+ "operatingsystem" => "OpenBSD",
133
+ "operatingsystemrelease" => [
134
+ "5.7",
135
+ ],
136
+ },
137
+ ],
138
+ }
139
+ )
140
+ }
141
+ it 'should return a hash' do
142
+ expect(subject.class).to eq Hash
143
+ end
144
+ it 'should have 1 elements' do
145
+ expect(subject.size).to eq 1
146
+ end
147
+ it 'should return supported OS' do
148
+ expect(subject.keys.sort).to eq [
149
+ 'openbsd-5-amd64',
150
+ ]
151
+ end
152
+ end
153
+
126
154
  context 'When operatingsystemrelease has space' do
127
155
  subject {
128
156
  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.1.0
4
+ version: 1.1.1
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: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types