depralyzer 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 763decd8e05adabf78824638e7e89c8eaf6e8b42368466455b7bd0bf6287ee3c
4
- data.tar.gz: dc35091e134db2c9c3ea486c672cb89d20d7432a9722ad7ea72e48585ea135ca
3
+ metadata.gz: 947c3f82e403eda781c3881fd6f6bb08c5a898984ba4489f6493d7d9f4827ad2
4
+ data.tar.gz: ee9d21f855d759da65af3d6bc1208ec4b842801ac095d80d3bb8a5d1bea9d5f4
5
5
  SHA512:
6
- metadata.gz: 7df0641541812bbbe0c164c67bfaccb42a341f9195fbe72742562cced4e4b8795ab180716e7bd08c175b5665e0ba5c457fb67f579f757636dd9f7e5b984fce75
7
- data.tar.gz: c55707f00bdc700e8e6eec759c8bef9f7207a5cec2d8b9cce7280306aee03be2f3a4345deb0a8c5fc047ade7680a1d344843f16c50e764cc4d0b1b357a3de189
6
+ metadata.gz: 040752a5b4f9b6c635df638d69038d437707214447626b4239975874099d41c19c84ce11e33ff218ae17df8f412831d3d85fbfb02e15d6db57848ffaad6bf8be
7
+ data.tar.gz: cc3a5f33f62cc1b74e9370403e2080eeff9fc3333fedcd80429880238f2c08abccd03121364562f7c5d48bdddb2d85dc543781589b09feef7e4e2c716c421e21
data/bin/depralyzer CHANGED
@@ -13,8 +13,8 @@ exc_spec_dir = nil
13
13
 
14
14
  opt = OptionParser.new
15
15
 
16
- opt.on('-o VAL', 'Output directory (default: ./spec)') { |dir| spec_dir = dir }
17
- opt.on('--output-dir VAL', '') { |dir| spec_dir = dir }
16
+ opt.on('-o VAL', 'Output file') { |dir| outfile = dir }
17
+ opt.on('--output-file VAL', '') { |dir| outfile = dir }
18
18
 
19
19
  opt.on('-v', 'Print version') { |_| print_version = true }
20
20
  opt.on('--version', '') { |_| print_version = true }
@@ -28,19 +28,10 @@ end
28
28
 
29
29
  dir_or_file = args.first
30
30
  if dir_or_file.nil?
31
- puts "Usage: depralyzer [dir/*.rb] -options"
31
+ puts "Usage: depralyzer [dir/*.log] -options"
32
32
  exit 1
33
33
  end
34
- unless dir_or_file.match(/.rb$/)
35
- dir_or_file = dir_or_file.gsub(/\/$/, '') + "/**/*.rb"
36
- end
37
-
38
- generator = Depralyzer::Generator.new(spec_dir)
39
34
 
40
- files = Dir.glob(dir_or_file)
41
- files -= Dir.glob(exc_spec_dir) if exc_spec_dir
42
-
43
- files.each do |file_path|
44
- generator.write_spec(file_path, force_write, dry_run, rails_mode)
45
- end
35
+ generator = Depralyzer::Generator.new(outfile)
36
+ generator.process
46
37
 
@@ -4,5 +4,5 @@
4
4
  # Gem version
5
5
  #
6
6
  module Depralyzer
7
- VERSION = '0.1.0'
7
+ VERSION = '0.1.1'
8
8
  end
data/lib/depralyzer.rb CHANGED
@@ -13,8 +13,8 @@ module Depralyzer
13
13
  end
14
14
  end
15
15
 
16
- def self.analyze(file_path)
17
- generator = Depralyzer::Generator.new(spec_dir)
18
- generator.write_spec(file_path, force_write, dry_run)
16
+ def self.process(file_path)
17
+ generator = Depralyzer::Generator.new(file_path)
18
+ generator.process
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depralyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothy Chambers