Active 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/services/gsa.rb +12 -8
- data/version.txt +1 -1
- 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
|
-
|
50
|
-
if @data["meta"]["channel"].
|
51
|
-
|
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
|
54
|
-
end
|
55
|
-
|
56
|
-
|
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.
|
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:
|
4
|
+
hash: 85
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 37
|
10
|
+
version: 0.0.37
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Spooner, Brian Levine
|