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 +4 -4
- data/bin/depralyzer +5 -14
- data/lib/depralyzer/version.rb +1 -1
- data/lib/depralyzer.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 947c3f82e403eda781c3881fd6f6bb08c5a898984ba4489f6493d7d9f4827ad2
|
4
|
+
data.tar.gz: ee9d21f855d759da65af3d6bc1208ec4b842801ac095d80d3bb8a5d1bea9d5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
17
|
-
opt.on('--output-
|
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/*.
|
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
|
-
|
41
|
-
|
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
|
|
data/lib/depralyzer/version.rb
CHANGED
data/lib/depralyzer.rb
CHANGED
@@ -13,8 +13,8 @@ module Depralyzer
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.
|
17
|
-
generator = Depralyzer::Generator.new(
|
18
|
-
generator.
|
16
|
+
def self.process(file_path)
|
17
|
+
generator = Depralyzer::Generator.new(file_path)
|
18
|
+
generator.process
|
19
19
|
end
|
20
20
|
end
|