debride 1.15.0 → 1.15.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
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/lib/debride.rb +17 -17
- data.tar.gz.sig +0 -0
- metadata +9 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a141179f7eaccb00427a5f08718c4feb5f4cc71f088c85c9fa5ca9a2a9d11320
|
|
4
|
+
data.tar.gz: 90cf53e502fb9174beaba59f09f45c1c316c2c0179f5c35509523af2c0c49cb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e716a26676e9a6e3eef63dff026138910c7bd49ff4e89c0741f6be172cfe1e470a01944db3912555efc0e34a981fd6903164ee6a139795ed78e507bfa4911d7d
|
|
7
|
+
data.tar.gz: b4d27a4b57292cfd04ee94849cc42fbb281a9446ee850f5c3e049fdf4a6cc6fde04eeca89092dbf08147f52e5ba1dbf644145a62ea12eb9a95bd6557f2cc15ad
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/History.rdoc
CHANGED
data/lib/debride.rb
CHANGED
|
@@ -11,16 +11,15 @@ require "path_expander"
|
|
|
11
11
|
require "prism"
|
|
12
12
|
require "prism/translation/ruby_parser"
|
|
13
13
|
|
|
14
|
-
class NotRubyParser < Prism::Translation::RubyParser # compatibility layer
|
|
15
|
-
end
|
|
16
|
-
|
|
17
14
|
##
|
|
18
15
|
# A static code analyzer that points out possible dead methods.
|
|
19
16
|
|
|
20
17
|
class Debride < MethodBasedSexpProcessor
|
|
21
|
-
VERSION = "1.15.
|
|
18
|
+
VERSION = "1.15.1" # :nodoc:
|
|
22
19
|
PROJECT = "debride"
|
|
23
20
|
|
|
21
|
+
NotRubyParser = Class.new Prism::Translation::RubyParser # compatibility layer :nodoc:
|
|
22
|
+
|
|
24
23
|
def self.load_plugins proj = PROJECT
|
|
25
24
|
unless defined? @@plugins then
|
|
26
25
|
@@plugins = []
|
|
@@ -536,23 +535,24 @@ class Debride < MethodBasedSexpProcessor
|
|
|
536
535
|
def missing_locations
|
|
537
536
|
focus = option[:focus]
|
|
538
537
|
|
|
539
|
-
missing
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
538
|
+
missing
|
|
539
|
+
.map { |klass, meths|
|
|
540
|
+
bad = meths.map { |meth|
|
|
541
|
+
location =
|
|
542
|
+
method_locations["#{klass}##{meth}"] ||
|
|
543
|
+
method_locations["#{klass}::#{meth}"]
|
|
544
544
|
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
if focus then
|
|
546
|
+
path = location[/(.+):\d+/, 1]
|
|
547
547
|
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
next unless File.fnmatch(focus, path)
|
|
549
|
+
end
|
|
550
550
|
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
[meth, location]
|
|
552
|
+
}.compact
|
|
553
553
|
|
|
554
|
-
|
|
555
|
-
|
|
554
|
+
[klass, bad]
|
|
555
|
+
}
|
|
556
556
|
.to_h
|
|
557
557
|
.reject { |k,v| v.empty? }
|
|
558
558
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: debride
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.15.
|
|
4
|
+
version: 1.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Davis
|
|
@@ -9,9 +9,9 @@ bindir: bin
|
|
|
9
9
|
cert_chain:
|
|
10
10
|
- |
|
|
11
11
|
-----BEGI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BXu1Xh+pEN8qBmYsFRR4SIODLClybAO
|
|
28
|
+
6cbm2PyPQgKNiqE4H+IQrDVHd9bJs1XgLElk3qoaJBWXc/5fy0J1imYb25UqmiHG
|
|
29
|
+
snGe1hrppvBRdcyEzvhfIPjI
|
|
30
30
|
-----END CERTIFICATE-----
|
|
31
31
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
32
32
|
dependencies:
|
metadata.gz.sig
CHANGED
|
Binary file
|