zombie_scout 0.0.5 → 0.0.6
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/.rspec +0 -1
- data/.ruby-version +1 -1
- data/.travis.yml +3 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +38 -23
- data/README.md +1 -1
- data/lib/zombie_scout/method_call_finder.rb +1 -1
- data/lib/zombie_scout/version.rb +1 -1
- data/spec/zombie_scout/ruby_source_spec.rb +12 -4
- data/zombie_scout.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17f96c0954be5c080fd788f066857a95a84ed34d
|
4
|
+
data.tar.gz: 6eb6665ef2daa0aa1cf1afc6580be6148c1281f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5cc4fd175df49f8cf37dc56f1679e272362d63ac390928f5dafc262e2250563e9523c18c8672f60b6ef638d077fbc822731c64d3d54e68618c605534245893b
|
7
|
+
data.tar.gz: 6ca45c6ce04a32b605c3baf278f15e4c179ccf0fa821be0ae1e5f751c51870d8dd2c0130f204b890a6d3085a503f01cbca3f42edaaae4142575358841d4202b2
|
data/.rspec
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.3
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,37 +1,52 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
zombie_scout (0.0.6)
|
5
|
+
flog (~> 4.2)
|
6
|
+
parser (~> 2.1)
|
7
|
+
thor (~> 0.18)
|
8
|
+
|
1
9
|
GEM
|
2
10
|
remote: http://rubygems.org/
|
3
11
|
specs:
|
4
|
-
ast (
|
5
|
-
diff-lcs (1.
|
6
|
-
fakefs (0.
|
7
|
-
flog (4.
|
12
|
+
ast (2.3.0)
|
13
|
+
diff-lcs (1.2.5)
|
14
|
+
fakefs (0.10.0)
|
15
|
+
flog (4.4.0)
|
16
|
+
path_expander (~> 1.0)
|
8
17
|
ruby_parser (~> 3.1, > 3.1.0)
|
9
18
|
sexp_processor (~> 4.4)
|
10
|
-
parser (2.1.4)
|
11
|
-
ast (~>
|
12
|
-
|
13
|
-
rake (
|
14
|
-
rspec (
|
15
|
-
rspec-core (~>
|
16
|
-
rspec-expectations (~>
|
17
|
-
rspec-mocks (~>
|
18
|
-
rspec-core (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
parser (2.3.1.4)
|
20
|
+
ast (~> 2.2)
|
21
|
+
path_expander (1.0.0)
|
22
|
+
rake (11.3.0)
|
23
|
+
rspec (3.5.0)
|
24
|
+
rspec-core (~> 3.5.0)
|
25
|
+
rspec-expectations (~> 3.5.0)
|
26
|
+
rspec-mocks (~> 3.5.0)
|
27
|
+
rspec-core (3.5.4)
|
28
|
+
rspec-support (~> 3.5.0)
|
29
|
+
rspec-expectations (3.5.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.5.0)
|
32
|
+
rspec-mocks (3.5.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.5.0)
|
35
|
+
rspec-support (3.5.0)
|
36
|
+
ruby_parser (3.8.3)
|
23
37
|
sexp_processor (~> 4.1)
|
24
|
-
sexp_processor (4.
|
25
|
-
|
26
|
-
thor (0.18.1)
|
38
|
+
sexp_processor (4.7.0)
|
39
|
+
thor (0.19.1)
|
27
40
|
|
28
41
|
PLATFORMS
|
29
42
|
ruby
|
30
43
|
|
31
44
|
DEPENDENCIES
|
45
|
+
bundler (~> 1.10)
|
32
46
|
fakefs
|
33
|
-
flog (~> 4.2)
|
34
|
-
parser (~> 2.1)
|
35
47
|
rake
|
36
48
|
rspec
|
37
|
-
|
49
|
+
zombie_scout!
|
50
|
+
|
51
|
+
BUNDLED WITH
|
52
|
+
1.13.6
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ defined.
|
|
23
23
|
|
24
24
|
#### Phase 2: Grep
|
25
25
|
|
26
|
-
Then it greps your whole project - currently *.rb and *.erb files - for
|
26
|
+
Then it greps your whole project - currently *.rb and *.erb *.haml files - for
|
27
27
|
whole-word occurrances of any of the methods it found. The whole-word grep
|
28
28
|
(`grep -w`) means that searching for `dead_method` won't count `dead_methods`
|
29
29
|
as a match, and accidentally think it's live.
|
data/lib/zombie_scout/version.rb
CHANGED
@@ -16,11 +16,19 @@ describe ZombieScout::RubySource do
|
|
16
16
|
|
17
17
|
let(:filename) { 'ruby_code.rb' }
|
18
18
|
|
19
|
-
|
19
|
+
let(:ruby_source) {
|
20
20
|
File.open(filename, 'w') { |f| f << ruby_code }
|
21
21
|
ZombieScout::RubySource.new(filename)
|
22
|
-
|
22
|
+
}
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
describe '#path' do
|
25
|
+
it 'should equal the filename' do
|
26
|
+
expect(ruby_source.path).to eq(filename)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
describe '#source' do
|
30
|
+
it 'should equal the ruby_code' do
|
31
|
+
expect(ruby_source.source).to eq(ruby_code)
|
32
|
+
end
|
33
|
+
end
|
26
34
|
end
|
data/zombie_scout.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zombie_scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Bernier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.10'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.10'
|
69
69
|
description: |-
|
70
70
|
zombie_scout finds methods in classes in your ruby project,
|
71
71
|
and then searches for calls to them, and tells you which ones
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.5.1
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Find dead methods in your Ruby app
|