Active 0.0.36 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/services/gsa.rb +12 -8
  2. data/version.txt +1 -1
  3. metadata +3 -3
data/lib/services/gsa.rb CHANGED
@@ -46,16 +46,20 @@ module Active
46
46
  # end
47
47
 
48
48
  def categories
49
- if @data["meta"]["channel"].class==String
50
- if @data["meta"]["channel"].index(",")
51
- return @data["meta"]["channel"].split(",")
49
+ begin
50
+ if @data["meta"]["channel"].class==String
51
+ if @data["meta"]["channel"].index(",")
52
+ return @data["meta"]["channel"].split(",")
53
+ else
54
+ return [@data["meta"]["channel"]]
55
+ end
52
56
  else
53
- return [@data["meta"]["channel"]]
54
- end
55
- else
56
- return @data["meta"]["channel"]
57
+ return @data["meta"]["channel"]
58
+ end
59
+ rescue Exception => e
60
+ # todo Log error
57
61
  end
58
- []
62
+ return []
59
63
  end
60
64
 
61
65
  def asset_id
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.36
1
+ 0.0.37
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Active
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
4
+ hash: 85
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 36
10
- version: 0.0.36
9
+ - 37
10
+ version: 0.0.37
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Spooner, Brian Levine