rubocop-solidus 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f5300b213565a1a439d50b1e8a10f1fdb85559dd82c22590d583afaee88cd80
4
- data.tar.gz: f449296bd8ce1235e5760eb0284ca29b33634ed6fc095230f4837bb60a72a28f
3
+ metadata.gz: 33aae99e206ba5b410d4c12c6befd22441508a9140a53ea5d5c4752edc35769a
4
+ data.tar.gz: b73a52d9815ebaf8dcf05fc272b8916dc36af31c03069c6607bea6d807346a83
5
5
  SHA512:
6
- metadata.gz: 3c2704f57083a3bfdb599b5e8fd684271703a541a1e636307955a798c8ddcb3db79fa61698840ecc76b90917e6063f24c0582fb45fda1403b605abb4f99c28be
7
- data.tar.gz: 40fe450071e0b1bfcf88b989090d1fdd4cd6e2837eadab97cdc88bc618124453050c1fce6a9118978cf32683d73fcc6655bed0ddc4878d141004f8a8f80c4bc1
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.0)
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.0'
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.0
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
@@ -28,7 +28,7 @@ description: |
28
28
  Automatic Solidus code style checking tool.
29
29
  A RuboCop extension focused on enforcing Solidus best practices and coding conventions.
30
30
  email:
31
- - danielepalombo@gmail.com
31
+ - piyush.swain3@gmail.com
32
32
  executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
@@ -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