memcached 1.4.5 → 1.4.6

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,6 @@
1
+
2
+ v1.4.6. Correctly report key in error message instead of erroring again (jason-o-matic, timhaines).
3
+
1
4
  v1.4.5. Fix missing file in manifest. Add install test to pre-release hook.
2
5
 
3
6
  v1.4.4. Add memcached_exist function to libmemcached and Memcached#exist to expose it (ccocchi). Make test_all work again without RVM.
@@ -552,6 +552,7 @@ Please note that when <tt>:no_block => true</tt>, update methods do not raise on
552
552
  else
553
553
  check_return_code(ret)
554
554
  end
555
+ rescue ABadKeyWasProvidedOrCharactersOutOfRange
555
556
  end
556
557
 
557
558
  # Return a Hash of statistics responses from the set of servers. Each value is an array with one entry for each server, in the same order the servers were defined.
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "memcached"
5
- s.version = "1.4.5"
5
+ s.version = "1.4.6"
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/cloudburst/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
10
- s.date = "2012-09-08"
10
+ s.date = "2012-09-27"
11
11
  s.description = "An interface to the libmemcached C client."
12
12
  s.email = ""
13
13
  s.extensions = ["ext/extconf.rb"]
@@ -830,12 +830,30 @@ class MemcachedTest < Test::Unit::TestCase
830
830
  assert_raises(Memcached::ABadKeyWasProvidedOrCharactersOutOfRange) do
831
831
  @cache.get(key)
832
832
  end
833
-
834
833
  assert_raises(Memcached::ABadKeyWasProvidedOrCharactersOutOfRange) do
835
834
  @cache.get([key])
836
835
  end
837
836
  end
838
837
 
838
+ def test_verify_key_disabled
839
+ cache = Memcached.new @servers, :verify_key => false
840
+ key = "i have a space"
841
+ assert_raises(Memcached::ProtocolError) do
842
+ cache.set key, @value
843
+ end
844
+ assert_raises(Memcached::NotFound) do
845
+ cache.get key, @value
846
+ end
847
+ end
848
+
849
+ def test_key_error_message
850
+ key = "i have a space"
851
+ @cache.get key, @value
852
+ assert false # Never reached
853
+ rescue Memcached::ABadKeyWasProvidedOrCharactersOutOfRange => e
854
+ assert_match /#{key}/, e.message
855
+ end
856
+
839
857
  def test_server_error_message
840
858
  @cache.set key, "I'm big" * 1000000
841
859
  assert false # Never reached
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  QUMzSFJXWnhJUzFzZm4vU3NxYTdFN29RTWt2NUZBWHIKeDVyS2VQZlhJTmY4
37
37
  WFRKY3prbDlPQkVZZEU5YU5kSnNKcFhEMGFzTGdHVndCSUNTNUJqb2hwNm1p
38
38
  ekpjREMxKwp5WjA9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
39
- date: 2012-09-08 00:00:00.000000000 Z
39
+ date: 2012-09-27 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
metadata.gz.sig CHANGED
Binary file