rubocop-gradual 0.3.1 → 0.3.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: dfbc47ff52ccb93118ada746e311ca665d8349feeae4c54e619269923c8b4be0
4
- data.tar.gz: c2c847431317fefce00aabe966bf05f4443c906c71c6933adebfacbcc6746d18
3
+ metadata.gz: 685de93c46f230379c3a6a10f732634b28312cb8c996d7f401cee9bca6b449c7
4
+ data.tar.gz: 4c81550b26fdaa11006f007e6f4a007e3bca172448bce4d9d479c5798d7e78f8
5
5
  SHA512:
6
- metadata.gz: f7634eaf9c309ccc616a5c8beb724950916e5fa655bb3f9d1658ebfe208393135cd81a06bdbbc2191043762e2b75b38c67d5b9a52cb8317d317204d3cce9ebea
7
- data.tar.gz: ffd86c21f9054a2d7ddeb87a7ff21e126fe16779a2fada774972ad54ff2f0f287846fb2aaea358ea43ff5930e58ef795b90271c4e7c6a1bf5cba4316974c5560
6
+ metadata.gz: 2759f62bd101bd82d222789c3ee704e7644000882418746ba09eb80578f3aed202aa80f3b067949d9cf1600c56b829b5900a80c2c5aa9859130320d43f5629df
7
+ data.tar.gz: 856f18297791f916b8706be43062a5f5aebfe957c7d501d59af0b2808e74ca76d30d8f4a84d8a90474b90271299080d3fee80c3fdd748cec35c27430349062b4
data/CHANGELOG.md CHANGED
@@ -7,13 +7,18 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.2] - 2023-10-10
11
+
12
+ ### Fixed
13
+
14
+ - Handle syntax errors in inspected files. ([@skryukov])
15
+
10
16
  ## [0.3.1] - 2022-11-29
11
17
 
12
18
  ### Fixed
13
19
 
14
20
  - More straightforward way of including RuboCop patch for Require mode. ([@skryukov])
15
21
 
16
-
17
22
  ## [0.3.0] - 2022-10-26
18
23
 
19
24
  ### Added
@@ -87,7 +92,8 @@ RuboCop::Gradual::RakeTask.new
87
92
 
88
93
  [@skryukov]: https://github.com/skryukov
89
94
 
90
- [Unreleased]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.1...HEAD
95
+ [Unreleased]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.2...HEAD
96
+ [0.3.2]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.1...v0.3.2
91
97
  [0.3.1]: https://github.com/skryukov/rubocop-gradual/compare/v0.3.0...v0.3.1
92
98
  [0.3.0]: https://github.com/skryukov/rubocop-gradual/compare/v0.2.0...v0.3.0
93
99
  [0.2.0]: https://github.com/skryukov/rubocop-gradual/compare/v0.1.1...v0.2.0
@@ -45,8 +45,9 @@ module RuboCop
45
45
  length = index.zero? ? length : length - code.length
46
46
  code += str[from, length]
47
47
 
48
- return code if code.length >= length
48
+ break if code.length >= length
49
49
  end
50
+ code
50
51
  end
51
52
 
52
53
  def data
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Gradual
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs