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 CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ad_gear_client}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Fran\303\247ois Beausoleil"]
@@ -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"] = "R"
17
+ attributes["selection_mechanism"] = "rotated"
18
18
  when /^w/i
19
- attributes["selection_mechanism"] = "W"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad_gear_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Fran\xC3\xA7ois Beausoleil"