mddb 0.0.21 → 0.0.22

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.
Files changed (3) hide show
  1. data/lib/mddb/runner.rb +9 -3
  2. data/lib/mddb/version.rb +1 -1
  3. metadata +1 -1
data/lib/mddb/runner.rb CHANGED
@@ -6,6 +6,11 @@ module Mddb
6
6
  rescue
7
7
  @klasses = []
8
8
  end
9
+ @stats = false
10
+ end
11
+
12
+ def stats_on
13
+ @stats = true
9
14
  end
10
15
 
11
16
  def fine?
@@ -46,19 +51,20 @@ module Mddb
46
51
  begin
47
52
  o.run
48
53
  complete += 1
49
- print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}"
54
+ print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}" if @stats?
50
55
  rescue
51
56
  failed += 1
52
- print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}"
57
+ print "\r Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}" if @stats?
53
58
  end
54
59
  end
60
+ puts " Models (#{i+1}/#{model_count}) => #{k} Completed #{complete}/#{object_count} Failed: #{failed}"
55
61
  print "\n"
56
62
  end
57
63
  begin
58
64
  puts " Running Frame Calculations"
59
65
  frame.run
60
66
  rescue
61
- " Failed"
67
+ puts " Failed"
62
68
  end
63
69
  end
64
70
  end
data/lib/mddb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mddb
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
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.21
5
+ version: 0.0.22
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Mulvaney