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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 101df3597b1ea7fe8229ada4f77a940a7918edb988025a5dc59422d459985410
4
- data.tar.gz: 322ae6772c8d8c05e71cb3e5d257da7cf1970dea04d4dc1394e7d094fc9fcf61
3
+ metadata.gz: 33aae99e206ba5b410d4c12c6befd22441508a9140a53ea5d5c4752edc35769a
4
+ data.tar.gz: b73a52d9815ebaf8dcf05fc272b8916dc36af31c03069c6607bea6d807346a83
5
5
  SHA512:
6
- metadata.gz: 52e20d00967742080012fc3a09ceac7a847b792fe6bc510f9caca95ccaef4de6993e203344b1d16157a34f4814aaeb165386718cba3701cd5d4d1a6ef2af035c
7
- data.tar.gz: e384e8d9eaae46bd4d9027c3ba46b3829b9ab4f4d7a56714666fb85e8d53665a5dbcbd872c7e0719e4ac8387d86d8bad4a09b4481c1465b0bf5c3fe6c5e4a65b
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-solidus (0.1.1)
4
+ rubocop-solidus (0.1.2)
5
5
  rubocop
6
6
 
7
7
  GEM
@@ -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']&.to_f || solidus_version_from_lock_file || DEFAULT_SOLIDUS_VERSION
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.to_f if result
65
+ return result.captures.first if result
66
66
  end
67
67
  end
68
68
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Solidus
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
@@ -0,0 +1,5 @@
1
+ ### New features
2
+
3
+ * [#45](https://github.com/nebulab/rubocop-solidus/pull/45): Fix gem version comparison. ([@MassimilianoLattanzio][])
4
+
5
+ [@MassimilianoLattanzio]: https://github.com/MassimilianoLattanzio
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.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-13 00:00:00.000000000 Z
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