rspec-puppet 4.0.1 → 4.0.2

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: 9cd03a236a8ecccba9131563b0eb1cba1acbf1527fc3fa3a26f73aa0ed71b8bf
4
- data.tar.gz: 26e3dd952e69e4481ab11ea9adc03a9df5b7a5a6b1dd968cac08e1cd02665f30
3
+ metadata.gz: 426a4ee05db6fe1e2ca9fea2e6bb5867ee07e9a07026c1b88d7f58d5466883e5
4
+ data.tar.gz: dc491e62b7b7228ae76e292ea5b387b279a8791551f81e689a1fc1c96af3cbb5
5
5
  SHA512:
6
- metadata.gz: 9e4e98146c015657bf6507b08aed32d4f3dc24f44e9b04539054465df4025c5dc737d7b42e261553cdcbf0a75b84812c739243a41514689395d7505571f23ea5
7
- data.tar.gz: de6e30c989030a40a781fdadefcb88b3b70a7bcb3372ec869f1ddc03d7b00ec50fd4f9cbfc1450c00e96ef5d9eb061244938d1ff629df654f9aeb595e004573c
6
+ metadata.gz: 3e0ea7226522dc683e27d1beac2337b4d3ec6ad448d5d95608c5879a5175f6e62ada4ee6ee81c8ab1345cd4265cdaa3cd509a80173218a1998d146546caba7e0
7
+ data.tar.gz: cdfdbf4bfb0551b3f4b8465a1278c93cef7707fd2284a5629dc6fe71f7846bbcec5c12396efb755da2a092521cf71a10b9f51794af7a4d650053913905c3897d
data/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
 
6
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
7
7
 
8
+ ## [v4.0.2](https://github.com/puppetlabs/rspec-puppet/tree/v4.0.2) - 2023-12-05
9
+
10
+ [Full Changelog](https://github.com/puppetlabs/rspec-puppet/compare/v4.0.1...v4.0.2)
11
+
12
+ ### Fixed
13
+
14
+ - Revert "(maint) - fix rubocop" - Leading argument with delegation syntax not supported with ruby 2.7.0 [#94](https://github.com/puppetlabs/rspec-puppet/pull/94) ([jordanbreen28](https://github.com/jordanbreen28))
15
+ - Revert "(CAT-1235) - Rename to puppetlabs-rspec-puppet" [#92](https://github.com/puppetlabs/rspec-puppet/pull/92) ([jordanbreen28](https://github.com/jordanbreen28))
16
+
8
17
  ## [v4.0.1](https://github.com/puppetlabs/rspec-puppet/tree/v4.0.1) - 2023-11-22
9
18
 
10
19
  [Full Changelog](https://github.com/puppetlabs/rspec-puppet/compare/v4.0.0...v4.0.1)
@@ -100,7 +100,7 @@ module RSpec::Puppet
100
100
  return func if func.func
101
101
 
102
102
  if Puppet::Parser::Functions.function(function_name)
103
- V3FunctionWrapper.new(function_name, scope.method("function_#{function_name}".intern))
103
+ V3FunctionWrapper.new(function_name, scope.method(:"function_#{function_name}"))
104
104
  end
105
105
  end
106
106
  end
@@ -303,7 +303,7 @@ module RSpec::Puppet
303
303
 
304
304
  # Add auto* (autorequire etc) if any
305
305
  if %i[before notify require subscribe].include?(type)
306
- func = "eachauto#{type}".to_sym
306
+ func = :"eachauto#{type}"
307
307
  if resource.resource_type.respond_to?(func)
308
308
  resource.resource_type.send(func) do |t, b|
309
309
  Array(resource.to_ral.instance_eval(&b)).each do |dep|
@@ -26,8 +26,8 @@ module RSpec::Puppet
26
26
  end
27
27
 
28
28
  module TypeMatchers
29
- def method_missing(method, ...)
30
- return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, ...) if method == :be_valid_type
29
+ def method_missing(method, *args, &block)
30
+ return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, *args, &block) if method == :be_valid_type
31
31
 
32
32
  super
33
33
  end
@@ -123,7 +123,7 @@ module RSpec::Puppet
123
123
  param = param.to_sym
124
124
  if attr_type == :feature
125
125
  baddies.push(param) unless type.provider_feature(param)
126
- elsif !type.send("valid#{attr_type}?".to_sym, param)
126
+ elsif !type.send(:"valid#{attr_type}?", param)
127
127
  baddies.push(param)
128
128
  end
129
129
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSpecPuppet
4
- VERSION = '4.0.1'
4
+ VERSION = '4.0.2'
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  - Puppet, Inc.
9
9
  - Community Contributors
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-11-22 00:00:00.000000000 Z
13
+ date: 2023-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -82,7 +82,7 @@ licenses:
82
82
  - MIT
83
83
  metadata:
84
84
  rubygems_mfa_required: 'true'
85
- post_install_message:
85
+ post_install_message:
86
86
  rdoc_options: []
87
87
  require_paths:
88
88
  - lib
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubygems_version: 3.1.6
101
- signing_key:
101
+ signing_key:
102
102
  specification_version: 4
103
103
  summary: RSpec tests for your Puppet manifests
104
104
  test_files: []