memcached 0.19.6 → 0.19.7

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,4 +1,6 @@
1
1
 
2
+ v0.19.7. Add no block prepend and append support for the ASCII protocol (rgbenson).
3
+
2
4
  v0.19.6. Add get_from_last.
3
5
 
4
6
  v0.19.5. Fix autoconf datestamps.
data/Manifest CHANGED
@@ -8,6 +8,7 @@ TODO
8
8
  ext/extconf.rb
9
9
  ext/libmemcached-0.32.tar.gz
10
10
  ext/libmemcached-2.patch
11
+ ext/libmemcached-3.patch
11
12
  ext/libmemcached.patch
12
13
  ext/rlibmemcached.i
13
14
  ext/rlibmemcached_wrap.c
@@ -48,16 +48,20 @@ def check_libmemcached
48
48
  raise "'#{cmd}' failed" unless system(cmd)
49
49
 
50
50
  puts "Patching libmemcached source."
51
- puts(cmd = "#{patch} -p1 -Z < libmemcached.patch")
52
- raise "'#{cmd}' failed" unless system(cmd)
51
+ puts(cmd = "#{patch} -p1 -Z < libmemcached.patch")
52
+ raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
53
53
 
54
54
  puts "Patching libmemcached with SASL support."
55
55
  puts(cmd = "#{patch} -p1 -Z < sasl.patch")
56
- raise "'#{cmd}' failed" unless system(cmd)
56
+ raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
57
57
 
58
58
  puts "Patching libmemcached for get_from_last support."
59
59
  puts(cmd = "#{patch} -p1 -Z < libmemcached-2.patch")
60
- raise "'#{cmd}' failed" unless system(cmd)
60
+ raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
61
+
62
+ puts "Patching libmemcached for no block prepend and append support."
63
+ puts(cmd = "#{patch} -p1 -Z < libmemcached-3.patch")
64
+ raise "'#{cmd}' failed" unless system(cmd) or ENV['DEV']
61
65
 
62
66
  puts "Touching aclocal.m4 in libmemcached."
63
67
  puts(cmd = "touch -r #{BUNDLE_PATH}/m4/visibility.m4 #{BUNDLE_PATH}/configure.ac #{BUNDLE_PATH}/m4/pandora_have_sasl.m4")
@@ -0,0 +1,8 @@
1
+ diff --git a/libmemcached-0.32/libmemcached/memcached_storage.c libmemcached/libmemcached/memcached_storage.c
2
+ --- a/libmemcached-0.32/libmemcached/memcached_storage.c
3
+ +++ b/libmemcached/libmemcached/memcached_storage.c
4
+ 149c149,150
5
+ < if ((ptr->flags & MEM_BUFFER_REQUESTS) && verb == SET_OP)
6
+ ---
7
+ > if ((ptr->flags & MEM_BUFFER_REQUESTS) &&
8
+ > (verb == SET_OP || verb == PREPEND_OP || verb == APPEND_OP))
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{memcached}
5
- s.version = "0.19.6"
5
+ s.version = "0.19.7"
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-06-13}
10
+ s.date = %q{2010-06-18}
11
11
  s.description = %q{An interface to the libmemcached C client.}
12
12
  s.email = %q{}
13
13
  s.extensions = ["ext/extconf.rb"]
14
14
  s.extra_rdoc_files = ["BENCHMARKS", "CHANGELOG", "LICENSE", "README", "TODO", "lib/memcached.rb", "lib/memcached/behaviors.rb", "lib/memcached/exceptions.rb", "lib/memcached/memcached.rb", "lib/memcached/rails.rb"]
