zombie_scout 0.0.5 → 0.0.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
  SHA1:
3
- metadata.gz: 24fef05906d9243f5b7ccc8f5d527162f5a38c5f
4
- data.tar.gz: a56de0fbd3d1e9cb5369a2b24bcbd76b5c728931
3
+ metadata.gz: 17f96c0954be5c080fd788f066857a95a84ed34d
4
+ data.tar.gz: 6eb6665ef2daa0aa1cf1afc6580be6148c1281f9
5
5
  SHA512:
6
- metadata.gz: e5111aa9eff93beb078907b74c24242c053227b71a5b50b8f4a3cc21835519bf58f845111907b8e0d76de39a2419bac3a077a81d76fc2f4bb1f4c6f2d61850ac
7
- data.tar.gz: 2c19bbd09b45ae27af15d44f2bfd05795365d063cf42dbfb9732c5fc70c0101c1baf97caa2118584e7bb82229904ff4fcf0f77bb9fe08b111a0d0ce18d97a43e
6
+ metadata.gz: a5cc4fd175df49f8cf37dc56f1679e272362d63ac390928f5dafc262e2250563e9523c18c8672f60b6ef638d077fbc822731c64d3d54e68618c605534245893b
7
+ data.tar.gz: 6ca45c6ce04a32b605c3baf278f15e4c179ccf0fa821be0ae1e5f751c51870d8dd2c0130f204b890a6d3085a503f01cbca3f42edaaae4142575358841d4202b2
data/.rspec CHANGED
@@ -1,2 +1 @@
1
1
  --color
2
- --format nested
@@ -1 +1 @@
1
- ruby-2.1.1
1
+ ruby-2.3
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.3
4
+ - 2.2
3
5
  - 2.1
4
6
  - 2.0
7
+ before_install: gem install bundler # For ruby 2.1: http://stackoverflow.com/questions/36979283/how-to-fix-travis-error-nomethoderror-undefined-method-spec-for-nilnilclass
data/Gemfile CHANGED
@@ -1,8 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'parser', '~> 2.1'
4
- gem 'flog', '~> 4.2'
5
- gem 'thor', '~> 0.18'
3
+ gemspec
6
4
 
7
5
  group :test do
8
6
  gem 'rake'
@@ -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 (1.1.0)
5
- diff-lcs (1.1.3)
6
- fakefs (0.5.0)
7
- flog (4.2.0)
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 (~> 1.1)
12
- slop (~> 3.4, >= 3.4.5)
13
- rake (10.1.0)
14
- rspec (2.11.0)
15
- rspec-core (~> 2.11.0)
16
- rspec-expectations (~> 2.11.0)
17
- rspec-mocks (~> 2.11.0)
18
- rspec-core (2.11.1)
19
- rspec-expectations (2.11.3)
20
- diff-lcs (~> 1.1.3)
21
- rspec-mocks (2.11.3)
22
- ruby_parser (3.4.1)
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.4.1)
25
- slop (3.4.7)
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
- thor (~> 0.18)
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.
@@ -24,7 +24,7 @@ module ZombieScout
24
24
  end
25
25
 
26
26
  def includes
27
- %w(*.rb *.erb *.rake Rakefile).map { |inc|
27
+ %w(*.rb *.erb *.haml *.rake Rakefile).map { |inc|
28
28
  "--include=\"#{inc}\""
29
29
  }.join(' ')
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module ZombieScout
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -16,11 +16,19 @@ describe ZombieScout::RubySource do
16
16
 
17
17
  let(:filename) { 'ruby_code.rb' }
18
18
 
19
- subject do
19
+ let(:ruby_source) {
20
20
  File.open(filename, 'w') { |f| f << ruby_code }
21
21
  ZombieScout::RubySource.new(filename)
22
- end
22
+ }
23
23
 
24
- its(:path) { should eq(filename) }
25
- its(:source) { should eq(ruby_code) }
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
@@ -27,5 +27,5 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency('parser', '~> 2.1')
28
28
  s.add_dependency('thor', '~> 0.18')
29
29
  s.add_dependency('flog', '~> 4.2')
30
- s.add_development_dependency "bundler", "~> 1.5"
30
+ s.add_development_dependency "bundler", "~> 1.10"
31
31
  end
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.5
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: 2014-03-28 00:00:00.000000000 Z
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.5'
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.5'
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.2.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