rubocop-gradual 0.3.5 → 0.3.6

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: 750548fbcac00bd48721d0c3f1b0b7a43b5cf77aaafe7a81d6f58bfbe6edc2e6
4
- data.tar.gz: dfba66113c744a92a51b6c72e6bec157c12dd721cee9d8a1d033a0845b4bf0ab
3
+ metadata.gz: 55d71d872b6c1e9cf4a88d9cc52c84a29e6d80c5681a77701ce1c740c77fd729
4
+ data.tar.gz: 3949b12bc114468293262f26cbd03aa737565e117f3672e19cfe5b312ff95a04
5
5
  SHA512:
6
- metadata.gz: d713758f60a7b2ee780aeafda2fb01c6eb2f68f5a97aa521da5b1ef57a5a33bf3d3fa05b9dfb0f9d231ac3f0d107b72b7af1260eb9e76f6ae259bc3a619d1190
7
- data.tar.gz: 1e4286b97788902cfc101698cb31ae756a70c2419d824ae3b547db1eb060a2cc36e6fc6eb334007658ef3c0ffec8ba484b257770d0e025768c1bf70aef58e419
6
+ metadata.gz: f5f672bcded5a4af92a0c263e9574926e5ce1961e20c870c89fae7536ae7a6a37e736f102675b6e663fa397014209967a7ea9cd3a626ecbbebc324b5fffbf66a
7
+ data.tar.gz: 34af2cc3ac30461db8ae7b7974acfe3343d5c22258b6a742403c737774d193fffc03db61076b1f28535499adb68f95af6e6887d09090c00c333305b1ae3bcf45
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.6] - 2024-07-21
11
+
12
+ ### Fixed
13
+
14
+ - Don't fail `--check` when no issues and no lock file present. ([@skryukov])
15
+
10
16
  ## [0.3.5] - 2024-06-24
11
17
 
12
18
  ### Added
@@ -118,7 +124,8 @@ RuboCop::Gradual::RakeTask.new
118
124
  [@dmorgan-fa]: https://github.com/dmorgan-fa
119
125
  [@skryukov]: https://github.com/skryukov
120
126
 
121
- [Unreleased]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.5...HEAD
127
+ [Unreleased]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.6...HEAD
128
+ [0.3.6]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.5...v0.3.6
122
129
  [0.3.5]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.4...v0.3.5
123
130
  [0.3.4]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.3...v0.3.4
124
131
  [0.3.3]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.2...v0.3.3
@@ -35,7 +35,10 @@ module RuboCop
35
35
  private
36
36
 
37
37
  def fail_with_outdated_lock?(diff)
38
- Configuration.mode == :check && diff.state != :no_changes
38
+ return false if Configuration.mode != :check
39
+ return false if diff.state == :complete && old_results.nil?
40
+
41
+ diff.state != :no_changes
39
42
  end
40
43
 
41
44
  def sync_lock_file(diff)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Gradual
5
- VERSION = "0.3.5"
5
+ VERSION = "0.3.6"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-gradual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-24 00:00:00.000000000 Z
11
+ date: 2024-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs