rubocop-solidus 0.1.1 → 0.1.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/rubocop/cop/mixin/target_solidus_version.rb +3 -3
- data/lib/rubocop/solidus/version.rb +1 -1
- data/relnotes/v0.1.2.md +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33aae99e206ba5b410d4c12c6befd22441508a9140a53ea5d5c4752edc35769a
|
|
4
|
+
data.tar.gz: b73a52d9815ebaf8dcf05fc272b8916dc36af31c03069c6607bea6d807346a83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e80063bb7c4ff0bdfddfac2fa558808b253966c6863557cc1ec09a1b53ce38ca829d8391e8dd5e2572d4e8d9523a456e5f773c418caf6f9d837f69eb96df3a6
|
|
7
|
+
data.tar.gz: e182664bc616504eeeb646fc5f0c0a150240cd57823fb672b9c8a9d3f25e69c58b4a5e9584bf438c40d4c9399d27e1f7e52dac24df0865071dc848007e027da7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## master (unreleased)
|
|
2
2
|
|
|
3
|
+
## 0.1.2 (2023-07-14)
|
|
4
|
+
|
|
5
|
+
### New features
|
|
6
|
+
|
|
7
|
+
* [#45](https://github.com/nebulab/rubocop-solidus/pull/45): Fix gem version comparison. ([@MassimilianoLattanzio][])
|
|
8
|
+
|
|
3
9
|
## 0.1.0 (2023-07-10)
|
|
4
10
|
|
|
5
11
|
- Initial release
|
|
12
|
+
[@MassimilianoLattanzio]: https://github.com/MassimilianoLattanzio
|
data/Gemfile.lock
CHANGED
|
@@ -22,7 +22,7 @@ module RuboCop
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def targeted_solidus_version?(version)
|
|
25
|
-
@minimum_solidus_version <= version
|
|
25
|
+
Gem::Version.new(@minimum_solidus_version) <= Gem::Version.new(version)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
@@ -47,7 +47,7 @@ module RuboCop
|
|
|
47
47
|
|
|
48
48
|
def target_solidus_version
|
|
49
49
|
@target_solidus_version ||=
|
|
50
|
-
config.for_all_cops['TargetSolidusVersion']
|
|
50
|
+
config.for_all_cops['TargetSolidusVersion'] || solidus_version_from_lock_file || DEFAULT_SOLIDUS_VERSION
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def solidus_version_from_lock_file
|
|
@@ -62,7 +62,7 @@ module RuboCop
|
|
|
62
62
|
# If Solidus (or one of its frameworks) is in Gemfile.lock, there should be a line like:
|
|
63
63
|
# solidus_core (X.X.X)
|
|
64
64
|
result = line.match(/^\s+solidus_core\s+\((\d+\.\d+)/)
|
|
65
|
-
return result.captures.first
|
|
65
|
+
return result.captures.first if result
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
end
|
data/relnotes/v0.1.2.md
ADDED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-solidus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piyushswain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-07-
|
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -58,6 +58,7 @@ files:
|
|
|
58
58
|
- lib/rubocop/solidus.rb
|
|
59
59
|
- lib/rubocop/solidus/inject.rb
|
|
60
60
|
- lib/rubocop/solidus/version.rb
|
|
61
|
+
- relnotes/v0.1.2.md
|
|
61
62
|
- sig/rubocop/solidus.rbs
|
|
62
63
|
- tasks/changelog.rake
|
|
63
64
|
- tasks/changelog.rb
|