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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/rspec-puppet-facts.rb +5 -5
- data/lib/rspec-puppet-facts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6e83377e995dc4b8c63412ac45a8b3a85ab64a
|
4
|
+
data.tar.gz: c9e2b425e8c5bb2a80287092673007b1e06f0b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ccd8ef6c20c1d5b2378a5f8230181d0cf05947275a44b175eda2e5ca423f47d3559a519b6f4bc009887e5947a799d68f7fdbfe550bdda4b6b996177b73836c3
|
7
|
+
data.tar.gz: c9133daad4b1f0ca1e0a025206468ee73208fb7baa7ef84875bdf3a1d085cea725440a1869ee62ec1d92ff4dcd421674188ebdbbac76ad66b2df79207435fc34
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
##2015-08-
|
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
|
data/lib/rspec-puppet-facts.rb
CHANGED
@@ -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
|
18
|
-
:
|
19
|
-
: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
|
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['
|
35
|
+
h["#{facts['operatingsystem'].downcase}-#{facts['operatingsystemrelease'].split('.')[0]}-#{facts['hardwaremodel']}"] = facts
|
36
36
|
end
|
37
37
|
h
|
38
38
|
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.
|
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-
|
11
|
+
date: 2015-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|