memcached 1 → 1.0.1
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.
- data.tar.gz.sig +0 -0
- data/BENCHMARKS +95 -95
- data/CHANGELOG +2 -0
- data/ext/extconf.rb +1 -1
- data/ext/rlibmemcached_wrap.c +20 -17
- data/lib/memcached/exceptions.rb +1 -1
- data/memcached.gemspec +4 -4
- metadata +10 -3
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/BENCHMARKS
CHANGED
|
@@ -12,116 +12,116 @@ These benchmarks were run on an OS X 10.5 Core 2 Duo machine:
|
|
|
12
12
|
Darwin amber.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT
|
|
13
13
|
2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
|
|
14
14
|
Ruby 1.9.2p0
|
|
15
|
-
Loaded memcached
|
|
15
|
+
Loaded memcached 1
|
|
16
16
|
Loaded remix-stash 1.1.3
|
|
17
17
|
Loaded memcache-client 1.8.5
|
|
18
|
-
Loaded dalli 0.9.
|
|
18
|
+
Loaded dalli 0.9.7
|
|
19
19
|
Loops is 20000
|
|
20
20
|
Stack depth is 0
|
|
21
21
|
Small value size is: 19 bytes
|
|
22
22
|
Large value size is: 4189 bytes
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
user system total real
|
|
25
|
-
set: dalli:bin
|
|
26
|
-
set: libm:ascii 0.570000
|
|
27
|
-
set: libm:ascii:
|
|
28
|
-
set: libm:ascii:udp 0.
|
|
29
|
-
set: libm:bin 0.480000 0.990000 1.470000 ( 3.
|
|
30
|
-
set: libm:bin:
|
|
31
|
-
set: mclient:ascii 7.
|
|
32
|
-
set: stash:bin 2.
|
|
25
|
+
set: dalli:bin 5.510000 1.440000 6.950000 ( 7.097051)
|
|
26
|
+
set: libm:ascii 0.570000 1.010000 1.580000 ( 4.001999)
|
|
27
|
+
set: libm:ascii:pipeline 0.160000 0.010000 0.170000 ( 0.185296)
|
|
28
|
+
set: libm:ascii:udp 0.440000 0.550000 0.990000 ( 1.924700)
|
|
29
|
+
set: libm:bin 0.480000 0.990000 1.470000 ( 3.606949)
|
|
30
|
+
set: libm:bin:buffer 0.140000 0.110000 0.250000 ( 0.792182)
|
|
31
|
+
set: mclient:ascii 7.700000 3.280000 10.980000 ( 11.116606)
|
|
32
|
+
set: stash:bin 2.590000 1.140000 3.730000 ( 6.451502)
|
|
33
33
|
|
|
34
|
-
get: dalli:bin
|
|
35
|
-
get: libm:ascii 0.
|
|
36
|
-
get: libm:ascii:
|
|
37
|
-
get: libm:ascii:udp 0.
|
|
38
|
-
get: libm:bin 0.560000 1.000000 1.560000 ( 3.
|
|
39
|
-
get: libm:bin:
|
|
40
|
-
get: mclient:ascii 8.
|
|
41
|
-
get: stash:bin 2.
|
|
34
|
+
get: dalli:bin 6.000000 1.610000 7.610000 ( 7.863815)
|
|
35
|
+
get: libm:ascii 0.690000 1.050000 1.740000 ( 3.900660)
|
|
36
|
+
get: libm:ascii:pipeline 0.790000 1.310000 2.100000 ( 4.115793)
|
|
37
|
+
get: libm:ascii:udp 0.570000 0.550000 1.120000 ( 1.974468)
|
|
38
|
+
get: libm:bin 0.560000 1.000000 1.560000 ( 3.400204)
|
|
39
|
+
get: libm:bin:buffer 0.660000 1.340000 2.000000 ( 4.013932)
|
|
40
|
+
get: mclient:ascii 8.930000 3.370000 12.300000 ( 12.457570)
|
|
41
|
+
get: stash:bin 2.400000 1.300000 3.700000 ( 5.831002)
|
|
42
42
|
|
|
43
|
-
get-multi: dalli:bin
|
|
44
|
-
get-multi: libm:ascii 0.
|
|
45
|
-
get-multi: libm:ascii:
|
|
46
|
-
get-multi: libm:ascii:udp 0.730000 0.480000 1.210000 ( 1.
|
|
47
|
-
get-multi: libm:bin 0.
|
|
48
|
-
get-multi: libm:bin:
|
|
43
|
+
get-multi: dalli:bin 7.260000 2.740000 10.000000 ( 10.315224)
|
|
44
|
+
get-multi: libm:ascii 0.770000 0.630000 1.400000 ( 2.316304)
|
|
45
|
+
get-multi: libm:ascii:pipeline 0.780000 0.630000 1.410000 ( 2.295434)
|
|
46
|
+
get-multi: libm:ascii:udp 0.730000 0.480000 1.210000 ( 1.629404)
|
|
47
|
+
get-multi: libm:bin 0.770000 0.920000 1.690000 ( 2.840419)
|
|
48
|
+
get-multi: libm:bin:buffer 0.810000 0.980000 1.790000 ( 3.101011)
|
|
49
49
|
|
|
50
|
-
append: dalli:bin 5.
|
|
51
|
-
append: libm:ascii 0.
|
|
52
|
-
append: libm:ascii:
|
|
53
|
-
append: libm:ascii:udp 0.
|
|
54
|
-
append: libm:bin 0.530000 1.030000 1.560000 ( 12.
|
|
55
|
-
append: libm:bin:
|
|
56
|
-
append: mclient:ascii 7.
|
|
50
|
+
append: dalli:bin 5.540000 1.810000 7.350000 ( 9.444572)
|
|
51
|
+
append: libm:ascii 0.600000 1.060000 1.660000 ( 6.192075)
|
|
52
|
+
append: libm:ascii:pipeline 0.190000 0.030000 0.220000 ( 9.282220)
|
|
53
|
+
append: libm:ascii:udp 0.510000 0.590000 1.100000 ( 4.845760)
|
|
54
|
+
append: libm:bin 0.530000 1.030000 1.560000 ( 12.244152)
|
|
55
|
+
append: libm:bin:buffer 0.800000 1.470000 2.270000 ( 20.126558)
|
|
56
|
+
append: mclient:ascii 7.320000 3.380000 10.700000 ( 16.757586)
|
|
57
57
|
|
|
58
|
-
prepend: dalli:bin 7.
|
|
59
|
-
prepend: libm:ascii 0.
|
|
60
|
-
prepend: libm:ascii:
|
|
61
|
-
prepend: libm:ascii:udp 0.
|
|
62
|
-
prepend: libm:bin 1.
|
|
63
|
-
prepend: libm:bin:
|
|
64
|
-
prepend: mclient:ascii
|
|
58
|
+
prepend: dalli:bin 7.060000 1.920000 8.980000 ( 13.621610)
|
|
59
|
+
prepend: libm:ascii 0.870000 1.150000 2.020000 ( 22.071470)
|
|
60
|
+
prepend: libm:ascii:pipeline 0.180000 0.010000 0.190000 ( 0.214543)
|
|
61
|
+
prepend: libm:ascii:udp 0.570000 0.630000 1.200000 ( 15.165584)
|
|
62
|
+
prepend: libm:bin 1.140000 1.030000 2.170000 ( 5.204032)
|
|
63
|
+
prepend: libm:bin:buffer 1.230000 1.310000 2.540000 ( 5.545043)
|
|
64
|
+
prepend: mclient:ascii 6.990000 3.130000 10.120000 ( 11.576000)
|
|
65
65
|
|
|
66
|
-
delete: dalli:bin 5.
|
|
67
|
-
delete: libm:ascii 1.150000 1.
|
|
68
|
-
delete: libm:ascii:
|
|
69
|
-
delete: libm:ascii:udp 1.060000 0.660000 1.720000 ( 3.
|
|
70
|
-
delete: libm:bin 1.080000 1.
|
|
71
|
-
delete: libm:bin:
|
|
72
|
-
delete: mclient:ascii 7.
|
|
66
|
+
delete: dalli:bin 5.270000 1.700000 6.970000 ( 7.506385)
|
|
67
|
+
delete: libm:ascii 1.150000 1.030000 2.180000 ( 4.514493)
|
|
68
|
+
delete: libm:ascii:pipeline 0.290000 0.350000 0.640000 ( 0.718225)
|
|
69
|
+
delete: libm:ascii:udp 1.060000 0.660000 1.720000 ( 3.443370)
|
|
70
|
+
delete: libm:bin 1.080000 1.020000 2.100000 ( 4.410147)
|
|
71
|
+
delete: libm:bin:buffer 0.240000 0.350000 0.590000 ( 1.127925)
|
|
72
|
+
delete: mclient:ascii 7.690000 3.320000 11.010000 ( 11.251595)
|
|
73
73
|
|
|
74
|
-
get-missing: dalli:bin 5.
|
|
75
|
-
get-missing: libm:ascii 1.190000 1.
|
|
76
|
-
get-missing: libm:ascii:
|
|
77
|
-
get-missing: libm:ascii:udp 1.
|
|
78
|
-
get-missing: libm:bin 1.
|
|
79
|
-
get-missing: libm:bin:
|
|
80
|
-
get-missing: mclient:ascii 7.
|
|
81
|
-
get-missing: stash:bin 2.
|
|
74
|
+
get-missing: dalli:bin 5.540000 1.700000 7.240000 ( 7.350109)
|
|
75
|
+
get-missing: libm:ascii 1.190000 1.020000 2.210000 ( 4.435602)
|
|
76
|
+
get-missing: libm:ascii:pipeline 1.280000 1.410000 2.690000 ( 4.689176)
|
|
77
|
+
get-missing: libm:ascii:udp 1.080000 0.650000 1.730000 ( 3.310339)
|
|
78
|
+
get-missing: libm:bin 1.160000 1.030000 2.190000 ( 4.484304)
|
|
79
|
+
get-missing: libm:bin:buffer 1.270000 1.400000 2.670000 ( 4.744352)
|
|
80
|
+
get-missing: mclient:ascii 7.790000 3.330000 11.120000 ( 11.227906)
|
|
81
|
+
get-missing: stash:bin 2.340000 1.310000 3.650000 ( 5.711464)
|
|
82
82
|
|
|
83
|
-
append-missing: dalli:bin 7.
|
|
84
|
-
append-missing: libm:ascii 1.240000 1.
|
|
85
|
-
append-missing: libm:ascii:
|
|
86
|
-
append-missing: libm:ascii:udp 1.
|
|
87
|
-
append-missing: libm:bin 1.140000 1.
|
|
88
|
-
append-missing: libm:bin:
|
|
89
|
-
append-missing: mclient:ascii 7.
|
|
83
|
+
append-missing: dalli:bin 7.750000 1.870000 9.620000 ( 9.838412)
|
|
84
|
+
append-missing: libm:ascii 1.240000 1.050000 2.290000 ( 5.272057)
|
|
85
|
+
append-missing: libm:ascii:pipeline 0.170000 0.010000 0.180000 ( 0.185741)
|
|
86
|
+
append-missing: libm:ascii:udp 1.120000 0.670000 1.790000 ( 3.965537)
|
|
87
|
+
append-missing: libm:bin 1.140000 1.020000 2.160000 ( 4.671309)
|
|
88
|
+
append-missing: libm:bin:buffer 1.240000 1.400000 2.640000 ( 4.976723)
|
|
89
|
+
append-missing: mclient:ascii 7.870000 3.310000 11.180000 ( 11.308514)
|
|
90
90
|
|
|
91
|
-
prepend-missing: dalli:bin 7.
|
|
92
|
-
prepend-missing: libm:ascii 1.240000 1.
|
|
93
|
-
prepend-missing: libm:ascii:
|
|
94
|
-
prepend-missing: libm:ascii:udp 1.
|
|
95
|
-
prepend-missing: libm:bin 1.
|
|
96
|
-
prepend-missing: libm:bin:
|
|
97
|
-
prepend-missing: mclient:ascii 7.
|
|
91
|
+
prepend-missing: dalli:bin 7.740000 1.860000 9.600000 ( 9.746965)
|
|
92
|
+
prepend-missing: libm:ascii 1.240000 1.040000 2.280000 ( 5.285512)
|
|
93
|
+
prepend-missing: libm:ascii:pipeline 0.170000 0.010000 0.180000 ( 0.191364)
|
|
94
|
+
prepend-missing: libm:ascii:udp 1.130000 0.670000 1.800000 ( 3.937638)
|
|
95
|
+
prepend-missing: libm:bin 1.130000 1.020000 2.150000 ( 4.678974)
|
|
96
|
+
prepend-missing: libm:bin:buffer 1.240000 1.420000 2.660000 ( 4.958552)
|
|
97
|
+
prepend-missing: mclient:ascii 7.900000 3.300000 11.200000 ( 11.300894)
|
|
98
98
|
|
|
99
|
-
set-large: dalli:bin
|
|
100
|
-
set-large: libm:ascii 0.
|
|
101
|
-
set-large: libm:ascii:
|
|
102
|
-
set-large: libm:ascii:udp 0.500000 0.
|
|
103
|
-
set-large: libm:bin 0.510000 1.060000 1.570000 ( 4.
|
|
104
|
-
set-large: libm:bin:
|
|
105
|
-
set-large: mclient:ascii 8.170000 3.
|
|
106
|
-
set-large: stash:bin 3.
|
|
99
|
+
set-large: dalli:bin 6.160000 1.600000 7.760000 ( 7.925181)
|
|
100
|
+
set-large: libm:ascii 0.610000 1.140000 1.750000 ( 4.520586)
|
|
101
|
+
set-large: libm:ascii:pipeline 0.330000 0.300000 0.630000 ( 0.795952)
|
|
102
|
+
set-large: libm:ascii:udp 0.500000 0.630000 1.130000 ( 2.941319)
|
|
103
|
+
set-large: libm:bin 0.510000 1.060000 1.570000 ( 4.005443)
|
|
104
|
+
set-large: libm:bin:buffer 0.290000 0.440000 0.730000 ( 1.507181)
|
|
105
|
+
set-large: mclient:ascii 8.170000 3.470000 11.640000 ( 11.992057)
|
|
106
|
+
set-large: stash:bin 3.800000 1.150000 4.950000 ( 7.632398)
|
|
107
107
|
|
|
108
|
-
get-large: dalli:bin
|
|
109
|
-
get-large: libm:ascii 0.
|
|
110
|
-
get-large: libm:ascii:
|
|
111
|
-
get-large: libm:ascii:udp 0.
|
|
112
|
-
get-large: libm:bin 0.
|
|
113
|
-
get-large: libm:bin:
|
|
114
|
-
get-large: mclient:ascii 10.
|
|
115
|
-
get-large: stash:bin 2.
|
|
108
|
+
get-large: dalli:bin 12.590000 1.930000 14.520000 ( 14.909260)
|
|
109
|
+
get-large: libm:ascii 0.950000 1.180000 2.130000 ( 4.416920)
|
|
110
|
+
get-large: libm:ascii:pipeline 1.020000 1.490000 2.510000 ( 5.031823)
|
|
111
|
+
get-large: libm:ascii:udp 0.830000 0.730000 1.560000 ( 2.412008)
|
|
112
|
+
get-large: libm:bin 0.830000 1.230000 2.060000 ( 4.123934)
|
|
113
|
+
get-large: libm:bin:buffer 0.890000 1.420000 2.310000 ( 4.842008)
|
|
114
|
+
get-large: mclient:ascii 10.220000 3.870000 14.090000 ( 14.289412)
|
|
115
|
+
get-large: stash:bin 2.470000 1.330000 3.800000 ( 5.877608)
|
|
116
116
|
|
|
117
|
-
hash:default 0.330000 0.000000 0.330000 ( 0.
|
|
118
|
-
hash:md5 0.740000 0.000000 0.740000 ( 0.
|
|
119
|
-
hash:crc 0.
|
|
120
|
-
hash:fnv1_64 0.800000 0.000000 0.800000 ( 0.
|
|
121
|
-
hash:fnv1a_64 0.
|
|
122
|
-
hash:fnv1_32 0.
|
|
123
|
-
hash:fnv1a_32 0.
|
|
124
|
-
hash:hsieh 0.
|
|
125
|
-
hash:murmur 0.210000 0.000000 0.210000 ( 0.
|
|
126
|
-
hash:jenkins 0.
|
|
127
|
-
hash:none 0.
|
|
117
|
+
hash:default 0.330000 0.000000 0.330000 ( 0.327642)
|
|
118
|
+
hash:md5 0.740000 0.000000 0.740000 ( 0.742601)
|
|
119
|
+
hash:crc 0.410000 0.000000 0.410000 ( 0.409796)
|
|
120
|
+
hash:fnv1_64 0.800000 0.000000 0.800000 ( 0.800292)
|
|
121
|
+
hash:fnv1a_64 0.270000 0.000000 0.270000 ( 0.274037)
|
|
122
|
+
hash:fnv1_32 0.260000 0.000000 0.260000 ( 0.260237)
|
|
123
|
+
hash:fnv1a_32 0.270000 0.010000 0.280000 ( 0.272979)
|
|
124
|
+
hash:hsieh 0.120000 0.000000 0.120000 ( 0.121117)
|
|
125
|
+
hash:murmur 0.210000 0.000000 0.210000 ( 0.203083)
|
|
126
|
+
hash:jenkins 0.240000 0.000000 0.240000 ( 0.245728)
|
|
127
|
+
hash:none 0.120000 0.000000 0.120000 ( 0.121219)
|
data/CHANGELOG
CHANGED
data/ext/extconf.rb
CHANGED
|
@@ -27,7 +27,7 @@ def check_libmemcached
|
|
|
27
27
|
$defines = " -DLIBMEMCACHED_WITH_SASL_SUPPORT"
|
|
28
28
|
$libraries = " -L#{HERE}/lib"
|
|
29
29
|
$CFLAGS = "#{$includes} #{$libraries} #{$CFLAGS}"
|
|
30
|
-
$LDFLAGS = "#{$libraries} #{$LDFLAGS}"
|
|
30
|
+
$LDFLAGS = "-lsasl2 -lm #{$libraries} #{$LDFLAGS}"
|
|
31
31
|
$LIBPATH = ["#{HERE}/lib"]
|
|
32
32
|
$DEFLIBPATH = [] unless SOLARIS_32
|
|
33
33
|
|
data/ext/rlibmemcached_wrap.c
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
3
|
-
* Version
|
|
3
|
+
* Version 2.0.1
|
|
4
4
|
*
|
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
/*
|
|
282
282
|
Flags/methods for returning states.
|
|
283
283
|
|
|
284
|
-
The SWIG conversion methods, as ConvertPtr, return
|
|
284
|
+
The SWIG conversion methods, as ConvertPtr, return an integer
|
|
285
285
|
that tells if the conversion was successful or not. And if not,
|
|
286
286
|
an error code can be returned (see swigerrors.swg for the codes).
|
|
287
287
|
|
|
@@ -831,6 +831,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
831
831
|
|
|
832
832
|
#include <ruby.h>
|
|
833
833
|
|
|
834
|
+
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
|
835
|
+
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
|
836
|
+
* issue for now by disabling this.
|
|
837
|
+
* https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
|
|
838
|
+
*/
|
|
839
|
+
#ifdef rb_intern
|
|
840
|
+
# undef rb_intern
|
|
841
|
+
#endif
|
|
842
|
+
|
|
834
843
|
/* Remove global macros defined in Ruby's win32.h */
|
|
835
844
|
#ifdef write
|
|
836
845
|
# undef write
|
|
@@ -989,7 +998,7 @@ static VALUE _mSWIG = Qnil;
|
|
|
989
998
|
|
|
990
999
|
/* Define custom exceptions for errors that do not map to existing Ruby
|
|
991
1000
|
exceptions. Note this only works for C++ since a global cannot be
|
|
992
|
-
initialized by a
|
|
1001
|
+
initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
|
|
993
1002
|
|
|
994
1003
|
SWIGINTERN VALUE
|
|
995
1004
|
getNullReferenceError(void) {
|
|
@@ -1134,9 +1143,6 @@ void Ruby_Format_OverloadedError(
|
|
|
1134
1143
|
}
|
|
1135
1144
|
|
|
1136
1145
|
/* -----------------------------------------------------------------------------
|
|
1137
|
-
* See the LICENSE file for information on copyright, usage and redistribution
|
|
1138
|
-
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
1139
|
-
*
|
|
1140
1146
|
* rubytracking.swg
|
|
1141
1147
|
*
|
|
1142
1148
|
* This file contains support for tracking mappings from
|
|
@@ -1332,9 +1338,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
|
1332
1338
|
|
|
1333
1339
|
|
|
1334
1340
|
/* -----------------------------------------------------------------------------
|
|
1335
|
-
* See the LICENSE file for information on copyright, usage and redistribution
|
|
1336
|
-
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
1337
|
-
*
|
|
1338
1341
|
* rubyrun.swg
|
|
1339
1342
|
*
|
|
1340
1343
|
* This file contains the runtime support for Ruby modules
|
|
@@ -1378,7 +1381,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
|
1378
1381
|
/* Error manipulation */
|
|
1379
1382
|
|
|
1380
1383
|
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
|
1381
|
-
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
|
|
1384
|
+
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
|
|
1382
1385
|
#define SWIG_fail goto fail
|
|
1383
1386
|
|
|
1384
1387
|
|
|
@@ -1433,7 +1436,7 @@ static ID swig_call_id = 0;
|
|
|
1433
1436
|
++swig_virtual_calls;
|
|
1434
1437
|
# define SWIG_RELEASE_STACK --swig_virtual_calls;
|
|
1435
1438
|
# define Ruby_DirectorTypeMismatchException(x) \
|
|
1436
|
-
rb_raise( rb_eTypeError, x ); return c_result;
|
|
1439
|
+
rb_raise( rb_eTypeError, "%s", x ); return c_result;
|
|
1437
1440
|
|
|
1438
1441
|
static unsigned int swig_virtual_calls = 0;
|
|
1439
1442
|
|
|
@@ -1835,7 +1838,7 @@ static VALUE mRlibmemcached;
|
|
|
1835
1838
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
|
1836
1839
|
|
|
1837
1840
|
|
|
1838
|
-
#define SWIGVERSION
|
|
1841
|
+
#define SWIGVERSION 0x020001
|
|
1839
1842
|
#define SWIG_VERSION SWIGVERSION
|
|
1840
1843
|
|
|
1841
1844
|
|
|
@@ -1939,7 +1942,7 @@ SWIG_ruby_failed(void)
|
|
|
1939
1942
|
}
|
|
1940
1943
|
|
|
1941
1944
|
|
|
1942
|
-
/*@SWIG:/opt/local/share/swig/
|
|
1945
|
+
/*@SWIG:/opt/local/share/swig/2.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
1943
1946
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
|
1944
1947
|
{
|
|
1945
1948
|
VALUE obj = args[0];
|
|
@@ -2033,7 +2036,7 @@ SWIG_AsCharArray(VALUE obj, char *val, size_t size)
|
|
|
2033
2036
|
}
|
|
2034
2037
|
|
|
2035
2038
|
|
|
2036
|
-
/*@SWIG:/opt/local/share/swig/
|
|
2039
|
+
/*@SWIG:/opt/local/share/swig/2.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2037
2040
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
2038
2041
|
{
|
|
2039
2042
|
VALUE obj = args[0];
|
|
@@ -2092,7 +2095,7 @@ SWIG_From_unsigned_SS_short (unsigned short value)
|
|
|
2092
2095
|
}
|
|
2093
2096
|
|
|
2094
2097
|
|
|
2095
|
-
/*@SWIG:/opt/local/share/swig/
|
|
2098
|
+
/*@SWIG:/opt/local/share/swig/2.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2096
2099
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
|
2097
2100
|
{
|
|
2098
2101
|
VALUE obj = args[0];
|
|
@@ -2214,7 +2217,7 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
|
2214
2217
|
}
|
|
2215
2218
|
|
|
2216
2219
|
|
|
2217
|
-
/*@SWIG:/opt/local/share/swig/
|
|
2220
|
+
/*@SWIG:/opt/local/share/swig/2.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2218
2221
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
|
2219
2222
|
{
|
|
2220
2223
|
VALUE obj = args[0];
|
|
@@ -2287,7 +2290,7 @@ VALUE memcached_fetch_rvalue(memcached_st *ptr, char *key, size_t *key_length, u
|
|
|
2287
2290
|
char *value = memcached_fetch(ptr, key, key_length, &value_length, flags, error);
|
|
2288
2291
|
VALUE ret = rb_str_new(value, value_length);
|
|
2289
2292
|
rb_ary_push(result, ret);
|
|
2290
|
-
free(value);
|
|
2293
|
+
free(value);
|
|
2291
2294
|
return result;
|
|
2292
2295
|
};
|
|
2293
2296
|
|
data/lib/memcached/exceptions.rb
CHANGED
|
@@ -67,7 +67,7 @@ Subclasses correspond one-to-one with server response strings or libmemcached er
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
ERRNO_HASH = Hash[*Errno.constants.map{ |c| [Errno.const_get(c)::Errno, Errno.const_get(c).new.message] }.flatten]
|
|
70
|
+
ERRNO_HASH = Hash[*Errno.constants.grep(/^E/).map{ |c| [Errno.const_get(c)::Errno, Errno.const_get(c).new.message] }.flatten]
|
|
71
71
|
|
|
72
72
|
EXCEPTIONS = []
|
|
73
73
|
EMPTY_STRUCT = Rlibmemcached::MemcachedSt.new
|
data/memcached.gemspec
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{memcached}
|
|
5
|
-
s.version = "1"
|
|
5
|
+
s.version = "1.0.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/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
|
|
10
|
-
s.date = %q{2010-
|
|
10
|
+
s.date = %q{2010-10-27}
|
|
11
11
|
s.description = %q{An interface to the libmemcached C client.}
|
|
12
12
|
s.email = %q{}
|
|
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"]
|
|
18
18
|
s.require_paths = ["lib", "ext"]
|
|
19
19
|
s.rubyforge_project = %q{fauna}
|
|
20
|
-
s.rubygems_version = %q{1.3.
|
|
20
|
+
s.rubygems_version = %q{1.3.7}
|
|
21
21
|
s.signing_key = %q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-private_key.pem}
|
|
22
22
|
s.summary = %q{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"]
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
|
26
26
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
27
27
|
s.specification_version = 3
|
|
28
28
|
|
|
29
|
-
if Gem::Version.new(Gem::
|
|
29
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
30
30
|
else
|
|
31
31
|
end
|
|
32
32
|
else
|
metadata
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: memcached
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 21
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 1
|
|
7
|
-
|
|
8
|
+
- 0
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.0.1
|
|
8
11
|
platform: ruby
|
|
9
12
|
authors:
|
|
10
13
|
- Evan Weaver
|
|
@@ -33,7 +36,7 @@ cert_chain:
|
|
|
33
36
|
yZ0=
|
|
34
37
|
-----END CERTIFICATE-----
|
|
35
38
|
|
|
36
|
-
date: 2010-
|
|
39
|
+
date: 2010-10-27 00:00:00 -07:00
|
|
37
40
|
default_executable:
|
|
38
41
|
dependencies: []
|
|
39
42
|
|
|
@@ -108,16 +111,20 @@ require_paths:
|
|
|
108
111
|
- lib
|
|
109
112
|
- ext
|
|
110
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
|
+
none: false
|
|
111
115
|
requirements:
|
|
112
116
|
- - ">="
|
|
113
117
|
- !ruby/object:Gem::Version
|
|
118
|
+
hash: 3
|
|
114
119
|
segments:
|
|
115
120
|
- 0
|
|
116
121
|
version: "0"
|
|
117
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
|
+
none: false
|
|
118
124
|
requirements:
|
|
119
125
|
- - ">="
|
|
120
126
|
- !ruby/object:Gem::Version
|
|
127
|
+
hash: 11
|
|
121
128
|
segments:
|
|
122
129
|
- 1
|
|
123
130
|
- 2
|
|
@@ -125,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
132
|
requirements: []
|
|
126
133
|
|
|
127
134
|
rubyforge_project: fauna
|
|
128
|
-
rubygems_version: 1.3.
|
|
135
|
+
rubygems_version: 1.3.7
|
|
129
136
|
signing_key:
|
|
130
137
|
specification_version: 3
|
|
131
138
|
summary: An interface to the libmemcached C client.
|
metadata.gz.sig
CHANGED
|
Binary file
|