modelist 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,3 +1,3 @@
1
1
  module Modelist
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modelist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: