rspec-puppet-facts 5.3.0 → 5.3.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
  SHA256:
3
- metadata.gz: 8678116a3cc4e7c0f5d7c6658f33859c61f7ff9df4773b1140012895ca3c8c83
4
- data.tar.gz: ad575c16065f79a93331fe1d6bfadce970345916ea41c0b02f26554e20fbb374
3
+ metadata.gz: fc8d63556bf5f6c7790b578e927c9501f685522ed66df043c3452ed1ca4a78e3
4
+ data.tar.gz: dd679dc8651d0e945dbcac16d19de2f88b95e19725504ab4b7b3dfa9afa8dae7
5
5
  SHA512:
6
- metadata.gz: 6268e78cce4f0e27253ef5ea590cd6a8e1a10da839c8a37259a2ec6598ff15956f0beb58e845e10753989e3214841883a3ffef738b3b082cc35bb1168571ac83
7
- data.tar.gz: b3fc0a8a23741abbf153cf7ba937979911261a0ec89c09517ec1497d3523d637f8641cf8fc8d50a40b29d2b7055cebbd65cd259c050107cc4f5bb5b6d367896c
6
+ metadata.gz: 6df650e8a2e79e9ac0f0a6eab5a45398ed9a04788ce1ae5b25f97325cbd5f9bb6d8e05c8e7ab793e172874a7aba56320d0be10928946c1bf23700ca7e7c5ff29
7
+ data.tar.gz: 1f00aaa70a64d08b5b432edc62254a35b61d96fed701f6beed2bd88d468dbb383d6b1f582d10e8acd3b7c7667402d8ce703caf99a51a712ad9206367166d71f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.3.1](https://github.com/voxpupuli/rspec-puppet-facts/tree/5.3.1) (2025-04-28)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/5.3.0...5.3.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix compatibility with Ruby 2.7 [\#207](https://github.com/voxpupuli/rspec-puppet-facts/pull/207) ([silug](https://github.com/silug))
10
+
3
11
  ## [5.3.0](https://github.com/voxpupuli/rspec-puppet-facts/tree/5.3.0) (2025-04-28)
4
12
 
5
13
  [Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/5.2.0...5.3.0)
@@ -2,6 +2,6 @@ module RspecPuppetFacts
2
2
  # This module contains the current version constant
3
3
  module Version
4
4
  # The current version of this gem
5
- STRING = '5.3.0'
5
+ STRING = '5.3.1'
6
6
  end
7
7
  end
@@ -397,7 +397,7 @@ module RspecPuppetFacts
397
397
  return Facter.version
398
398
  end
399
399
 
400
- version_map = JSON.load_file(json_path).map do |puppet, facter|
400
+ version_map = JSON.parse(File.read(json_path)).map do |puppet, facter|
401
401
  [Gem::Version.new(puppet), facter]
402
402
  end
403
403
 
@@ -60,7 +60,7 @@ describe RspecPuppetFacts do
60
60
 
61
61
  context 'when the component JSON file is unparseable' do
62
62
  before do
63
- allow(JSON).to receive(:load_file).with(component_json_path).and_raise(JSON::ParserError)
63
+ allow(File).to receive(:read).with(component_json_path).and_return('not json')
64
64
  allow(described_class).to receive(:warning)
65
65
  end
66
66
 
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: 5.3.0
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-28 00:00:00.000000000 Z
11
+ date: 2025-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types