puppet-lint-optional_default-check 2.0.0 → 3.0.0

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: df560d3834ffbfff9719ff5a8116b46d4776532bd454a05065c7f8e7ea4b4af8
4
- data.tar.gz: dd6fd1ca00c18c75c7685e8a94782ffaacbb12f2720f450ce0ba28438b86f6d7
3
+ metadata.gz: b276c23d1dcc5b195708d81c792565fdfef714269f04d1c0d035430ea1a606e1
4
+ data.tar.gz: 2ee78176d1b02c7e9bbd182be1f75353a924a2f0f0581a06fc836f04488e312b
5
5
  SHA512:
6
- metadata.gz: 5fee8bed935766d12c7e36ed0cc8543867972ed891725ed888efe8b16b6248c323be7744d85be812912b35687b4aaf85c9625f82ab4bc4e5630b2ccdad2e45ab
7
- data.tar.gz: abb52f36460b04b8648cf6775f5650d3f3f6b0f735a0bf034611c7fa75074966ed13970edd5521172d2504a3bda435f8c61c52e98325fd5398503444cc2914f0
6
+ metadata.gz: 4ed1f86bcafa3a533eabf9ec9065e55a25cb351ea9dc3656260e87029ba987afaa43957003c0940986c39c268b9dfd4e14bf7952a7a5dad27e88b543b2e52561
7
+ data.tar.gz: 03f042825dfc1a158e473718a53d6d3f90a92e049aa2c69ce9339eb4b74286b104cb8fd907722bae687c56e33aa463780ea8d423c88f925004ee9e757bec408b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [3.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/3.0.0) (2025-09-25)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/2.0.0...3.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Require Ruby 3.2+ & puppet-lint 5.1+ [\#18](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/18) ([bastelfreak](https://github.com/bastelfreak))
12
+
5
13
  ## [2.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/2.0.0) (2023-04-21)
6
14
 
7
15
  [Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.1.0...2.0.0)
@@ -13,7 +13,7 @@ describe 'optional_default' do
13
13
  expect(problems).to have(1).problem
14
14
  end
15
15
 
16
- col = (type == 'class' ? 21 : 22)
16
+ col = ((type == 'class') ? 21 : 22)
17
17
  it 'creates a warning' do
18
18
  expect(problems).to contain_warning(msg).on_line(1).in_column(col)
19
19
  end
@@ -25,7 +25,7 @@ describe 'optional_default' do
25
25
  expect(problems).to have(1).problem
26
26
  end
27
27
 
28
- col = (type == 'class' ? 21 : 22)
28
+ col = ((type == 'class') ? 21 : 22)
29
29
  it 'creates a warning' do
30
30
  expect(problems).to contain_warning(msg).on_line(1).in_column(col)
31
31
  end
@@ -74,7 +74,7 @@ describe 'optional_default' do
74
74
  expect(problems).to have(1).problem
75
75
  end
76
76
 
77
- col = (type == 'class' ? 32 : 33)
77
+ col = ((type == 'class') ? 32 : 33)
78
78
  it 'creates a warning' do
79
79
  expect(problems).to contain_warning(msg).on_line(1).in_column(col)
80
80
  end
data/spec/spec_helper.rb CHANGED
@@ -1,29 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- begin
4
- require 'simplecov'
5
- require 'simplecov-console'
6
- require 'codecov'
7
- rescue LoadError
8
- else
9
- SimpleCov.start do
10
- track_files 'lib/**/*.rb'
11
-
12
- add_filter '/spec'
13
-
14
- enable_coverage :branch
15
-
16
- # do not track vendored files
17
- add_filter '/vendor'
18
- add_filter '/.vendor'
19
- end
20
-
21
- SimpleCov.formatters = [
22
- SimpleCov::Formatter::Console,
23
- SimpleCov::Formatter::Codecov,
24
- ]
25
- end
26
-
27
3
  require 'puppet-lint'
4
+ require 'rspec/collection_matchers'
28
5
 
29
6
  PuppetLint::Plugins.load_spec_helper
metadata CHANGED
@@ -1,35 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-optional_default-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: puppet-lint
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '3'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5'
18
+ version: '5.1'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
26
22
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '3'
30
- - - "<"
23
+ - - "~>"
31
24
  - !ruby/object:Gem::Version
32
- version: '5'
25
+ version: '5.1'
33
26
  description: " A puppet-lint plugin to check that Optional class/defined type parameters
34
27
  don't default to anything other than `undef`.\n"
35
28
  email: voxpupuli@groups.io
@@ -47,7 +40,6 @@ homepage: https://github.com/voxpupuli/puppet-lint-optional_default-check
47
40
  licenses:
48
41
  - MIT
49
42
  metadata: {}
50
- post_install_message:
51
43
  rdoc_options: []
52
44
  require_paths:
53
45
  - lib
@@ -55,15 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
47
  requirements:
56
48
  - - ">="
57
49
  - !ruby/object:Gem::Version
58
- version: 2.7.0
50
+ version: '3.2'
59
51
  required_rubygems_version: !ruby/object:Gem::Requirement
60
52
  requirements:
61
53
  - - ">="
62
54
  - !ruby/object:Gem::Version
63
55
  version: '0'
64
56
  requirements: []
65
- rubygems_version: 3.2.33
66
- signing_key:
57
+ rubygems_version: 3.6.9
67
58
  specification_version: 4
68
59
  summary: A puppet-lint plugin to check Optional parameters default to `undef`
69
60
  test_files: []