leftovers 0.11.0 → 0.11.1
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 +3 -0
- data/lib/leftovers/file_collector/node_processor.rb +1 -0
- data/lib/leftovers/file_collector.rb +3 -2
- data/lib/leftovers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99d72b44b74c747074583f8c9254872a175563d0f25135b7798c5e76f42c19ef
|
|
4
|
+
data.tar.gz: 6b4bd9219256b8734df956978892da7ffe028e0539367a1f98d46c73912ae79e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d51c93c652bdd0aa55a176c1600e9d557fd29e7e9726411d7ac6eb086178a655e17e96e8d7530c97945f169d32961649358dd712daf9e50cb82b30caa1b55c10
|
|
7
|
+
data.tar.gz: b8ca04321b17c7d9c9b831f3fb2fab47554d859f910d38f08a04d41f344c4585a1008019af12d13b3e2807027fe6ba7d6fd6a4d1eca3fb947d68d6812249bc39
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# v0.11.1
|
|
2
|
+
- Fixed an issue with parsing files that have `MyConstant ||= value` patterns #19 (thanks for the pr - @kamoh)
|
|
3
|
+
|
|
1
4
|
# v0.11.0
|
|
2
5
|
- Fixed an issue with active_record's `before_save` with multiple callbacks #18, #17 - thanks @palexvs for raising the issue and creating a pr
|
|
3
6
|
- Due to this pr, i reviewed everything else that i think calls `ActiveSupport::Callbacks.set_callback`, and ensured they all:
|
|
@@ -96,8 +96,9 @@ module Leftovers
|
|
|
96
96
|
# just collects the :call=, super will collect the :call
|
|
97
97
|
when :send, :csend then calls << :"#{node.name}="
|
|
98
98
|
# just collects the call, super will collect the definition
|
|
99
|
-
when :ivasgn, :gvasgn, :cvasgn then calls << node.name
|
|
100
|
-
when :lvasgn then nil # we don't
|
|
99
|
+
when :ivasgn, :gvasgn, :cvasgn, :casgn then calls << node.name
|
|
100
|
+
when :lvasgn then nil # we don't check local variable use, rubocop already covers this
|
|
101
|
+
|
|
101
102
|
# :nocov:
|
|
102
103
|
else raise Leftovers::UnexpectedCase, "Unhandled value #{node.type.inspect}"
|
|
103
104
|
# :nocov:
|
data/lib/leftovers/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: leftovers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dana Sherson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|