memcache 1.2.5 → 1.2.6

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.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
3
  :minor: 2
4
- :patch: 5
4
+ :patch: 6
5
5
  :major: 1
@@ -98,7 +98,7 @@ class Memcache
98
98
  # Temporarily change the namespace for convenience.
99
99
  begin
100
100
  old_namespace = self.namespace
101
- self.namespace = "#{old_namespace}:#{namespace}"
101
+ self.namespace = old_namespace ? "#{old_namespace}:#{namespace}" : namespace
102
102
  yield
103
103
  ensure
104
104
  self.namespace = old_namespace
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{memcache}
8
- s.version = "1.2.5"
8
+ s.version = "1.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Balthrop"]
12
- s.date = %q{2010-03-17}
12
+ s.date = %q{2010-03-19}
13
13
  s.description = %q{Ruby client for memcached supporting advanced protocol features and pluggable architecture.}
14
14
  s.email = %q{code@justinbalthrop.com}
15
15
  s.extensions = ["ext/extconf.rb"]
@@ -55,6 +55,10 @@ module MemcacheServerTestHelper
55
55
 
56
56
  expected = { 'foo bar' => '2', 'foo baz' => '8' }
57
57
  assert_equal expected, m.get(['foo bar','foo baz'])
58
+
59
+ assert_equal 'foo', m.set(' ', 'foo', 0)
60
+ assert_equal 'foo', m.get(' ')
61
+ assert_equal true, m.delete(' ')
58
62
  end
59
63
 
60
64
  def test_expiry
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Balthrop
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-17 00:00:00 -07:00
12
+ date: 2010-03-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15