memcached 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/ext/extconf.rb +6 -1
- data/ext/rlibmemcached_wrap.c +10 -12
- data/lib/memcached/memcached.rb +2 -2
- data/memcached.gemspec +3 -3
- data/test/profile/benchmark.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/ext/extconf.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
require 'rbconfig'
|
3
3
|
|
4
|
+
unless find_header('sasl/sasl.h')
|
5
|
+
abort 'Please install SASL to continue. The package is called libsasl2-dev on Ubuntu and cyrus-sasl on Gentoo.'
|
6
|
+
end
|
7
|
+
|
4
8
|
HERE = File.expand_path(File.dirname(__FILE__))
|
5
9
|
BUNDLE_PATH = Dir.glob("libmemcached-*").first
|
6
10
|
|
@@ -48,7 +52,8 @@ def check_libmemcached
|
|
48
52
|
|
49
53
|
Dir.chdir(HERE) do
|
50
54
|
Dir.chdir(BUNDLE_PATH) do
|
51
|
-
|
55
|
+
ts_now=Time.now.strftime("%Y%m%d%H%M.%S")
|
56
|
+
run("find . | xargs touch -t #{ts_now}", "Touching all files so autoconf doesn't run.")
|
52
57
|
run("env CFLAGS='-fPIC #{LIBM_CFLAGS}' LDFLAGS='-fPIC #{LIBM_LDFLAGS}' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils --disable-dependency-tracking #{$CC} #{$EXTRA_CONF} 2>&1", "Configuring libmemcached.")
|
53
58
|
end
|
54
59
|
|
data/ext/rlibmemcached_wrap.c
CHANGED
@@ -9016,12 +9016,11 @@ _wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) {
|
|
9016
9016
|
char *result = 0 ;
|
9017
9017
|
VALUE vresult = Qnil;
|
9018
9018
|
|
9019
|
-
|
9020
|
-
|
9021
|
-
|
9022
|
-
|
9023
|
-
|
9024
|
-
}
|
9019
|
+
char string[256];
|
9020
|
+
size_t length = 0;
|
9021
|
+
arg2 = string;
|
9022
|
+
arg3 = &length;
|
9023
|
+
|
9025
9024
|
arg4 = &temp4;
|
9026
9025
|
arg5 = &temp5;
|
9027
9026
|
arg6 = &temp6;
|
@@ -12764,12 +12763,11 @@ _wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) {
|
|
12764
12763
|
VALUE result;
|
12765
12764
|
VALUE vresult = Qnil;
|
12766
12765
|
|
12767
|
-
|
12768
|
-
|
12769
|
-
|
12770
|
-
|
12771
|
-
|
12772
|
-
}
|
12766
|
+
char string[256];
|
12767
|
+
size_t length = 0;
|
12768
|
+
arg2 = string;
|
12769
|
+
arg3 = &length;
|
12770
|
+
|
12773
12771
|
arg4 = &temp4;
|
12774
12772
|
arg5 = &temp5;
|
12775
12773
|
if ((argc < 1) || (argc > 1)) {
|
data/lib/memcached/memcached.rb
CHANGED
@@ -15,11 +15,11 @@ class Memcached
|
|
15
15
|
:support_cas => false,
|
16
16
|
:tcp_nodelay => false,
|
17
17
|
:show_backtraces => false,
|
18
|
-
:retry_timeout =>
|
18
|
+
:retry_timeout => 60,
|
19
19
|
:timeout => 0.25,
|
20
20
|
:rcv_timeout => nil,
|
21
21
|
:poll_timeout => nil,
|
22
|
-
:connect_timeout =>
|
22
|
+
:connect_timeout => 0.25,
|
23
23
|
:prefix_key => '',
|
24
24
|
:prefix_delimiter => '',
|
25
25
|
:hash_with_prefix_key => true,
|
data/memcached.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "memcached"
|
5
|
-
s.version = "1.5.
|
5
|
+
s.version = "1.5.1"
|
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 = "
|
10
|
+
s.date = "2013-05-28"
|
11
11
|
s.description = "An interface to the libmemcached C client."
|
12
12
|
s.email = ""
|
13
13
|
s.extensions = ["ext/extconf.rb"]
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Memcached", "--main", "README.rdoc", "--exclude=ext/bin", "--exclude=ext/libmemcached-.*/(clients|tests)"]
|
18
18
|
s.require_paths = ["lib", "ext"]
|
19
19
|
s.rubyforge_project = "evan"
|
20
|
-
s.rubygems_version = "1.8.
|
20
|
+
s.rubygems_version = "1.8.23"
|
21
21
|
s.signing_key = "/Users/eweaver/cloudburst/configuration/gem_certificates/evan_weaver-original-private_key.pem"
|
22
22
|
s.summary = "An interface to the libmemcached C client."
|
23
23
|
s.test_files = ["test/test_helper.rb", "test/unit/binding_test.rb", "test/unit/memcached_experimental_test.rb", "test/unit/memcached_test.rb", "test/unit/rails_test.rb"]
|
data/test/profile/benchmark.rb
CHANGED
@@ -259,7 +259,7 @@ class Bench
|
|
259
259
|
c.get @k3, true
|
260
260
|
end
|
261
261
|
|
262
|
-
if defined?(Memcached) && ENV['TEST']
|
262
|
+
if defined?(Memcached) && !ENV['TEST'] && !ENV['CLIENT']
|
263
263
|
benchmark_hashes(Memcached::HASH_VALUES, "hash") do |i|
|
264
264
|
Rlibmemcached.memcached_generate_hash_rvalue(@k1, i)
|
265
265
|
Rlibmemcached.memcached_generate_hash_rvalue(@k2, i)
|
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.5.
|
4
|
+
version: 1.5.1
|
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:
|
39
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
@@ -395,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
395
395
|
version: '1.2'
|
396
396
|
requirements: []
|
397
397
|
rubyforge_project: evan
|
398
|
-
rubygems_version: 1.8.
|
398
|
+
rubygems_version: 1.8.23
|
399
399
|
signing_key:
|
400
400
|
specification_version: 3
|
401
401
|
summary: An interface to the libmemcached C client.
|
metadata.gz.sig
CHANGED
Binary file
|