Active 0.0.38 → 0.0.39

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/services/gsa.rb +5 -3
  2. data/version.txt +1 -1
  3. metadata +3 -3
data/lib/services/gsa.rb CHANGED
@@ -51,12 +51,12 @@ module Active
51
51
  if @data["meta"]["channel"].index(",")
52
52
  arr << @data["meta"]["channel"].split(",")
53
53
  else
54
- arr << [@data["meta"]["channel"]]
54
+ arr << @data["meta"]["channel"]
55
55
  end
56
56
  else
57
57
  arr << @data["meta"]["channel"]
58
58
  end
59
- arr
59
+ arr.flatten!
60
60
  end
61
61
 
62
62
  def asset_id
@@ -74,10 +74,12 @@ module Active
74
74
  # do we have it in the seo url?
75
75
  if @data["meta"].has_key?("seourl")
76
76
  seo_channel = @data["meta"]["seourl"].split("/")
77
- if seo_channel.length >2
77
+ if seo_channel.length > 2 and categories
78
78
  categories.each do |cat|
79
79
  return cat if cat.downcase==seo_channel[3].downcase
80
80
  end
81
+ else
82
+ return "unknown"
81
83
  end
82
84
  end
83
85
  if categories.nil?# && categories.empty?
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.38
1
+ 0.0.39
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: 83
4
+ hash: 81
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 38
10
- version: 0.0.38
9
+ - 39
10
+ version: 0.0.39
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Spooner, Brian Levine