facter 2.5.5-x64-mingw32 → 2.5.6-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/facter/operatingsystem/linux.rb +1 -1
- data/lib/facter/version.rb +1 -1
- data/spec/unit/operatingsystem/linux_spec.rb +9 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ee5af31b5e7e6ada250e8eed46963abd4dd62799ad4bc195b0f79285c110761e
|
4
|
+
data.tar.gz: baa68280e3d7bea87b5596dbafef244cc45a4ba8661055575b0e168adffdb437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2dc304eb877b5a15361eb2fd040aff2050018c6ab3d92d5cae4df88362ced4d792d28008544bd4d2534e840b4a6d7521dba2d92eacfc73f5e39552b0f463e73
|
7
|
+
data.tar.gz: 5bcefe42f8e21be095d6503667d56e1fb413a2b910481b48027db5bcc7f00512c7232790f23d6c1f0961348c755e81e8306a2094f7299cd60c6e326779016a71
|
data/lib/facter/version.rb
CHANGED
@@ -278,6 +278,15 @@ describe Facter::Operatingsystem::Linux do
|
|
278
278
|
expect(release).to eq "2014.03"
|
279
279
|
end
|
280
280
|
|
281
|
+
it "should parse major release only from /etc/system-release" do
|
282
|
+
subject.expects(:get_operatingsystem).returns("Amazon")
|
283
|
+
subject.expects(:get_lsbdistrelease).returns(nil)
|
284
|
+
Facter::Util::FileRead.expects(:read).with('/etc/system-release').returns("Amazon Linux release 2 (Karoo)")
|
285
|
+
release = subject.get_operatingsystemrelease
|
286
|
+
expect(release).to eq "2"
|
287
|
+
end
|
288
|
+
|
289
|
+
|
281
290
|
it "should fall back to kernelrelease fact for gnu/kfreebsd" do
|
282
291
|
Facter.fact(:kernelrelease).stubs(:value).returns("1.2.3")
|
283
292
|
subject.expects(:get_operatingsystem).returns("GNU/kFreeBSD")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.6
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -546,8 +546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
546
546
|
- !ruby/object:Gem::Version
|
547
547
|
version: '0'
|
548
548
|
requirements: []
|
549
|
-
|
550
|
-
rubygems_version: 2.6.14
|
549
|
+
rubygems_version: 3.0.4
|
551
550
|
signing_key:
|
552
551
|
specification_version: 4
|
553
552
|
summary: Facter, a system inventory tool
|