15
- s.files = ["BENCHMARKS", "CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "TODO", "ext/extconf.rb", "ext/libmemcached-0.32.tar.gz", "ext/libmemcached-2.patch", "ext/libmemcached.patch", "ext/rlibmemcached.i", "ext/rlibmemcached_wrap.c", "ext/sasl.patch", "lib/memcached.rb", "lib/memcached/auth.rb", "lib/memcached/behaviors.rb", "lib/memcached/exceptions.rb", "lib/memcached/integer.rb", "lib/memcached/memcached.rb", "lib/memcached/rails.rb", "test/profile/benchmark.rb", "test/profile/profile.rb", "test/profile/valgrind.rb", "test/setup.rb", "test/teardown.rb", "test/test_helper.rb", "test/unit/binding_test.rb", "test/unit/memcached_test.rb", "test/unit/rails_test.rb", "memcached.gemspec"]
15
+ s.files = ["BENCHMARKS", "CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "TODO", "ext/extconf.rb", "ext/libmemcached-0.32.tar.gz", "ext/libmemcached-2.patch", "ext/libmemcached-3.patch", "ext/libmemcached.patch", "ext/rlibmemcached.i", "ext/rlibmemcached_wrap.c", "ext/sasl.patch", "lib/memcached.rb", "lib/memcached/auth.rb", "lib/memcached/behaviors.rb", "lib/memcached/exceptions.rb", "lib/memcached/integer.rb", "lib/memcached/memcached.rb", "lib/memcached/rails.rb", "test/profile/benchmark.rb", "test/profile/profile.rb", "test/profile/valgrind.rb", "test/setup.rb", "test/teardown.rb", "test/test_helper.rb", "test/unit/binding_test.rb", "test/unit/memcached_test.rb", "test/unit/rails_test.rb", "memcached.gemspec"]
16
16
  s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/memcached/}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Memcached", "--main", "README"]
18
18
  s.require_paths = ["lib", "ext"]
@@ -38,7 +38,8 @@ class MemcachedTest < Test::Unit::TestCase
38
38
  :prefix_key => @prefix_key,
39
39
  :no_block => true,
40
40
  :buffer_requests => true,
41
- :hash => :default}
41
+ :hash => :default,
42
+ :distribution => :modula}
42
43
  @noblock_cache = Memcached.new(@servers, @noblock_options)
43
44
 
44
45
  @value = OpenStruct.new(:a => 1, :b => 2, :c => GenericClass)
@@ -92,7 +93,7 @@ class MemcachedTest < Test::Unit::TestCase
92
93
  def test_options_are_set
93
94
  Memcached::DEFAULTS.merge(@noblock_options).each do |key, expected|
94
95
  value = @noblock_cache.options[key]
95
- unless key == :rcv_timeout or key == :poll_timeout or key == :prefix_key
96
+ unless key == :rcv_timeout or key == :poll_timeout or key == :prefix_key or key == :ketama_weighted
96
97
  assert(expected == value, "#{key} should be #{expected} but was #{value}")
97
98
  end
98
99
  end
@@ -830,6 +831,16 @@ class MemcachedTest < Test::Unit::TestCase
830
831
  assert_equal Rlibmemcached::MEMCACHED_BUFFERED, ret
831
832
  end
832
833
 
834
+ def test_no_block_prepend
835
+ @cache.set key, "help", 0, false
836
+ @noblock_cache.prepend key, "help"
837
+ assert_equal "help",
838
+ @cache.get(key, false)
839
+ @noblock_cache.get "no_exist", false rescue nil
840
+ assert_equal "helphelp",
841
+ @cache.get(key, false)
842
+ end
843
+
833
844
  def test_no_block_get
834
845
  @noblock_cache.set key, @value
835
846
  assert_equal @value,
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 19
8
- - 6
9
- version: 0.19.6
8
+ - 7
9
+ version: 0.19.7
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-06-13 00:00:00 -07:00
38
+ date: 2010-06-18 00:00:00 -07:00
39
39
  default_executable:
40
40
  dependencies: []
41
41
 
@@ -67,6 +67,7 @@ files:
67
67
  - ext/extconf.rb
68
68
  - ext/libmemcached-0.32.tar.gz
69
69
  - ext/libmemcached-2.patch
70
+ - ext/libmemcached-3.patch
70
71
  - ext/libmemcached.patch
71
72
  - ext/rlibmemcached.i
72
73
  - ext/rlibmemcached_wrap.c
metadata.gz.sig CHANGED
Binary file