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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aace6c940d670c1700c32532632916f75834e6a4
4
- data.tar.gz: 1e893719ecce68a97a653986fd3620d30e8b727a
3
+ metadata.gz: dd14b026154cc2156ddb2fdc6c43e3d123cd183f
4
+ data.tar.gz: 709a4d8c854971529428504b67842ebbcab56fb3
5
5
  SHA512:
6
- metadata.gz: be562a1ea30194c70705c10f2613850d86d4e1ddfee73e0d36b633c2968ef06d44631018797e8b5dcee652e832a3170026fdbacabf2944a082b154a9e26df24d
7
- data.tar.gz: cf8a5bdb76205993c26dec21a815b6b882697f4ea5bd59497c28400de19bdebb8e7a707b6789ca1ddc908c846854ce7d80811d756df7f3ba6527514b9eca66e8
6
+ metadata.gz: ac7afee44ffc18c06309f8aaa8bf314e1011c657ac3ae2edeef247b622e71a53ad7db31bf3579b1d2852d76564e0315063ed9c4c206bcba903fbe431535f7f7d
7
+ data.tar.gz: 28ffcec65aa30b3e779f83171a4f7553c9d421cd42e3e5fe2cda7900aff54c55e7b57306ff0c60313470e6c9ab3552a25e249c2366921a2e5cd35d3bde2e7a15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deathnote (0.1.0)
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.10.1)
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/deathnote`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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/[USERNAME]/deathnote.
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/riseshia/deathnote.
36
43
 
37
44
  ## License
38
45
 
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.4
4
+
5
+ - support to pass whitelist file to debride
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Deathnote
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
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.3
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-04-13 00:00:00.000000000 Z
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