rspec-puppet-facts 1.0.0 → 1.0.1

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: 7960d7d304e0727928f8484c0a6bec2281406b98
4
- data.tar.gz: b4976195300ee9854582ba1884e76c4742c12f4f
3
+ metadata.gz: 9e6e83377e995dc4b8c63412ac45a8b3a85ab64a
4
+ data.tar.gz: c9e2b425e8c5bb2a80287092673007b1e06f0b53
5
5
  SHA512:
6
- metadata.gz: 2b7c191762184a534114f8d9f4a5937deca23f1f12a9b8063ec8caa3eebbc243805d33d991e0f158a69a9d6fb6cb2635dff8bceed44648df7a0c8bca25c2bff5
7
- data.tar.gz: 8abb8faf42eb3d627da8db873a91b37a11dcec74a4500ef65eeed261d168557c429b45e3acafd3d90ed146ef8b473ee2b8fc5e83eb8125664ba36a477152f8f3
6
+ metadata.gz: 6ccd8ef6c20c1d5b2378a5f8230181d0cf05947275a44b175eda2e5ca423f47d3559a519b6f4bc009887e5947a799d68f7fdbfe550bdda4b6b996177b73836c3
7
+ data.tar.gz: c9133daad4b1f0ca1e0a025206468ee73208fb7baa7ef84875bdf3a1d085cea725440a1869ee62ec1d92ff4dcd421674188ebdbbac76ad66b2df79207435fc34
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ##2015-08-10 - Rekease 0.12.0
1
+ ##2015-08-29 - Release 1.0.1
2
+ - Fix for old versions of Facter that does not provide operatingsystemmajrelease for some OSes
3
+
4
+ ##2015-08-27 - Release 1.0.0
5
+ - Use facterdb
6
+
7
+ ##2015-08-10 - Release 0.12.0
2
8
  - Add Facter3 support
3
9
 
4
10
  ##2015-06-16 - Release 0.11.0
@@ -14,9 +14,9 @@ module RspecPuppetFacts
14
14
  os_sup['operatingsystemrelease'].map do |operatingsystemmajrelease|
15
15
  opts[:hardwaremodels].each do |hardwaremodel|
16
16
  filter << {
17
- :operatingsystem => os_sup['operatingsystem'],
18
- :operatingsystemmajrelease => operatingsystemmajrelease.split(" ")[0],
19
- :hardwaremodel => hardwaremodel,
17
+ :operatingsystem => os_sup['operatingsystem'],
18
+ :operatingsystemrelease => "/^#{operatingsystemmajrelease.split(" ")[0]}/",
19
+ :hardwaremodel => hardwaremodel,
20
20
  }
21
21
  end
22
22
  end
@@ -24,7 +24,7 @@ module RspecPuppetFacts
24
24
  opts[:hardwaremodels].each do |hardwaremodel|
25
25
  filter << {
26
26
  :operatingsystem => os_sup['operatingsystem'],
27
- :hardwaremodel => hardwaremodel,
27
+ :hardwaremodel => hardwaremodel,
28
28
  }
29
29
  end
30
30
  end
@@ -32,7 +32,7 @@ module RspecPuppetFacts
32
32
 
33
33
  h = {}
34
34
  FacterDB::get_os_facts(Facter.version[0..2], filter).map do |facts|
35
- h["#{facts['operatingsystem'].downcase}-#{facts['operatingsystemmajrelease']}-#{facts['hardwaremodel']}"] = facts
35
+ h["#{facts['operatingsystem'].downcase}-#{facts['operatingsystemrelease'].split('.')[0]}-#{facts['hardwaremodel']}"] = facts
36
36
  end
37
37
  h
38
38
  end
@@ -1,5 +1,5 @@
1
1
  module RspecPuppetFacts
2
2
  module Version
3
- STRING = '1.0.0'
3
+ STRING = '1.0.1'
4
4
  end
5
5
  end
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.0.0
4
+ version: 1.0.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-08-27 00:00:00.000000000 Z
11
+ date: 2015-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types