ad_gear_client 0.5.1 → 0.5.2
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.
- data/VERSION +1 -1
- data/ad_gear_client.gemspec +1 -1
- data/lib/ad_gear/web_placement.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.2
|
data/ad_gear_client.gemspec
CHANGED
|
@@ -14,12 +14,12 @@ module AdGear
|
|
|
14
14
|
def selection_mechanism=(value)
|
|
15
15
|
case value
|
|
16
16
|
when /^r/i
|
|
17
|
-
attributes["selection_mechanism"] = "
|
|
17
|
+
attributes["selection_mechanism"] = "rotated"
|
|
18
18
|
when /^w/i
|
|
19
|
-
attributes["selection_mechanism"] = "
|
|
19
|
+
attributes["selection_mechanism"] = "weighted"
|
|
20
20
|
else
|
|
21
21
|
# Assign whatever we received, and hope for the best
|
|
22
|
-
attributes["selection_mechanism"] = value
|
|
22
|
+
attributes["selection_mechanism"] = value.to_s.downcase
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|