ad_gear_client 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|