modelist 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/modelist/cli.rb +0 -7
- data/lib/modelist/version.rb +1 -1
- metadata +1 -1
data/lib/modelist/cli.rb
CHANGED
@@ -8,8 +8,6 @@ module Modelist
|
|
8
8
|
# load Rails environment
|
9
9
|
require './config/environment'
|
10
10
|
require 'modelist/tester'
|
11
|
-
#args = options[:models] ? options.delete(:models).split(',').collect{|s|s.strip} << options : []
|
12
|
-
puts "args=#{args.inspect}"
|
13
11
|
args.each {|a| puts "Unsupported option: #{args.delete(a)}" if a.to_s.starts_with?('-')}
|
14
12
|
exit ::Modelist::Tester.test_models(*args) ? 0 : 1
|
15
13
|
end
|
@@ -19,9 +17,6 @@ module Modelist
|
|
19
17
|
# load Rails environment
|
20
18
|
require './config/environment'
|
21
19
|
require 'modelist/analyst'
|
22
|
-
# args are [*options[:models], options hash (minus the models)]
|
23
|
-
#args = options[:models] ? options.delete(:models).split(',').collect{|s|s.strip} << options : []
|
24
|
-
puts "args=#{args.inspect}"
|
25
20
|
args.each {|a| puts "Unsupported option: #{args.delete(a)}" if a.to_s.starts_with?('-')}
|
26
21
|
Modelist::Analyst.find_required_models(*args)
|
27
22
|
exit 0
|
@@ -33,8 +28,6 @@ module Modelist
|
|
33
28
|
# load Rails environment
|
34
29
|
require './config/environment'
|
35
30
|
require 'modelist/circular_ref_checker'
|
36
|
-
#args = options[:models] ? options.delete(:models).split(',').collect{|s|s.strip} << options : []
|
37
|
-
puts "args=#{args.inspect}"
|
38
31
|
args.each {|a| puts "Unsupported option: #{args.delete(a)}" if a.to_s.starts_with?('-')}
|
39
32
|
exit ::Modelist::CircularRefChecker.test_models(*args) ? 0 : 1
|
40
33
|
end
|
data/lib/modelist/version.rb
CHANGED