puppet-lint-version_comparison-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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/puppet-lint/plugins/check_version_comparison.rb +4 -3
- data/spec/spec_helper.rb +1 -24
- metadata +8 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f0fb488a190f4b634f9913035b143587b4d04ab06067f43823c4d5a1362f9af
|
4
|
+
data.tar.gz: 660b7366183263734bb2202822568ab24d96552bb1513e710ad53f3786191e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0070ed982948400602f81bf5b8cacd8a42da6ce7ed2044aea8080eca6769aef3cf266c1aa0e45c7541b2fb91c2a3a87f38cc349d5a762f863810516a0ab5ddf
|
7
|
+
data.tar.gz: cd95872558df90c2c74196b517ed452c190f25467d0f1fd7833f09e761efcf9f9a0af0a564d583b539b06a1f231cb1281bcd8ef47c367c459cfd9fc0a5b0caac
|
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-version_comparison-check/tree/3.0.0) (2025-09-25)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-lint-version_comparison-check/compare/2.0.0...3.0.0)
|
8
|
+
|
9
|
+
**Breaking changes:**
|
10
|
+
|
11
|
+
- Require Ruby 3.2+ & puppet-lint 5.1+ [\#26](https://github.com/voxpupuli/puppet-lint-version_comparison-check/pull/26) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
5
13
|
## [2.0.0](https://github.com/voxpupuli/puppet-lint-version_comparison-check/tree/2.0.0) (2023-04-21)
|
6
14
|
|
7
15
|
[Full Changelog](https://github.com/voxpupuli/puppet-lint-version_comparison-check/compare/1.1.0...2.0.0)
|
@@ -2,9 +2,10 @@ PuppetLint.new_check(:version_comparison) do
|
|
2
2
|
def is_num_comparison?(token)
|
3
3
|
return false unless token
|
4
4
|
return true if %i[GREATEREQUAL GREATERTHAN LESSEQUAL LESSTHAN].include?(token.type)
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
|
6
|
+
true if %i[ISEQUAL NOTEQUAL].include?(token.type) &&
|
7
|
+
token.next_code_token &&
|
8
|
+
token.next_code_token.type == :NUMBER
|
8
9
|
end
|
9
10
|
|
10
11
|
def check
|
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-version_comparison-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
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:
|
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: '
|
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 for versions compared as numbers.\n"
|
34
27
|
email: voxpupuli@groups.io
|
35
28
|
executables: []
|
@@ -46,7 +39,6 @@ homepage: https://github.com/voxpupuli/puppet-lint-version_comparison-check
|
|
46
39
|
licenses:
|
47
40
|
- Apache-2.0
|
48
41
|
metadata: {}
|
49
|
-
post_install_message:
|
50
42
|
rdoc_options: []
|
51
43
|
require_paths:
|
52
44
|
- lib
|
@@ -54,15 +46,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
46
|
requirements:
|
55
47
|
- - ">="
|
56
48
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2
|
49
|
+
version: '3.2'
|
58
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
51
|
requirements:
|
60
52
|
- - ">="
|
61
53
|
- !ruby/object:Gem::Version
|
62
54
|
version: '0'
|
63
55
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
56
|
+
rubygems_version: 3.6.9
|
66
57
|
specification_version: 4
|
67
58
|
summary: A puppet-lint plugin to check for versions compared as numbers.
|
68
59
|
test_files: []
|