mddb 0.0.22 → 0.0.23

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.
@@ -14,17 +14,21 @@ module Mddb::Commands
14
14
  end
15
15
 
16
16
  def local
17
- ARGV.shift
18
- arg = ARGV.first
19
- if arg.split("..").count == 2
20
- a = arg.split("..").map {|d| d.to_i}
21
- x = Mddb::Runner.new
22
- x.run(a[0],a[1])
23
- elsif arg == "all"
24
- a = arg.split("..").map {|d| d.to_i}
25
- x = Mddb::Runner.new
26
- x.run(0,0)
27
- else
17
+ begin
18
+ ARGV.shift
19
+ arg = ARGV.first
20
+ if arg.split("..").count == 2
21
+ a = arg.split("..").map {|d| d.to_i}
22
+ x = Mddb::Runner.new
23
+ x.run(a[0],a[1])
24
+ elsif arg == "all"
25
+ a = arg.split("..").map {|d| d.to_i}
26
+ x = Mddb::Runner.new
27
+ x.run(0,0)
28
+ else
29
+ puts "Please supply a range of frames: eg. 1..10 or use 'all'"
30
+ end
31
+ rescue
28
32
  puts "Please supply a range of frames: eg. 1..10 or use 'all'"
29
33
  end
30
34
  end
data/lib/mddb/runner.rb CHANGED
@@ -51,14 +51,14 @@ module Mddb
51
51
  begin
52
52
  o.run
53
53
  complete += 1
54
- print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}" if @stats?
54
+ print("\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}") if @stats
55
55
  rescue
56
56
  failed += 1
57
- print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}" if @stats?
57
+ print("\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}") if @stats
58
58
  end
59
59
  end
60
- puts " Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}"
61
- print "\n"
60
+ puts " Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}" unless @stats
61
+ print("\n") if @stats
62
62
  end
63
63
  begin
64
64
  puts " Running Frame Calculations"
data/lib/mddb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mddb
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mddb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.22
5
+ version: 0.0.23
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Mulvaney