deathnote 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +16 -9
- data/changelog +5 -0
- data/lib/deathnote.rb +6 -1
- data/lib/deathnote/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd14b026154cc2156ddb2fdc6c43e3d123cd183f
|
4
|
+
data.tar.gz: 709a4d8c854971529428504b67842ebbcab56fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7afee44ffc18c06309f8aaa8bf314e1011c657ac3ae2edeef247b622e71a53ad7db31bf3579b1d2852d76564e0315063ed9c4c206bcba903fbe431535f7f7d
|
7
|
+
data.tar.gz: 28ffcec65aa30b3e779f83171a4f7553c9d421cd42e3e5fe2cda7900aff54c55e7b57306ff0c60313470e6c9ab3552a25e249c2366921a2e5cd35d3bde2e7a15
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deathnote (0.1.
|
4
|
+
deathnote (0.1.4)
|
5
5
|
debride (~> 1.8)
|
6
6
|
|
7
7
|
GEM
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
rspec-support (3.7.1)
|
30
30
|
ruby_parser (3.11.0)
|
31
31
|
sexp_processor (~> 4.9)
|
32
|
-
sexp_processor (4.
|
32
|
+
sexp_processor (4.11.0)
|
33
33
|
|
34
34
|
PLATFORMS
|
35
35
|
ruby
|
data/README.md
CHANGED
@@ -1,28 +1,35 @@
|
|
1
1
|
# Deathnote
|
2
2
|
|
3
|
-
|
3
|
+
deathnote gem receive 2 commit hash and compare those dead code from each version of project code.
|
4
|
+
This will be helpful if you have a lot false-positive result.
|
4
5
|
|
5
|
-
|
6
|
+
## Requirement
|
7
|
+
|
8
|
+
deathnote assumes you are using git.
|
9
|
+
It will use `git checkout` to switch to each revision.
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
9
13
|
Add this line to your application's Gemfile:
|
10
14
|
|
11
15
|
```ruby
|
12
|
-
gem 'deathnote'
|
16
|
+
gem 'deathnote', require: false
|
13
17
|
```
|
14
18
|
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
21
|
$ gem install deathnote
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
```
|
26
|
+
Usage: deathnote [options] files_or_dirs
|
27
|
+
-h, --help Display this help.
|
28
|
+
-p, --past-commit=[commit hash] Specify past commit hash.
|
29
|
+
-n, --newer-commit=[commit hash] Specify newer commit hash.
|
30
|
+
-r, --rails Filter some rails call conversions.
|
31
|
+
-e, --exclude=file1,file2,etc Exclude files or directories in comma-separated list.
|
32
|
+
```
|
26
33
|
|
27
34
|
## Development
|
28
35
|
|
@@ -32,7 +39,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
39
|
|
33
40
|
## Contributing
|
34
41
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
42
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/riseshia/deathnote.
|
36
43
|
|
37
44
|
## License
|
38
45
|
|
data/changelog
ADDED
data/lib/deathnote.rb
CHANGED
@@ -31,7 +31,9 @@ module Deathnote
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def parse_options(argv)
|
34
|
-
options = {
|
34
|
+
options = {
|
35
|
+
whitelist: []
|
36
|
+
}
|
35
37
|
OptionParser.new do |opts|
|
36
38
|
opts.banner = 'Usage: deathnote [options] files_or_dirs'
|
37
39
|
|
@@ -48,6 +50,9 @@ module Deathnote
|
|
48
50
|
opts.on('-r', '--rails', 'Filter some rails call conversions.') do
|
49
51
|
options[:rails] = true
|
50
52
|
end
|
53
|
+
opts.on('-w', '--whitelist', 'Whitelist with separated by \n') do
|
54
|
+
options[:whitelist] = File.read(s).split(/\n+/) rescue []
|
55
|
+
end
|
51
56
|
opts.on('-e', '--exclude=file1,file2,etc', Array, 'Exclude files or directories in comma-separated list.') do |list|
|
52
57
|
options[:exclude] = list
|
53
58
|
end
|
data/lib/deathnote/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deathnote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shia
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- Rakefile
|
87
87
|
- bin/console
|
88
88
|
- bin/setup
|
89
|
+
- changelog
|
89
90
|
- deathnote.gemspec
|
90
91
|
- exe/deathnote
|
91
92
|
- lib/deathnote.rb
|