mountain-goat 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,7 @@ module MetricTracking
77
77
  options.each do |k, v|
78
78
  if k.to_s =~ /^metric_(\w+)$/i
79
79
  options.delete k
80
- metrics.push $1, v
80
+ metrics.merge!({ $1, v })
81
81
  end
82
82
  end
83
83
 
@@ -93,10 +93,10 @@ module MetricTracking
93
93
  Rally.create!( { :convert_id => convert.id } ).set_meta_data(options)
94
94
 
95
95
  #User-defined metric tallies
96
- metric.each do |metric_title, variant_id|
97
- m = Metric.find_by_title(metric_title)
96
+ metrics.each do |metric_type, variant_id|
97
+ m = Metric.find_by_metric_type(metric_type)
98
98
  if m.nil?
99
- logger.warn "Missing user-defined metric #{metric}"
99
+ logger.warn "Missing user-defined metric #{metric_type}"
100
100
  next
101
101
  end
102
102
 
@@ -1,3 +1,3 @@
1
1
  class MountainGoat
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mountain-goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoffrey Hayes
@@ -122,6 +122,7 @@ files:
122
122
  - migrations/20110710193220_mountain_goat_add_mg_options_table.rb
123
123
  - mountain-goat-0.0.1.gem
124
124
  - mountain-goat-0.0.10.gem
125
+ - mountain-goat-0.0.11.gem
125
126
  - mountain-goat-0.0.2.gem
126
127
  - mountain-goat-0.0.3.gem
127
128
  - mountain-goat-0.0.4.gem