titanous-garb 0.8.5 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,8 @@ module Garb
9
9
  @session = session
10
10
  @title = entry['title']
11
11
  @table_id = entry['dxp:tableId']
12
- @goals = (entry[Garb.to_ga('goal')] || []).map {|g| Goal.new(g)}
12
+ goals = entry[Garb.to_ga('goal')]
13
+ @goals = (goals.is_a?(Array) ? goals : [goals]).map {|g| Goal.new(g)}
13
14
 
14
15
  Garb.parse_properties(entry).each do |k,v|
15
16
  instance_variable_set :"@#{k}", v
@@ -3,7 +3,7 @@ module Garb
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- TINY = 5
6
+ TINY = 7
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titanous-garb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 5
10
- version: 0.8.5
9
+ - 7
10
+ version: 0.8.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Pitale