memcached 0.19.8 → 0.19.9

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.19.9. Fix Memcached::Rails#add.
1
2
 
2
3
  v0.19.8. Support :noreply behavior.
3
4
 
@@ -25,6 +25,8 @@ class Memcached
25
25
 
26
26
  opts[:prefix_key] ||= opts[:namespace]
27
27
  @logger = opts[:logger]
28
+ @string_return_types = opts[:string_return_types]
29
+
28
30
  logger.info { "memcached #{VERSION} #{servers.inspect}" } if logger
29
31
  super(servers, opts)
30
32
  end
@@ -78,10 +80,10 @@ class Memcached
78
80
  # Wraps Memcached#add so that it doesn't raise.
79
81
  def add(key, value, ttl=@default_ttl, raw=false)
80
82
  super(key, value, ttl, !raw)
81
- # This causes me physical pain.
82
- opts[:string_return_types] ? "STORED\r\n" : true
83
+ # This causes me pain
84
+ @string_return_types ? "STORED\r\n" : true
83
85
  rescue NotStored
84
- opts[:string_return_types] ? "NOT STORED\r\n" : false
86
+ @string_return_types? "NOT STORED\r\n" : false
85
87
  end
86
88
 
87
89
  # Wraps Memcached#delete so that it doesn't raise.
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{memcached}
5
- s.version = "0.19.8"
5
+ s.version = "0.19.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Weaver"]
9
9
  s.cert_chain = ["/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
10
- s.date = %q{2010-07-03}
10
+ s.date = %q{2010-07-05}
11
11
  s.description = %q{An interface to the libmemcached C client.}
12
12
  s.email = %q{}
13
13
  s.extensions = ["ext/extconf.rb"]
@@ -87,7 +87,7 @@ class Bench
87
87
  "libm:noblock_binary" => Memcached::Rails.new(
88
88
  ['127.0.0.1:43042', '127.0.0.1:43043'],
89
89
  :no_block => true, :buffer_requests => true, :namespace => "namespace", :binary_protocol => true),
90
- "ruby" => MemCache.new(['127.0.0.1:43042', '127.0.0.1:43043'], :namespace => "namespace"),
90
+ "ruby" => Memcache.new(:servers => ['127.0.0.1:43042', '127.0.0.1:43043'], :namespace => "namespace"),
91
91
  "stash" => Remix::Stash.new(:root)}
92
92
  end
93
93
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 19
8
- - 8
9
- version: 0.19.8
8
+ - 9
9
+ version: 0.19.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Evan Weaver
@@ -35,7 +35,7 @@ cert_chain:
35
35
  yZ0=
36
36
  -----END CERTIFICATE-----
37
37
 
38
- date: 2010-07-03 00:00:00 -07:00
38
+ date: 2010-07-05 00:00:00 -07:00
39
39
  default_executable:
40
40
  dependencies: []
41
41
 
metadata.gz.sig CHANGED
Binary file