deathnote 0.1.4 → 0.1.5

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: dd14b026154cc2156ddb2fdc6c43e3d123cd183f
4
- data.tar.gz: 709a4d8c854971529428504b67842ebbcab56fb3
3
+ metadata.gz: 18d3b8146838ac27ae40469f4a45d863c8c5a909
4
+ data.tar.gz: d525786ea9f99481d595ed555242553e3bfd1f50
5
5
  SHA512:
6
- metadata.gz: ac7afee44ffc18c06309f8aaa8bf314e1011c657ac3ae2edeef247b622e71a53ad7db31bf3579b1d2852d76564e0315063ed9c4c206bcba903fbe431535f7f7d
7
- data.tar.gz: 28ffcec65aa30b3e779f83171a4f7553c9d421cd42e3e5fe2cda7900aff54c55e7b57306ff0c60313470e6c9ab3552a25e249c2366921a2e5cd35d3bde2e7a15
6
+ metadata.gz: e5056cd59d4b05a5e4557124c9531003c8d5c610eb21a134ccbf98c9c938bf9745c5ec42c63e1286d25a23ea8fd89885954979fb2c6bf0c2f2dbd49a797289c8
7
+ data.tar.gz: 94e99a7e3e8ad0a3f85fdf8a48da11878e9694050234c6d0a3f1ea9ea3fd57ee4151c89cd056e595a0e92f212642eb310cbc2b6f7cebfa4c196e185123f29e57
data/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  deathnote gem receive 2 commit hash and compare those dead code from each version of project code.
4
4
  This will be helpful if you have a lot false-positive result.
5
5
 
6
+ You may get better understanding with [this slide](https://speakerdeck.com/riseshia/find-out-potential-dead-codes-from-diff).
7
+
6
8
  ## Requirement
7
9
 
8
10
  deathnote assumes you are using git.
@@ -28,7 +30,8 @@ Usage: deathnote [options] files_or_dirs
28
30
  -p, --past-commit=[commit hash] Specify past commit hash.
29
31
  -n, --newer-commit=[commit hash] Specify newer commit hash.
30
32
  -r, --rails Filter some rails call conversions.
31
- -e, --exclude=file1,file2,etc Exclude files or directories in comma-separated list.
33
+ -w, --whitelist=FILE Whitelist with separated by \n
34
+ -e, --exclude=FILE1,FILE2,... Exclude files or directories in comma-separated list.
32
35
  ```
33
36
 
34
37
  ## Development
data/changelog CHANGED
@@ -1,5 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.4
3
+ ## 0.1.5
4
4
 
5
5
  - support to pass whitelist file to debride
@@ -50,10 +50,10 @@ module Deathnote
50
50
  opts.on('-r', '--rails', 'Filter some rails call conversions.') do
51
51
  options[:rails] = true
52
52
  end
53
- opts.on('-w', '--whitelist', 'Whitelist with separated by \n') do
53
+ opts.on('-w', '--whitelist=FILE', 'Whitelist with separated by \n') do
54
54
  options[:whitelist] = File.read(s).split(/\n+/) rescue []
55
55
  end
56
- opts.on('-e', '--exclude=file1,file2,etc', Array, 'Exclude files or directories in comma-separated list.') do |list|
56
+ opts.on('-e', '--exclude=FILE1,FILE2,...', Array, 'Exclude files or directories in comma-separated list.') do |list|
57
57
  options[:exclude] = list
58
58
  end
59
59
  end.parse!
@@ -1,3 +1,3 @@
1
1
  module Deathnote
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deathnote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia