memcached 0.17 → 0.17.1

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.17.1. Ruby 1.9 compatibility.
3
+
2
4
  v0.17. Update to libmemcached 0.32. Update Darwin version string for Snow Leopard final. Improve benchmarks. Add Memcached::Rails#append and #prepend, alias all original Memcached methods to _orig, and add set_servers= accessor for compatibility.
3
5
 
4
6
  v0.16.3. Optimize append/prepend on miss.
data/README CHANGED
@@ -22,7 +22,7 @@ The <b>memcached</b> library wraps the pure-C libmemcached client via SWIG.
22
22
 
23
23
  == Installation
24
24
 
25
- You need Ruby 1.8.6. Other versions are not guaranteed to work. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
25
+ You need Ruby 1.8.7 or Ruby 1.9.1. Other versions may work, but are not guaranteed. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
26
26
 
27
27
  Install the gem:
28
28
  sudo gem install memcached --no-rdoc --no-ri
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 1.3.36
3
+ * Version 1.3.40
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
@@ -9,6 +9,7 @@
9
9
  * ----------------------------------------------------------------------------- */
10
10
 
11
11
  #define SWIGRUBY
12
+
12
13
  /* -----------------------------------------------------------------------------
13
14
  * This section contains generic SWIG labels for method/variable
14
15
  * declarations/attributes, and other compiler dependent labels.
@@ -230,7 +231,7 @@
230
231
  /* -----------------------------------------------------------------------------
231
232
  * swigrun.swg
232
233
  *
233
- * This file contains generic CAPI SWIG runtime support for pointer
234
+ * This file contains generic C API SWIG runtime support for pointer
234
235
  * type checking.
235
236
  * ----------------------------------------------------------------------------- */
236
237
 
@@ -249,11 +250,11 @@
249
250
 
250
251
  /*
251
252
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
252
- creating a static or dynamic library from the swig runtime code.
253
- In 99.9% of the cases, swig just needs to declare them as 'static'.
253
+ creating a static or dynamic library from the SWIG runtime code.
254
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
254
255
 
255
- But only do this if is strictly necessary, ie, if you have problems
256
- with your compiler or so.
256
+ But only do this if strictly necessary, ie, if you have problems
257
+ with your compiler or suchlike.
257
258
  */
258
259
 
259
260
  #ifndef SWIGRUNTIME
@@ -280,14 +281,14 @@
280
281
  /*
281
282
  Flags/methods for returning states.
282
283
 
283
- The swig conversion methods, as ConvertPtr, return and integer
284
+ The SWIG conversion methods, as ConvertPtr, return and integer
284
285
  that tells if the conversion was successful or not. And if not,
285
286
  an error code can be returned (see swigerrors.swg for the codes).
286
287
 
287
288
  Use the following macros/flags to set or process the returning
288
289
  states.
289
290
 
290
- In old swig versions, you usually write code as:
291
+ In old versions of SWIG, code such as the following was usually written:
291
292
 
292
293
  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
293
294
  // success code
@@ -295,7 +296,7 @@
295
296
  //fail code
296
297
  }
297
298
 
298
- Now you can be more explicit as:
299
+ Now you can be more explicit:
299
300
 
300
301
  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
301
302
  if (SWIG_IsOK(res)) {
@@ -304,7 +305,7 @@
304
305
  // fail code
305
306
  }
306
307
 
307
- that seems to be the same, but now you can also do
308
+ which is the same really, but now you can also do
308
309
 
309
310
  Type *ptr;
310
311
  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
@@ -322,7 +323,7 @@
322
323
 
323
324
  I.e., now SWIG_ConvertPtr can return new objects and you can
324
325
  identify the case and take care of the deallocation. Of course that
325
- requires also to SWIG_ConvertPtr to return new result values, as
326
+ also requires SWIG_ConvertPtr to return new result values, such as
326
327
 
327
328
  int SWIG_ConvertPtr(obj, ptr,...) {
328
329
  if (<obj is ok>) {
@@ -340,7 +341,7 @@
340
341
 
341
342
  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
342
343
  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
343
- swig errors code.
344
+ SWIG errors code.
344
345
 
345
346
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
346
347
  allows to return the 'cast rank', for example, if you have this
@@ -354,9 +355,8 @@
354
355
  fooi(1) // cast rank '0'
355
356
 
356
357
  just use the SWIG_AddCast()/SWIG_CheckState()
358
+ */
357
359
 
358
-
359
- */
360
360
  #define SWIG_OK (0)
361
361
  #define SWIG_ERROR (-1)
362
362
  #define SWIG_IsOK(r) (r >= 0)
@@ -381,7 +381,6 @@
381
381
  #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
382
382
  #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
383
383
 
384
-
385
384
  /* Cast-Rank Mode */
386
385
  #if defined(SWIG_CASTRANK_MODE)
387
386
  # ifndef SWIG_TypeRank
@@ -404,8 +403,6 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
404
403
  #endif
405
404
 
406
405
 
407
-
408
-
409
406
  #include <string.h>
410
407
 
411
408
  #ifdef __cplusplus
@@ -502,40 +499,58 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
502
499
  }
503
500
 
504
501
 
505
- /* think of this as a c++ template<> or a scheme macro */
506
- #define SWIG_TypeCheck_Template(comparison, ty) \
507
- if (ty) { \
508
- swig_cast_info *iter = ty->cast; \
509
- while (iter) { \
510
- if (comparison) { \
511
- if (iter == ty->cast) return iter; \
512
- /* Move iter to the top of the linked list */ \
513
- iter->prev->next = iter->next; \
514
- if (iter->next) \
515
- iter->next->prev = iter->prev; \
516
- iter->next = ty->cast; \
517
- iter->prev = 0; \
518
- if (ty->cast) ty->cast->prev = iter; \
519
- ty->cast = iter; \
520
- return iter; \
521
- } \
522
- iter = iter->next; \
523
- } \
524
- } \
525
- return 0
526
-
527
502
  /*
528
503
  Check the typename
529
504
  */
530
505
  SWIGRUNTIME swig_cast_info *
531
506
  SWIG_TypeCheck(const char *c, swig_type_info *ty) {
532
- SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
507
+ if (ty) {
508
+ swig_cast_info *iter = ty->cast;
509
+ while (iter) {
510
+ if (strcmp(iter->type->name, c) == 0) {
511
+ if (iter == ty->cast)
512
+ return iter;
513
+ /* Move iter to the top of the linked list */
514
+ iter->prev->next = iter->next;
515
+ if (iter->next)
516
+ iter->next->prev = iter->prev;
517
+ iter->next = ty->cast;
518
+ iter->prev = 0;
519
+ if (ty->cast) ty->cast->prev = iter;
520
+ ty->cast = iter;
521
+ return iter;
522
+ }
523
+ iter = iter->next;
524
+ }
525
+ }
526
+ return 0;
533
527
  }
534
528
 
535
- /* Same as previous function, except strcmp is replaced with a pointer comparison */
529
+ /*
530
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
531
+ */
536
532
  SWIGRUNTIME swig_cast_info *
537
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
538
- SWIG_TypeCheck_Template(iter->type == from, into);
533
+ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
534
+ if (ty) {
535
+ swig_cast_info *iter = ty->cast;
536
+ while (iter) {
537
+ if (iter->type == from) {
538
+ if (iter == ty->cast)
539
+ return iter;
540
+ /* Move iter to the top of the linked list */
541
+ iter->prev->next = iter->next;
542
+ if (iter->next)
543
+ iter->next->prev = iter->prev;
544
+ iter->next = ty->cast;
545
+ iter->prev = 0;
546
+ if (ty->cast) ty->cast->prev = iter;
547
+ ty->cast = iter;
548
+ return iter;
549
+ }
550
+ iter = iter->next;
551
+ }
552
+ }
553
+ return 0;
539
554
  }
540
555
 
541
556
  /*
@@ -823,6 +838,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
823
838
  #ifdef read
824
839
  # undef read
825
840
  #endif
841
+ #ifdef bind
842
+ # undef bind
843
+ #endif
844
+ #ifdef close
845
+ # undef close
846
+ #endif
847
+ #ifdef connect
848
+ # undef connect
849
+ #endif
826
850
 
827
851
 
828
852
  /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
@@ -1811,7 +1835,7 @@ static VALUE mRlibmemcached;
1811
1835
  #define SWIG_RUBY_THREAD_END_BLOCK
1812
1836
 
1813
1837
 
1814
- #define SWIGVERSION 0x010336
1838
+ #define SWIGVERSION 0x010340
1815
1839
  #define SWIG_VERSION SWIGVERSION
1816
1840
 
1817
1841
 
@@ -1826,7 +1850,14 @@ static VALUE mRlibmemcached;
1826
1850
  #ifdef __cplusplus
1827
1851
  extern "C" {
1828
1852
  #endif
1853
+
1854
+ // Ruby 1.9 changed the file name of this header
1855
+ #ifdef HAVE_RUBY_IO_H
1856
+ #include "ruby/io.h"
1857
+ #else
1829
1858
  #include "rubyio.h"
1859
+ #endif
1860
+
1830
1861
  #ifdef __cplusplus
1831
1862
  }
1832
1863
  #endif
@@ -1908,13 +1939,13 @@ SWIG_ruby_failed(void)
1908
1939
  }
1909
1940
 
1910
1941
 
1911
- /*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
1942
+ /*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
1912
1943
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
1913
1944
  {
1914
1945
  VALUE obj = args[0];
1915
1946
  VALUE type = TYPE(obj);
1916
1947
  double *res = (double *)(args[1]);
1917
- *res = (type == T_FLOAT ? NUM2DBL(obj) : (type == T_FIXNUM ? (double) FIX2INT(obj) : rb_big2dbl(obj)));
1948
+ *res = NUM2DBL(obj);
1918
1949
  return obj;
1919
1950
  }
1920
1951
  /*@SWIG@*/
@@ -2002,7 +2033,7 @@ SWIG_AsCharArray(VALUE obj, char *val, size_t size)
2002
2033
  }
2003
2034
 
2004
2035
 
2005
- /*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2036
+ /*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2006
2037
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2007
2038
  {
2008
2039
  VALUE obj = args[0];
@@ -2061,7 +2092,7 @@ SWIG_From_unsigned_SS_short (unsigned short value)
2061
2092
  }
2062
2093
 
2063
2094
 
2064
- /*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2095
+ /*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2065
2096
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2066
2097
  {
2067
2098
  VALUE obj = args[0];
@@ -2183,7 +2214,7 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
2183
2214
  }
2184
2215
 
2185
2216
 
2186
- /*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2217
+ /*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
2187
2218
  SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
2188
2219
  {
2189
2220
  VALUE obj = args[0];
@@ -2269,7 +2300,7 @@ VALUE memcached_generate_hash_rvalue(const char *key, size_t key_length,memcache
2269
2300
  return UINT2NUM(memcached_generate_hash_value(key, key_length, hash_algorithm));
2270
2301
  };
2271
2302
 
2272
- swig_class cMemcachedAnalysisSt;
2303
+ swig_class SwigClassMemcachedAnalysisSt;
2273
2304
 
2274
2305
  SWIGINTERN VALUE
2275
2306
  _wrap_MemcachedAnalysisSt_average_item_size_set(int argc, VALUE *argv, VALUE self) {
@@ -2788,7 +2819,7 @@ free_memcached_analysis_st(struct memcached_analysis_st *arg1) {
2788
2819
  free((char *) arg1);
2789
2820
  }
2790
2821
 
2791
- swig_class cMemcachedStatSt;
2822
+ swig_class SwigClassMemcachedStatSt;
2792
2823
 
2793
2824
  SWIGINTERN VALUE
2794
2825
  _wrap_MemcachedStatSt_connection_structures_set(int argc, VALUE *argv, VALUE self) {
@@ -4290,7 +4321,7 @@ free_memcached_stat_st(struct memcached_stat_st *arg1) {
4290
4321
  free((char *) arg1);
4291
4322
  }
4292
4323
 
4293
- swig_class cMemcachedSt;
4324
+ swig_class SwigClassMemcachedSt;
4294
4325
 
4295
4326
  SWIGINTERN VALUE
4296
4327
  _wrap_MemcachedSt_purging_set(int argc, VALUE *argv, VALUE self) {
@@ -6486,6 +6517,181 @@ fail:
6486
6517
  }
6487
6518
 
6488
6519
 
6520
+ SWIGINTERN VALUE
6521
+ _wrap_MemcachedSt_number_of_live_hosts_set(int argc, VALUE *argv, VALUE self) {
6522
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6523
+ uint32_t arg2 ;
6524
+ void *argp1 = 0 ;
6525
+ int res1 = 0 ;
6526
+ void *argp2 ;
6527
+ int res2 = 0 ;
6528
+
6529
+ if ((argc < 1) || (argc > 1)) {
6530
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6531
+ }
6532
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6533
+ if (!SWIG_IsOK(res1)) {
6534
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self ));
6535
+ }
6536
+ arg1 = (struct memcached_st *)(argp1);
6537
+ {
6538
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
6539
+ if (!SWIG_IsOK(res2)) {
6540
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_live_hosts", 2, argv[0] ));
6541
+ }
6542
+ if (!argp2) {
6543
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_live_hosts", 2, argv[0]));
6544
+ } else {
6545
+ arg2 = *((uint32_t *)(argp2));
6546
+ }
6547
+ }
6548
+ if (arg1) (arg1)->number_of_live_hosts = arg2;
6549
+ return Qnil;
6550
+ fail:
6551
+ return Qnil;
6552
+ }
6553
+
6554
+
6555
+ SWIGINTERN VALUE
6556
+ _wrap_MemcachedSt_number_of_live_hosts_get(int argc, VALUE *argv, VALUE self) {
6557
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6558
+ void *argp1 = 0 ;
6559
+ int res1 = 0 ;
6560
+ uint32_t result;
6561
+ VALUE vresult = Qnil;
6562
+
6563
+ if ((argc < 0) || (argc > 0)) {
6564
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6565
+ }
6566
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6567
+ if (!SWIG_IsOK(res1)) {
6568
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self ));
6569
+ }
6570
+ arg1 = (struct memcached_st *)(argp1);
6571
+ result = ((arg1)->number_of_live_hosts);
6572
+ {
6573
+ vresult = UINT2NUM(result);
6574
+ }
6575
+ return vresult;
6576
+ fail:
6577
+ return Qnil;
6578
+ }
6579
+
6580
+
6581
+ SWIGINTERN VALUE
6582
+ _wrap_MemcachedSt_live_host_indices_set(int argc, VALUE *argv, VALUE self) {
6583
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6584
+ uint32_t *arg2 = (uint32_t *) 0 ;
6585
+ void *argp1 = 0 ;
6586
+ int res1 = 0 ;
6587
+ void *argp2 = 0 ;
6588
+ int res2 = 0 ;
6589
+
6590
+ if ((argc < 1) || (argc > 1)) {
6591
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6592
+ }
6593
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6594
+ if (!SWIG_IsOK(res1)) {
6595
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self ));
6596
+ }
6597
+ arg1 = (struct memcached_st *)(argp1);
6598
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN | 0 );
6599
+ if (!SWIG_IsOK(res2)) {
6600
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t *","live_host_indices", 2, argv[0] ));
6601
+ }
6602
+ arg2 = (uint32_t *)(argp2);
6603
+ if (arg1) (arg1)->live_host_indices = arg2;
6604
+ return Qnil;
6605
+ fail:
6606
+ return Qnil;
6607
+ }
6608
+
6609
+
6610
+ SWIGINTERN VALUE
6611
+ _wrap_MemcachedSt_live_host_indices_get(int argc, VALUE *argv, VALUE self) {
6612
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6613
+ void *argp1 = 0 ;
6614
+ int res1 = 0 ;
6615
+ uint32_t *result = 0 ;
6616
+ VALUE vresult = Qnil;
6617
+
6618
+ if ((argc < 0) || (argc > 0)) {
6619
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6620
+ }
6621
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6622
+ if (!SWIG_IsOK(res1)) {
6623
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self ));
6624
+ }
6625
+ arg1 = (struct memcached_st *)(argp1);
6626
+ result = (uint32_t *) ((arg1)->live_host_indices);
6627
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 | 0 );
6628
+ return vresult;
6629
+ fail:
6630
+ return Qnil;
6631
+ }
6632
+
6633
+
6634
+ SWIGINTERN VALUE
6635
+ _wrap_MemcachedSt_live_host_indices_size_set(int argc, VALUE *argv, VALUE self) {
6636
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6637
+ uint32_t arg2 ;
6638
+ void *argp1 = 0 ;
6639
+ int res1 = 0 ;
6640
+ void *argp2 ;
6641
+ int res2 = 0 ;
6642
+
6643
+ if ((argc < 1) || (argc > 1)) {
6644
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6645
+ }
6646
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6647
+ if (!SWIG_IsOK(res1)) {
6648
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self ));
6649
+ }
6650
+ arg1 = (struct memcached_st *)(argp1);
6651
+ {
6652
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
6653
+ if (!SWIG_IsOK(res2)) {
6654
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","live_host_indices_size", 2, argv[0] ));
6655
+ }
6656
+ if (!argp2) {
6657
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","live_host_indices_size", 2, argv[0]));
6658
+ } else {
6659
+ arg2 = *((uint32_t *)(argp2));
6660
+ }
6661
+ }
6662
+ if (arg1) (arg1)->live_host_indices_size = arg2;
6663
+ return Qnil;
6664
+ fail:
6665
+ return Qnil;
6666
+ }
6667
+
6668
+
6669
+ SWIGINTERN VALUE
6670
+ _wrap_MemcachedSt_live_host_indices_size_get(int argc, VALUE *argv, VALUE self) {
6671
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
6672
+ void *argp1 = 0 ;
6673
+ int res1 = 0 ;
6674
+ uint32_t result;
6675
+ VALUE vresult = Qnil;
6676
+
6677
+ if ((argc < 0) || (argc > 0)) {
6678
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6679
+ }
6680
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6681
+ if (!SWIG_IsOK(res1)) {
6682
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self ));
6683
+ }
6684
+ arg1 = (struct memcached_st *)(argp1);
6685
+ result = ((arg1)->live_host_indices_size);
6686
+ {
6687
+ vresult = UINT2NUM(result);
6688
+ }
6689
+ return vresult;
6690
+ fail:
6691
+ return Qnil;
6692
+ }
6693
+
6694
+
6489
6695
  #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6490
6696
  SWIGINTERN VALUE
6491
6697
  _wrap_MemcachedSt_allocate(VALUE self) {
@@ -9302,7 +9508,7 @@ fail:
9302
9508
  }
9303
9509
 
9304
9510
 
9305
- swig_class cMemcachedResultSt;
9511
+ swig_class SwigClassMemcachedResultSt;
9306
9512
 
9307
9513
  SWIGINTERN VALUE
9308
9514
  _wrap_MemcachedResultSt_flags_set(int argc, VALUE *argv, VALUE self) {
@@ -9944,7 +10150,7 @@ fail:
9944
10150
  }
9945
10151
 
9946
10152
 
9947
- swig_class cMemcachedServerSt;
10153
+ swig_class SwigClassMemcachedServerSt;
9948
10154
 
9949
10155
  SWIGINTERN VALUE
9950
10156
  _wrap_MemcachedServerSt_is_allocated_set(int argc, VALUE *argv, VALUE self) {
@@ -12434,169 +12640,175 @@ SWIGEXPORT void Init_rlibmemcached(void) {
12434
12640
  rb_define_const(mRlibmemcached, "MEMCACHED_VERSION_STRING_LENGTH", SWIG_From_int((int)(24)));
12435
12641
  rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.32"));
12436
12642
 
12437
- cMemcachedAnalysisSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedAnalysisSt", rb_cObject);
12438
- SWIG_TypeClientData(SWIGTYPE_p_memcached_analysis_st, (void *) &cMemcachedAnalysisSt);
12439
- rb_define_alloc_func(cMemcachedAnalysisSt.klass, _wrap_MemcachedAnalysisSt_allocate);
12440
- rb_define_method(cMemcachedAnalysisSt.klass, "initialize", _wrap_new_MemcachedAnalysisSt, -1);
12441
- rb_define_method(cMemcachedAnalysisSt.klass, "average_item_size=", _wrap_MemcachedAnalysisSt_average_item_size_set, -1);
12442
- rb_define_method(cMemcachedAnalysisSt.klass, "average_item_size", _wrap_MemcachedAnalysisSt_average_item_size_get, -1);
12443
- rb_define_method(cMemcachedAnalysisSt.klass, "longest_uptime=", _wrap_MemcachedAnalysisSt_longest_uptime_set, -1);
12444
- rb_define_method(cMemcachedAnalysisSt.klass, "longest_uptime", _wrap_MemcachedAnalysisSt_longest_uptime_get, -1);
12445
- rb_define_method(cMemcachedAnalysisSt.klass, "least_free_server=", _wrap_MemcachedAnalysisSt_least_free_server_set, -1);
12446
- rb_define_method(cMemcachedAnalysisSt.klass, "least_free_server", _wrap_MemcachedAnalysisSt_least_free_server_get, -1);
12447
- rb_define_method(cMemcachedAnalysisSt.klass, "most_consumed_server=", _wrap_MemcachedAnalysisSt_most_consumed_server_set, -1);
12448
- rb_define_method(cMemcachedAnalysisSt.klass, "most_consumed_server", _wrap_MemcachedAnalysisSt_most_consumed_server_get, -1);
12449
- rb_define_method(cMemcachedAnalysisSt.klass, "oldest_server=", _wrap_MemcachedAnalysisSt_oldest_server_set, -1);
12450
- rb_define_method(cMemcachedAnalysisSt.klass, "oldest_server", _wrap_MemcachedAnalysisSt_oldest_server_get, -1);
12451
- rb_define_method(cMemcachedAnalysisSt.klass, "pool_hit_ratio=", _wrap_MemcachedAnalysisSt_pool_hit_ratio_set, -1);
12452
- rb_define_method(cMemcachedAnalysisSt.klass, "pool_hit_ratio", _wrap_MemcachedAnalysisSt_pool_hit_ratio_get, -1);
12453
- rb_define_method(cMemcachedAnalysisSt.klass, "most_used_bytes=", _wrap_MemcachedAnalysisSt_most_used_bytes_set, -1);
12454
- rb_define_method(cMemcachedAnalysisSt.klass, "most_used_bytes", _wrap_MemcachedAnalysisSt_most_used_bytes_get, -1);
12455
- rb_define_method(cMemcachedAnalysisSt.klass, "least_remaining_bytes=", _wrap_MemcachedAnalysisSt_least_remaining_bytes_set, -1);
12456
- rb_define_method(cMemcachedAnalysisSt.klass, "least_remaining_bytes", _wrap_MemcachedAnalysisSt_least_remaining_bytes_get, -1);
12457
- cMemcachedAnalysisSt.mark = 0;
12458
- cMemcachedAnalysisSt.destroy = (void (*)(void *)) free_memcached_analysis_st;
12459
- cMemcachedAnalysisSt.trackObjects = 0;
12460
-
12461
- cMemcachedStatSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedStatSt", rb_cObject);
12462
- SWIG_TypeClientData(SWIGTYPE_p_memcached_stat_st, (void *) &cMemcachedStatSt);
12463
- rb_define_alloc_func(cMemcachedStatSt.klass, _wrap_MemcachedStatSt_allocate);
12464
- rb_define_method(cMemcachedStatSt.klass, "initialize", _wrap_new_MemcachedStatSt, -1);
12465
- rb_define_method(cMemcachedStatSt.klass, "connection_structures=", _wrap_MemcachedStatSt_connection_structures_set, -1);
12466
- rb_define_method(cMemcachedStatSt.klass, "connection_structures", _wrap_MemcachedStatSt_connection_structures_get, -1);
12467
- rb_define_method(cMemcachedStatSt.klass, "curr_connections=", _wrap_MemcachedStatSt_curr_connections_set, -1);
12468
- rb_define_method(cMemcachedStatSt.klass, "curr_connections", _wrap_MemcachedStatSt_curr_connections_get, -1);
12469
- rb_define_method(cMemcachedStatSt.klass, "curr_items=", _wrap_MemcachedStatSt_curr_items_set, -1);
12470
- rb_define_method(cMemcachedStatSt.klass, "curr_items", _wrap_MemcachedStatSt_curr_items_get, -1);
12471
- rb_define_method(cMemcachedStatSt.klass, "pid=", _wrap_MemcachedStatSt_pid_set, -1);
12472
- rb_define_method(cMemcachedStatSt.klass, "pid", _wrap_MemcachedStatSt_pid_get, -1);
12473
- rb_define_method(cMemcachedStatSt.klass, "pointer_size=", _wrap_MemcachedStatSt_pointer_size_set, -1);
12474
- rb_define_method(cMemcachedStatSt.klass, "pointer_size", _wrap_MemcachedStatSt_pointer_size_get, -1);
12475
- rb_define_method(cMemcachedStatSt.klass, "rusage_system_microseconds=", _wrap_MemcachedStatSt_rusage_system_microseconds_set, -1);
12476
- rb_define_method(cMemcachedStatSt.klass, "rusage_system_microseconds", _wrap_MemcachedStatSt_rusage_system_microseconds_get, -1);
12477
- rb_define_method(cMemcachedStatSt.klass, "rusage_system_seconds=", _wrap_MemcachedStatSt_rusage_system_seconds_set, -1);
12478
- rb_define_method(cMemcachedStatSt.klass, "rusage_system_seconds", _wrap_MemcachedStatSt_rusage_system_seconds_get, -1);
12479
- rb_define_method(cMemcachedStatSt.klass, "rusage_user_microseconds=", _wrap_MemcachedStatSt_rusage_user_microseconds_set, -1);
12480
- rb_define_method(cMemcachedStatSt.klass, "rusage_user_microseconds", _wrap_MemcachedStatSt_rusage_user_microseconds_get, -1);
12481
- rb_define_method(cMemcachedStatSt.klass, "rusage_user_seconds=", _wrap_MemcachedStatSt_rusage_user_seconds_set, -1);
12482
- rb_define_method(cMemcachedStatSt.klass, "rusage_user_seconds", _wrap_MemcachedStatSt_rusage_user_seconds_get, -1);
12483
- rb_define_method(cMemcachedStatSt.klass, "threads=", _wrap_MemcachedStatSt_threads_set, -1);
12484
- rb_define_method(cMemcachedStatSt.klass, "threads", _wrap_MemcachedStatSt_threads_get, -1);
12485
- rb_define_method(cMemcachedStatSt.klass, "time=", _wrap_MemcachedStatSt_time_set, -1);
12486
- rb_define_method(cMemcachedStatSt.klass, "time", _wrap_MemcachedStatSt_time_get, -1);
12487
- rb_define_method(cMemcachedStatSt.klass, "total_connections=", _wrap_MemcachedStatSt_total_connections_set, -1);
12488
- rb_define_method(cMemcachedStatSt.klass, "total_connections", _wrap_MemcachedStatSt_total_connections_get, -1);
12489
- rb_define_method(cMemcachedStatSt.klass, "total_items=", _wrap_MemcachedStatSt_total_items_set, -1);
12490
- rb_define_method(cMemcachedStatSt.klass, "total_items", _wrap_MemcachedStatSt_total_items_get, -1);
12491
- rb_define_method(cMemcachedStatSt.klass, "uptime=", _wrap_MemcachedStatSt_uptime_set, -1);
12492
- rb_define_method(cMemcachedStatSt.klass, "uptime", _wrap_MemcachedStatSt_uptime_get, -1);
12493
- rb_define_method(cMemcachedStatSt.klass, "bytes=", _wrap_MemcachedStatSt_bytes_set, -1);
12494
- rb_define_method(cMemcachedStatSt.klass, "bytes", _wrap_MemcachedStatSt_bytes_get, -1);
12495
- rb_define_method(cMemcachedStatSt.klass, "bytes_read=", _wrap_MemcachedStatSt_bytes_read_set, -1);
12496
- rb_define_method(cMemcachedStatSt.klass, "bytes_read", _wrap_MemcachedStatSt_bytes_read_get, -1);
12497
- rb_define_method(cMemcachedStatSt.klass, "bytes_written=", _wrap_MemcachedStatSt_bytes_written_set, -1);
12498
- rb_define_method(cMemcachedStatSt.klass, "bytes_written", _wrap_MemcachedStatSt_bytes_written_get, -1);
12499
- rb_define_method(cMemcachedStatSt.klass, "cmd_get=", _wrap_MemcachedStatSt_cmd_get_set, -1);
12500
- rb_define_method(cMemcachedStatSt.klass, "cmd_get", _wrap_MemcachedStatSt_cmd_get_get, -1);
12501
- rb_define_method(cMemcachedStatSt.klass, "cmd_set=", _wrap_MemcachedStatSt_cmd_set_set, -1);
12502
- rb_define_method(cMemcachedStatSt.klass, "cmd_set", _wrap_MemcachedStatSt_cmd_set_get, -1);
12503
- rb_define_method(cMemcachedStatSt.klass, "evictions=", _wrap_MemcachedStatSt_evictions_set, -1);
12504
- rb_define_method(cMemcachedStatSt.klass, "evictions", _wrap_MemcachedStatSt_evictions_get, -1);
12505
- rb_define_method(cMemcachedStatSt.klass, "get_hits=", _wrap_MemcachedStatSt_get_hits_set, -1);
12506
- rb_define_method(cMemcachedStatSt.klass, "get_hits", _wrap_MemcachedStatSt_get_hits_get, -1);
12507
- rb_define_method(cMemcachedStatSt.klass, "get_misses=", _wrap_MemcachedStatSt_get_misses_set, -1);
12508
- rb_define_method(cMemcachedStatSt.klass, "get_misses", _wrap_MemcachedStatSt_get_misses_get, -1);
12509
- rb_define_method(cMemcachedStatSt.klass, "limit_maxbytes=", _wrap_MemcachedStatSt_limit_maxbytes_set, -1);
12510
- rb_define_method(cMemcachedStatSt.klass, "limit_maxbytes", _wrap_MemcachedStatSt_limit_maxbytes_get, -1);
12511
- rb_define_method(cMemcachedStatSt.klass, "version=", _wrap_MemcachedStatSt_version_set, -1);
12512
- rb_define_method(cMemcachedStatSt.klass, "version", _wrap_MemcachedStatSt_version_get, -1);
12513
- cMemcachedStatSt.mark = 0;
12514
- cMemcachedStatSt.destroy = (void (*)(void *)) free_memcached_stat_st;
12515
- cMemcachedStatSt.trackObjects = 0;
12516
-
12517
- cMemcachedSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedSt", rb_cObject);
12518
- SWIG_TypeClientData(SWIGTYPE_p_memcached_st, (void *) &cMemcachedSt);
12519
- rb_define_alloc_func(cMemcachedSt.klass, _wrap_MemcachedSt_allocate);
12520
- rb_define_method(cMemcachedSt.klass, "initialize", _wrap_new_MemcachedSt, -1);
12521
- rb_define_method(cMemcachedSt.klass, "purging=", _wrap_MemcachedSt_purging_set, -1);
12522
- rb_define_method(cMemcachedSt.klass, "purging", _wrap_MemcachedSt_purging_get, -1);
12523
- rb_define_method(cMemcachedSt.klass, "is_allocated=", _wrap_MemcachedSt_is_allocated_set, -1);
12524
- rb_define_method(cMemcachedSt.klass, "is_allocated", _wrap_MemcachedSt_is_allocated_get, -1);
12525
- rb_define_method(cMemcachedSt.klass, "distribution=", _wrap_MemcachedSt_distribution_set, -1);
12526
- rb_define_method(cMemcachedSt.klass, "distribution", _wrap_MemcachedSt_distribution_get, -1);
12527
- rb_define_method(cMemcachedSt.klass, "hash=", _wrap_MemcachedSt_hash_set, -1);
12528
- rb_define_method(cMemcachedSt.klass, "hash", _wrap_MemcachedSt_hash_get, -1);
12529
- rb_define_method(cMemcachedSt.klass, "continuum_points_counter=", _wrap_MemcachedSt_continuum_points_counter_set, -1);
12530
- rb_define_method(cMemcachedSt.klass, "continuum_points_counter", _wrap_MemcachedSt_continuum_points_counter_get, -1);
12531
- rb_define_method(cMemcachedSt.klass, "hosts=", _wrap_MemcachedSt_hosts_set, -1);
12532
- rb_define_method(cMemcachedSt.klass, "hosts", _wrap_MemcachedSt_hosts_get, -1);
12533
- rb_define_method(cMemcachedSt.klass, "snd_timeout=", _wrap_MemcachedSt_snd_timeout_set, -1);
12534
- rb_define_method(cMemcachedSt.klass, "snd_timeout", _wrap_MemcachedSt_snd_timeout_get, -1);
12535
- rb_define_method(cMemcachedSt.klass, "rcv_timeout=", _wrap_MemcachedSt_rcv_timeout_set, -1);
12536
- rb_define_method(cMemcachedSt.klass, "rcv_timeout", _wrap_MemcachedSt_rcv_timeout_get, -1);
12537
- rb_define_method(cMemcachedSt.klass, "server_failure_limit=", _wrap_MemcachedSt_server_failure_limit_set, -1);
12538
- rb_define_method(cMemcachedSt.klass, "server_failure_limit", _wrap_MemcachedSt_server_failure_limit_get, -1);
12539
- rb_define_method(cMemcachedSt.klass, "io_msg_watermark=", _wrap_MemcachedSt_io_msg_watermark_set, -1);
12540
- rb_define_method(cMemcachedSt.klass, "io_msg_watermark", _wrap_MemcachedSt_io_msg_watermark_get, -1);
12541
- rb_define_method(cMemcachedSt.klass, "io_bytes_watermark=", _wrap_MemcachedSt_io_bytes_watermark_set, -1);
12542
- rb_define_method(cMemcachedSt.klass, "io_bytes_watermark", _wrap_MemcachedSt_io_bytes_watermark_get, -1);
12543
- rb_define_method(cMemcachedSt.klass, "io_key_prefetch=", _wrap_MemcachedSt_io_key_prefetch_set, -1);
12544
- rb_define_method(cMemcachedSt.klass, "io_key_prefetch", _wrap_MemcachedSt_io_key_prefetch_get, -1);
12545
- rb_define_method(cMemcachedSt.klass, "number_of_hosts=", _wrap_MemcachedSt_number_of_hosts_set, -1);
12546
- rb_define_method(cMemcachedSt.klass, "number_of_hosts", _wrap_MemcachedSt_number_of_hosts_get, -1);
12547
- rb_define_method(cMemcachedSt.klass, "cursor_server=", _wrap_MemcachedSt_cursor_server_set, -1);
12548
- rb_define_method(cMemcachedSt.klass, "cursor_server", _wrap_MemcachedSt_cursor_server_get, -1);
12549
- rb_define_method(cMemcachedSt.klass, "cached_errno=", _wrap_MemcachedSt_cached_errno_set, -1);
12550
- rb_define_method(cMemcachedSt.klass, "cached_errno", _wrap_MemcachedSt_cached_errno_get, -1);
12551
- rb_define_method(cMemcachedSt.klass, "flags=", _wrap_MemcachedSt_flags_set, -1);
12552
- rb_define_method(cMemcachedSt.klass, "flags", _wrap_MemcachedSt_flags_get, -1);
12553
- rb_define_method(cMemcachedSt.klass, "poll_timeout=", _wrap_MemcachedSt_poll_timeout_set, -1);
12554
- rb_define_method(cMemcachedSt.klass, "poll_timeout", _wrap_MemcachedSt_poll_timeout_get, -1);
12555
- rb_define_method(cMemcachedSt.klass, "connect_timeout=", _wrap_MemcachedSt_connect_timeout_set, -1);
12556
- rb_define_method(cMemcachedSt.klass, "connect_timeout", _wrap_MemcachedSt_connect_timeout_get, -1);
12557
- rb_define_method(cMemcachedSt.klass, "retry_timeout=", _wrap_MemcachedSt_retry_timeout_set, -1);
12558
- rb_define_method(cMemcachedSt.klass, "retry_timeout", _wrap_MemcachedSt_retry_timeout_get, -1);
12559
- rb_define_method(cMemcachedSt.klass, "continuum_count=", _wrap_MemcachedSt_continuum_count_set, -1);
12560
- rb_define_method(cMemcachedSt.klass, "continuum_count", _wrap_MemcachedSt_continuum_count_get, -1);
12561
- rb_define_method(cMemcachedSt.klass, "send_size=", _wrap_MemcachedSt_send_size_set, -1);
12562
- rb_define_method(cMemcachedSt.klass, "send_size", _wrap_MemcachedSt_send_size_get, -1);
12563
- rb_define_method(cMemcachedSt.klass, "recv_size=", _wrap_MemcachedSt_recv_size_set, -1);
12564
- rb_define_method(cMemcachedSt.klass, "recv_size", _wrap_MemcachedSt_recv_size_get, -1);
12565
- rb_define_method(cMemcachedSt.klass, "user_data=", _wrap_MemcachedSt_user_data_set, -1);
12566
- rb_define_method(cMemcachedSt.klass, "user_data", _wrap_MemcachedSt_user_data_get, -1);
12567
- rb_define_method(cMemcachedSt.klass, "next_distribution_rebuild=", _wrap_MemcachedSt_next_distribution_rebuild_set, -1);
12568
- rb_define_method(cMemcachedSt.klass, "next_distribution_rebuild", _wrap_MemcachedSt_next_distribution_rebuild_get, -1);
12569
- rb_define_method(cMemcachedSt.klass, "prefix_key_length=", _wrap_MemcachedSt_prefix_key_length_set, -1);
12570
- rb_define_method(cMemcachedSt.klass, "prefix_key_length", _wrap_MemcachedSt_prefix_key_length_get, -1);
12571
- rb_define_method(cMemcachedSt.klass, "hash_continuum=", _wrap_MemcachedSt_hash_continuum_set, -1);
12572
- rb_define_method(cMemcachedSt.klass, "hash_continuum", _wrap_MemcachedSt_hash_continuum_get, -1);
12573
- rb_define_method(cMemcachedSt.klass, "result=", _wrap_MemcachedSt_result_set, -1);
12574
- rb_define_method(cMemcachedSt.klass, "result", _wrap_MemcachedSt_result_get, -1);
12575
- rb_define_method(cMemcachedSt.klass, "continuum=", _wrap_MemcachedSt_continuum_set, -1);
12576
- rb_define_method(cMemcachedSt.klass, "continuum", _wrap_MemcachedSt_continuum_get, -1);
12577
- rb_define_method(cMemcachedSt.klass, "on_clone=", _wrap_MemcachedSt_on_clone_set, -1);
12578
- rb_define_method(cMemcachedSt.klass, "on_clone", _wrap_MemcachedSt_on_clone_get, -1);
12579
- rb_define_method(cMemcachedSt.klass, "on_cleanup=", _wrap_MemcachedSt_on_cleanup_set, -1);
12580
- rb_define_method(cMemcachedSt.klass, "on_cleanup", _wrap_MemcachedSt_on_cleanup_get, -1);
12581
- rb_define_method(cMemcachedSt.klass, "call_free=", _wrap_MemcachedSt_call_free_set, -1);
12582
- rb_define_method(cMemcachedSt.klass, "call_free", _wrap_MemcachedSt_call_free_get, -1);
12583
- rb_define_method(cMemcachedSt.klass, "call_malloc=", _wrap_MemcachedSt_call_malloc_set, -1);
12584
- rb_define_method(cMemcachedSt.klass, "call_malloc", _wrap_MemcachedSt_call_malloc_get, -1);
12585
- rb_define_method(cMemcachedSt.klass, "call_realloc=", _wrap_MemcachedSt_call_realloc_set, -1);
12586
- rb_define_method(cMemcachedSt.klass, "call_realloc", _wrap_MemcachedSt_call_realloc_get, -1);
12587
- rb_define_method(cMemcachedSt.klass, "call_calloc=", _wrap_MemcachedSt_call_calloc_set, -1);
12588
- rb_define_method(cMemcachedSt.klass, "call_calloc", _wrap_MemcachedSt_call_calloc_get, -1);
12589
- rb_define_method(cMemcachedSt.klass, "get_key_failure=", _wrap_MemcachedSt_get_key_failure_set, -1);
12590
- rb_define_method(cMemcachedSt.klass, "get_key_failure", _wrap_MemcachedSt_get_key_failure_get, -1);
12591
- rb_define_method(cMemcachedSt.klass, "delete_trigger=", _wrap_MemcachedSt_delete_trigger_set, -1);
12592
- rb_define_method(cMemcachedSt.klass, "delete_trigger", _wrap_MemcachedSt_delete_trigger_get, -1);
12593
- rb_define_method(cMemcachedSt.klass, "prefix_key=", _wrap_MemcachedSt_prefix_key_set, -1);
12594
- rb_define_method(cMemcachedSt.klass, "prefix_key", _wrap_MemcachedSt_prefix_key_get, -1);
12595
- rb_define_method(cMemcachedSt.klass, "number_of_replicas=", _wrap_MemcachedSt_number_of_replicas_set, -1);
12596
- rb_define_method(cMemcachedSt.klass, "number_of_replicas", _wrap_MemcachedSt_number_of_replicas_get, -1);
12597
- cMemcachedSt.mark = 0;
12598
- cMemcachedSt.destroy = (void (*)(void *)) memcached_free;
12599
- cMemcachedSt.trackObjects = 0;
12643
+ SwigClassMemcachedAnalysisSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedAnalysisSt", rb_cObject);
12644
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_analysis_st, (void *) &SwigClassMemcachedAnalysisSt);
12645
+ rb_define_alloc_func(SwigClassMemcachedAnalysisSt.klass, _wrap_MemcachedAnalysisSt_allocate);
12646
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "initialize", _wrap_new_MemcachedAnalysisSt, -1);
12647
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "average_item_size=", _wrap_MemcachedAnalysisSt_average_item_size_set, -1);
12648
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "average_item_size", _wrap_MemcachedAnalysisSt_average_item_size_get, -1);
12649
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "longest_uptime=", _wrap_MemcachedAnalysisSt_longest_uptime_set, -1);
12650
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "longest_uptime", _wrap_MemcachedAnalysisSt_longest_uptime_get, -1);
12651
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_free_server=", _wrap_MemcachedAnalysisSt_least_free_server_set, -1);
12652
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_free_server", _wrap_MemcachedAnalysisSt_least_free_server_get, -1);
12653
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_consumed_server=", _wrap_MemcachedAnalysisSt_most_consumed_server_set, -1);
12654
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_consumed_server", _wrap_MemcachedAnalysisSt_most_consumed_server_get, -1);
12655
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "oldest_server=", _wrap_MemcachedAnalysisSt_oldest_server_set, -1);
12656
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "oldest_server", _wrap_MemcachedAnalysisSt_oldest_server_get, -1);
12657
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "pool_hit_ratio=", _wrap_MemcachedAnalysisSt_pool_hit_ratio_set, -1);
12658
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "pool_hit_ratio", _wrap_MemcachedAnalysisSt_pool_hit_ratio_get, -1);
12659
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_used_bytes=", _wrap_MemcachedAnalysisSt_most_used_bytes_set, -1);
12660
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_used_bytes", _wrap_MemcachedAnalysisSt_most_used_bytes_get, -1);
12661
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_remaining_bytes=", _wrap_MemcachedAnalysisSt_least_remaining_bytes_set, -1);
12662
+ rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_remaining_bytes", _wrap_MemcachedAnalysisSt_least_remaining_bytes_get, -1);
12663
+ SwigClassMemcachedAnalysisSt.mark = 0;
12664
+ SwigClassMemcachedAnalysisSt.destroy = (void (*)(void *)) free_memcached_analysis_st;
12665
+ SwigClassMemcachedAnalysisSt.trackObjects = 0;
12666
+
12667
+ SwigClassMemcachedStatSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedStatSt", rb_cObject);
12668
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_stat_st, (void *) &SwigClassMemcachedStatSt);
12669
+ rb_define_alloc_func(SwigClassMemcachedStatSt.klass, _wrap_MemcachedStatSt_allocate);
12670
+ rb_define_method(SwigClassMemcachedStatSt.klass, "initialize", _wrap_new_MemcachedStatSt, -1);
12671
+ rb_define_method(SwigClassMemcachedStatSt.klass, "connection_structures=", _wrap_MemcachedStatSt_connection_structures_set, -1);
12672
+ rb_define_method(SwigClassMemcachedStatSt.klass, "connection_structures", _wrap_MemcachedStatSt_connection_structures_get, -1);
12673
+ rb_define_method(SwigClassMemcachedStatSt.klass, "curr_connections=", _wrap_MemcachedStatSt_curr_connections_set, -1);
12674
+ rb_define_method(SwigClassMemcachedStatSt.klass, "curr_connections", _wrap_MemcachedStatSt_curr_connections_get, -1);
12675
+ rb_define_method(SwigClassMemcachedStatSt.klass, "curr_items=", _wrap_MemcachedStatSt_curr_items_set, -1);
12676
+ rb_define_method(SwigClassMemcachedStatSt.klass, "curr_items", _wrap_MemcachedStatSt_curr_items_get, -1);
12677
+ rb_define_method(SwigClassMemcachedStatSt.klass, "pid=", _wrap_MemcachedStatSt_pid_set, -1);
12678
+ rb_define_method(SwigClassMemcachedStatSt.klass, "pid", _wrap_MemcachedStatSt_pid_get, -1);
12679
+ rb_define_method(SwigClassMemcachedStatSt.klass, "pointer_size=", _wrap_MemcachedStatSt_pointer_size_set, -1);
12680
+ rb_define_method(SwigClassMemcachedStatSt.klass, "pointer_size", _wrap_MemcachedStatSt_pointer_size_get, -1);
12681
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_microseconds=", _wrap_MemcachedStatSt_rusage_system_microseconds_set, -1);
12682
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_microseconds", _wrap_MemcachedStatSt_rusage_system_microseconds_get, -1);
12683
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_seconds=", _wrap_MemcachedStatSt_rusage_system_seconds_set, -1);
12684
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_seconds", _wrap_MemcachedStatSt_rusage_system_seconds_get, -1);
12685
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_microseconds=", _wrap_MemcachedStatSt_rusage_user_microseconds_set, -1);
12686
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_microseconds", _wrap_MemcachedStatSt_rusage_user_microseconds_get, -1);
12687
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_seconds=", _wrap_MemcachedStatSt_rusage_user_seconds_set, -1);
12688
+ rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_seconds", _wrap_MemcachedStatSt_rusage_user_seconds_get, -1);
12689
+ rb_define_method(SwigClassMemcachedStatSt.klass, "threads=", _wrap_MemcachedStatSt_threads_set, -1);
12690
+ rb_define_method(SwigClassMemcachedStatSt.klass, "threads", _wrap_MemcachedStatSt_threads_get, -1);
12691
+ rb_define_method(SwigClassMemcachedStatSt.klass, "time=", _wrap_MemcachedStatSt_time_set, -1);
12692
+ rb_define_method(SwigClassMemcachedStatSt.klass, "time", _wrap_MemcachedStatSt_time_get, -1);
12693
+ rb_define_method(SwigClassMemcachedStatSt.klass, "total_connections=", _wrap_MemcachedStatSt_total_connections_set, -1);
12694
+ rb_define_method(SwigClassMemcachedStatSt.klass, "total_connections", _wrap_MemcachedStatSt_total_connections_get, -1);
12695
+ rb_define_method(SwigClassMemcachedStatSt.klass, "total_items=", _wrap_MemcachedStatSt_total_items_set, -1);
12696
+ rb_define_method(SwigClassMemcachedStatSt.klass, "total_items", _wrap_MemcachedStatSt_total_items_get, -1);
12697
+ rb_define_method(SwigClassMemcachedStatSt.klass, "uptime=", _wrap_MemcachedStatSt_uptime_set, -1);
12698
+ rb_define_method(SwigClassMemcachedStatSt.klass, "uptime", _wrap_MemcachedStatSt_uptime_get, -1);
12699
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes=", _wrap_MemcachedStatSt_bytes_set, -1);
12700
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes", _wrap_MemcachedStatSt_bytes_get, -1);
12701
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_read=", _wrap_MemcachedStatSt_bytes_read_set, -1);
12702
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_read", _wrap_MemcachedStatSt_bytes_read_get, -1);
12703
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_written=", _wrap_MemcachedStatSt_bytes_written_set, -1);
12704
+ rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_written", _wrap_MemcachedStatSt_bytes_written_get, -1);
12705
+ rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_get=", _wrap_MemcachedStatSt_cmd_get_set, -1);
12706
+ rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_get", _wrap_MemcachedStatSt_cmd_get_get, -1);
12707
+ rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_set=", _wrap_MemcachedStatSt_cmd_set_set, -1);
12708
+ rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_set", _wrap_MemcachedStatSt_cmd_set_get, -1);
12709
+ rb_define_method(SwigClassMemcachedStatSt.klass, "evictions=", _wrap_MemcachedStatSt_evictions_set, -1);
12710
+ rb_define_method(SwigClassMemcachedStatSt.klass, "evictions", _wrap_MemcachedStatSt_evictions_get, -1);
12711
+ rb_define_method(SwigClassMemcachedStatSt.klass, "get_hits=", _wrap_MemcachedStatSt_get_hits_set, -1);
12712
+ rb_define_method(SwigClassMemcachedStatSt.klass, "get_hits", _wrap_MemcachedStatSt_get_hits_get, -1);
12713
+ rb_define_method(SwigClassMemcachedStatSt.klass, "get_misses=", _wrap_MemcachedStatSt_get_misses_set, -1);
12714
+ rb_define_method(SwigClassMemcachedStatSt.klass, "get_misses", _wrap_MemcachedStatSt_get_misses_get, -1);
12715
+ rb_define_method(SwigClassMemcachedStatSt.klass, "limit_maxbytes=", _wrap_MemcachedStatSt_limit_maxbytes_set, -1);
12716
+ rb_define_method(SwigClassMemcachedStatSt.klass, "limit_maxbytes", _wrap_MemcachedStatSt_limit_maxbytes_get, -1);
12717
+ rb_define_method(SwigClassMemcachedStatSt.klass, "version=", _wrap_MemcachedStatSt_version_set, -1);
12718
+ rb_define_method(SwigClassMemcachedStatSt.klass, "version", _wrap_MemcachedStatSt_version_get, -1);
12719
+ SwigClassMemcachedStatSt.mark = 0;
12720
+ SwigClassMemcachedStatSt.destroy = (void (*)(void *)) free_memcached_stat_st;
12721
+ SwigClassMemcachedStatSt.trackObjects = 0;
12722
+
12723
+ SwigClassMemcachedSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedSt", rb_cObject);
12724
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_st, (void *) &SwigClassMemcachedSt);
12725
+ rb_define_alloc_func(SwigClassMemcachedSt.klass, _wrap_MemcachedSt_allocate);
12726
+ rb_define_method(SwigClassMemcachedSt.klass, "initialize", _wrap_new_MemcachedSt, -1);
12727
+ rb_define_method(SwigClassMemcachedSt.klass, "purging=", _wrap_MemcachedSt_purging_set, -1);
12728
+ rb_define_method(SwigClassMemcachedSt.klass, "purging", _wrap_MemcachedSt_purging_get, -1);
12729
+ rb_define_method(SwigClassMemcachedSt.klass, "is_allocated=", _wrap_MemcachedSt_is_allocated_set, -1);
12730
+ rb_define_method(SwigClassMemcachedSt.klass, "is_allocated", _wrap_MemcachedSt_is_allocated_get, -1);
12731
+ rb_define_method(SwigClassMemcachedSt.klass, "distribution=", _wrap_MemcachedSt_distribution_set, -1);
12732
+ rb_define_method(SwigClassMemcachedSt.klass, "distribution", _wrap_MemcachedSt_distribution_get, -1);
12733
+ rb_define_method(SwigClassMemcachedSt.klass, "hash=", _wrap_MemcachedSt_hash_set, -1);
12734
+ rb_define_method(SwigClassMemcachedSt.klass, "hash", _wrap_MemcachedSt_hash_get, -1);
12735
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum_points_counter=", _wrap_MemcachedSt_continuum_points_counter_set, -1);
12736
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum_points_counter", _wrap_MemcachedSt_continuum_points_counter_get, -1);
12737
+ rb_define_method(SwigClassMemcachedSt.klass, "hosts=", _wrap_MemcachedSt_hosts_set, -1);
12738
+ rb_define_method(SwigClassMemcachedSt.klass, "hosts", _wrap_MemcachedSt_hosts_get, -1);
12739
+ rb_define_method(SwigClassMemcachedSt.klass, "snd_timeout=", _wrap_MemcachedSt_snd_timeout_set, -1);
12740
+ rb_define_method(SwigClassMemcachedSt.klass, "snd_timeout", _wrap_MemcachedSt_snd_timeout_get, -1);
12741
+ rb_define_method(SwigClassMemcachedSt.klass, "rcv_timeout=", _wrap_MemcachedSt_rcv_timeout_set, -1);
12742
+ rb_define_method(SwigClassMemcachedSt.klass, "rcv_timeout", _wrap_MemcachedSt_rcv_timeout_get, -1);
12743
+ rb_define_method(SwigClassMemcachedSt.klass, "server_failure_limit=", _wrap_MemcachedSt_server_failure_limit_set, -1);
12744
+ rb_define_method(SwigClassMemcachedSt.klass, "server_failure_limit", _wrap_MemcachedSt_server_failure_limit_get, -1);
12745
+ rb_define_method(SwigClassMemcachedSt.klass, "io_msg_watermark=", _wrap_MemcachedSt_io_msg_watermark_set, -1);
12746
+ rb_define_method(SwigClassMemcachedSt.klass, "io_msg_watermark", _wrap_MemcachedSt_io_msg_watermark_get, -1);
12747
+ rb_define_method(SwigClassMemcachedSt.klass, "io_bytes_watermark=", _wrap_MemcachedSt_io_bytes_watermark_set, -1);
12748
+ rb_define_method(SwigClassMemcachedSt.klass, "io_bytes_watermark", _wrap_MemcachedSt_io_bytes_watermark_get, -1);
12749
+ rb_define_method(SwigClassMemcachedSt.klass, "io_key_prefetch=", _wrap_MemcachedSt_io_key_prefetch_set, -1);
12750
+ rb_define_method(SwigClassMemcachedSt.klass, "io_key_prefetch", _wrap_MemcachedSt_io_key_prefetch_get, -1);
12751
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_hosts=", _wrap_MemcachedSt_number_of_hosts_set, -1);
12752
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_hosts", _wrap_MemcachedSt_number_of_hosts_get, -1);
12753
+ rb_define_method(SwigClassMemcachedSt.klass, "cursor_server=", _wrap_MemcachedSt_cursor_server_set, -1);
12754
+ rb_define_method(SwigClassMemcachedSt.klass, "cursor_server", _wrap_MemcachedSt_cursor_server_get, -1);
12755
+ rb_define_method(SwigClassMemcachedSt.klass, "cached_errno=", _wrap_MemcachedSt_cached_errno_set, -1);
12756
+ rb_define_method(SwigClassMemcachedSt.klass, "cached_errno", _wrap_MemcachedSt_cached_errno_get, -1);
12757
+ rb_define_method(SwigClassMemcachedSt.klass, "flags=", _wrap_MemcachedSt_flags_set, -1);
12758
+ rb_define_method(SwigClassMemcachedSt.klass, "flags", _wrap_MemcachedSt_flags_get, -1);
12759
+ rb_define_method(SwigClassMemcachedSt.klass, "poll_timeout=", _wrap_MemcachedSt_poll_timeout_set, -1);
12760
+ rb_define_method(SwigClassMemcachedSt.klass, "poll_timeout", _wrap_MemcachedSt_poll_timeout_get, -1);
12761
+ rb_define_method(SwigClassMemcachedSt.klass, "connect_timeout=", _wrap_MemcachedSt_connect_timeout_set, -1);
12762
+ rb_define_method(SwigClassMemcachedSt.klass, "connect_timeout", _wrap_MemcachedSt_connect_timeout_get, -1);
12763
+ rb_define_method(SwigClassMemcachedSt.klass, "retry_timeout=", _wrap_MemcachedSt_retry_timeout_set, -1);
12764
+ rb_define_method(SwigClassMemcachedSt.klass, "retry_timeout", _wrap_MemcachedSt_retry_timeout_get, -1);
12765
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum_count=", _wrap_MemcachedSt_continuum_count_set, -1);
12766
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum_count", _wrap_MemcachedSt_continuum_count_get, -1);
12767
+ rb_define_method(SwigClassMemcachedSt.klass, "send_size=", _wrap_MemcachedSt_send_size_set, -1);
12768
+ rb_define_method(SwigClassMemcachedSt.klass, "send_size", _wrap_MemcachedSt_send_size_get, -1);
12769
+ rb_define_method(SwigClassMemcachedSt.klass, "recv_size=", _wrap_MemcachedSt_recv_size_set, -1);
12770
+ rb_define_method(SwigClassMemcachedSt.klass, "recv_size", _wrap_MemcachedSt_recv_size_get, -1);
12771
+ rb_define_method(SwigClassMemcachedSt.klass, "user_data=", _wrap_MemcachedSt_user_data_set, -1);
12772
+ rb_define_method(SwigClassMemcachedSt.klass, "user_data", _wrap_MemcachedSt_user_data_get, -1);
12773
+ rb_define_method(SwigClassMemcachedSt.klass, "next_distribution_rebuild=", _wrap_MemcachedSt_next_distribution_rebuild_set, -1);
12774
+ rb_define_method(SwigClassMemcachedSt.klass, "next_distribution_rebuild", _wrap_MemcachedSt_next_distribution_rebuild_get, -1);
12775
+ rb_define_method(SwigClassMemcachedSt.klass, "prefix_key_length=", _wrap_MemcachedSt_prefix_key_length_set, -1);
12776
+ rb_define_method(SwigClassMemcachedSt.klass, "prefix_key_length", _wrap_MemcachedSt_prefix_key_length_get, -1);
12777
+ rb_define_method(SwigClassMemcachedSt.klass, "hash_continuum=", _wrap_MemcachedSt_hash_continuum_set, -1);
12778
+ rb_define_method(SwigClassMemcachedSt.klass, "hash_continuum", _wrap_MemcachedSt_hash_continuum_get, -1);
12779
+ rb_define_method(SwigClassMemcachedSt.klass, "result=", _wrap_MemcachedSt_result_set, -1);
12780
+ rb_define_method(SwigClassMemcachedSt.klass, "result", _wrap_MemcachedSt_result_get, -1);
12781
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum=", _wrap_MemcachedSt_continuum_set, -1);
12782
+ rb_define_method(SwigClassMemcachedSt.klass, "continuum", _wrap_MemcachedSt_continuum_get, -1);
12783
+ rb_define_method(SwigClassMemcachedSt.klass, "on_clone=", _wrap_MemcachedSt_on_clone_set, -1);
12784
+ rb_define_method(SwigClassMemcachedSt.klass, "on_clone", _wrap_MemcachedSt_on_clone_get, -1);
12785
+ rb_define_method(SwigClassMemcachedSt.klass, "on_cleanup=", _wrap_MemcachedSt_on_cleanup_set, -1);
12786
+ rb_define_method(SwigClassMemcachedSt.klass, "on_cleanup", _wrap_MemcachedSt_on_cleanup_get, -1);
12787
+ rb_define_method(SwigClassMemcachedSt.klass, "call_free=", _wrap_MemcachedSt_call_free_set, -1);
12788
+ rb_define_method(SwigClassMemcachedSt.klass, "call_free", _wrap_MemcachedSt_call_free_get, -1);
12789
+ rb_define_method(SwigClassMemcachedSt.klass, "call_malloc=", _wrap_MemcachedSt_call_malloc_set, -1);
12790
+ rb_define_method(SwigClassMemcachedSt.klass, "call_malloc", _wrap_MemcachedSt_call_malloc_get, -1);
12791
+ rb_define_method(SwigClassMemcachedSt.klass, "call_realloc=", _wrap_MemcachedSt_call_realloc_set, -1);
12792
+ rb_define_method(SwigClassMemcachedSt.klass, "call_realloc", _wrap_MemcachedSt_call_realloc_get, -1);
12793
+ rb_define_method(SwigClassMemcachedSt.klass, "call_calloc=", _wrap_MemcachedSt_call_calloc_set, -1);
12794
+ rb_define_method(SwigClassMemcachedSt.klass, "call_calloc", _wrap_MemcachedSt_call_calloc_get, -1);
12795
+ rb_define_method(SwigClassMemcachedSt.klass, "get_key_failure=", _wrap_MemcachedSt_get_key_failure_set, -1);
12796
+ rb_define_method(SwigClassMemcachedSt.klass, "get_key_failure", _wrap_MemcachedSt_get_key_failure_get, -1);
12797
+ rb_define_method(SwigClassMemcachedSt.klass, "delete_trigger=", _wrap_MemcachedSt_delete_trigger_set, -1);
12798
+ rb_define_method(SwigClassMemcachedSt.klass, "delete_trigger", _wrap_MemcachedSt_delete_trigger_get, -1);
12799
+ rb_define_method(SwigClassMemcachedSt.klass, "prefix_key=", _wrap_MemcachedSt_prefix_key_set, -1);
12800
+ rb_define_method(SwigClassMemcachedSt.klass, "prefix_key", _wrap_MemcachedSt_prefix_key_get, -1);
12801
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_replicas=", _wrap_MemcachedSt_number_of_replicas_set, -1);
12802
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_replicas", _wrap_MemcachedSt_number_of_replicas_get, -1);
12803
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_live_hosts=", _wrap_MemcachedSt_number_of_live_hosts_set, -1);
12804
+ rb_define_method(SwigClassMemcachedSt.klass, "number_of_live_hosts", _wrap_MemcachedSt_number_of_live_hosts_get, -1);
12805
+ rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices=", _wrap_MemcachedSt_live_host_indices_set, -1);
12806
+ rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices", _wrap_MemcachedSt_live_host_indices_get, -1);
12807
+ rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices_size=", _wrap_MemcachedSt_live_host_indices_size_set, -1);
12808
+ rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices_size", _wrap_MemcachedSt_live_host_indices_size_get, -1);
12809
+ SwigClassMemcachedSt.mark = 0;
12810
+ SwigClassMemcachedSt.destroy = (void (*)(void *)) memcached_free;
12811
+ SwigClassMemcachedSt.trackObjects = 0;
12600
12812
  rb_define_module_function(mRlibmemcached, "memcached_version", _wrap_memcached_version, -1);
12601
12813
  rb_define_module_function(mRlibmemcached, "memcached_lib_version", _wrap_memcached_lib_version, -1);
12602
12814
  rb_define_module_function(mRlibmemcached, "memcached_create", _wrap_memcached_create, -1);
@@ -12767,29 +12979,29 @@ SWIGEXPORT void Init_rlibmemcached(void) {
12767
12979
  rb_define_module_function(mRlibmemcached, "memcached_append_by_key", _wrap_memcached_append_by_key, -1);
12768
12980
  rb_define_module_function(mRlibmemcached, "memcached_cas_by_key", _wrap_memcached_cas_by_key, -1);
12769
12981
 
12770
- cMemcachedResultSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedResultSt", rb_cObject);
12771
- SWIG_TypeClientData(SWIGTYPE_p_memcached_result_st, (void *) &cMemcachedResultSt);
12772
- rb_define_alloc_func(cMemcachedResultSt.klass, _wrap_MemcachedResultSt_allocate);
12773
- rb_define_method(cMemcachedResultSt.klass, "initialize", _wrap_new_MemcachedResultSt, -1);
12774
- rb_define_method(cMemcachedResultSt.klass, "flags=", _wrap_MemcachedResultSt_flags_set, -1);
12775
- rb_define_method(cMemcachedResultSt.klass, "flags", _wrap_MemcachedResultSt_flags_get, -1);
12776
- rb_define_method(cMemcachedResultSt.klass, "is_allocated=", _wrap_MemcachedResultSt_is_allocated_set, -1);
12777
- rb_define_method(cMemcachedResultSt.klass, "is_allocated", _wrap_MemcachedResultSt_is_allocated_get, -1);
12778
- rb_define_method(cMemcachedResultSt.klass, "expiration=", _wrap_MemcachedResultSt_expiration_set, -1);
12779
- rb_define_method(cMemcachedResultSt.klass, "expiration", _wrap_MemcachedResultSt_expiration_get, -1);
12780
- rb_define_method(cMemcachedResultSt.klass, "root=", _wrap_MemcachedResultSt_root_set, -1);
12781
- rb_define_method(cMemcachedResultSt.klass, "root", _wrap_MemcachedResultSt_root_get, -1);
12782
- rb_define_method(cMemcachedResultSt.klass, "key_length=", _wrap_MemcachedResultSt_key_length_set, -1);
12783
- rb_define_method(cMemcachedResultSt.klass, "key_length", _wrap_MemcachedResultSt_key_length_get, -1);
12784
- rb_define_method(cMemcachedResultSt.klass, "cas=", _wrap_MemcachedResultSt_cas_set, -1);
12785
- rb_define_method(cMemcachedResultSt.klass, "cas", _wrap_MemcachedResultSt_cas_get, -1);
12786
- rb_define_method(cMemcachedResultSt.klass, "value=", _wrap_MemcachedResultSt_value_set, -1);
12787
- rb_define_method(cMemcachedResultSt.klass, "value", _wrap_MemcachedResultSt_value_get, -1);
12788
- rb_define_method(cMemcachedResultSt.klass, "key=", _wrap_MemcachedResultSt_key_set, -1);
12789
- rb_define_method(cMemcachedResultSt.klass, "key", _wrap_MemcachedResultSt_key_get, -1);
12790
- cMemcachedResultSt.mark = 0;
12791
- cMemcachedResultSt.destroy = (void (*)(void *)) free_memcached_result_st;
12792
- cMemcachedResultSt.trackObjects = 0;
12982
+ SwigClassMemcachedResultSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedResultSt", rb_cObject);
12983
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_result_st, (void *) &SwigClassMemcachedResultSt);
12984
+ rb_define_alloc_func(SwigClassMemcachedResultSt.klass, _wrap_MemcachedResultSt_allocate);
12985
+ rb_define_method(SwigClassMemcachedResultSt.klass, "initialize", _wrap_new_MemcachedResultSt, -1);
12986
+ rb_define_method(SwigClassMemcachedResultSt.klass, "flags=", _wrap_MemcachedResultSt_flags_set, -1);
12987
+ rb_define_method(SwigClassMemcachedResultSt.klass, "flags", _wrap_MemcachedResultSt_flags_get, -1);
12988
+ rb_define_method(SwigClassMemcachedResultSt.klass, "is_allocated=", _wrap_MemcachedResultSt_is_allocated_set, -1);
12989
+ rb_define_method(SwigClassMemcachedResultSt.klass, "is_allocated", _wrap_MemcachedResultSt_is_allocated_get, -1);
12990
+ rb_define_method(SwigClassMemcachedResultSt.klass, "expiration=", _wrap_MemcachedResultSt_expiration_set, -1);
12991
+ rb_define_method(SwigClassMemcachedResultSt.klass, "expiration", _wrap_MemcachedResultSt_expiration_get, -1);
12992
+ rb_define_method(SwigClassMemcachedResultSt.klass, "root=", _wrap_MemcachedResultSt_root_set, -1);
12993
+ rb_define_method(SwigClassMemcachedResultSt.klass, "root", _wrap_MemcachedResultSt_root_get, -1);
12994
+ rb_define_method(SwigClassMemcachedResultSt.klass, "key_length=", _wrap_MemcachedResultSt_key_length_set, -1);
12995
+ rb_define_method(SwigClassMemcachedResultSt.klass, "key_length", _wrap_MemcachedResultSt_key_length_get, -1);
12996
+ rb_define_method(SwigClassMemcachedResultSt.klass, "cas=", _wrap_MemcachedResultSt_cas_set, -1);
12997
+ rb_define_method(SwigClassMemcachedResultSt.klass, "cas", _wrap_MemcachedResultSt_cas_get, -1);
12998
+ rb_define_method(SwigClassMemcachedResultSt.klass, "value=", _wrap_MemcachedResultSt_value_set, -1);
12999
+ rb_define_method(SwigClassMemcachedResultSt.klass, "value", _wrap_MemcachedResultSt_value_get, -1);
13000
+ rb_define_method(SwigClassMemcachedResultSt.klass, "key=", _wrap_MemcachedResultSt_key_set, -1);
13001
+ rb_define_method(SwigClassMemcachedResultSt.klass, "key", _wrap_MemcachedResultSt_key_get, -1);
13002
+ SwigClassMemcachedResultSt.mark = 0;
13003
+ SwigClassMemcachedResultSt.destroy = (void (*)(void *)) free_memcached_result_st;
13004
+ SwigClassMemcachedResultSt.trackObjects = 0;
12793
13005
  rb_define_module_function(mRlibmemcached, "memcached_result_free", _wrap_memcached_result_free, -1);
12794
13006
  rb_define_module_function(mRlibmemcached, "memcached_result_reset", _wrap_memcached_result_reset, -1);
12795
13007
  rb_define_module_function(mRlibmemcached, "memcached_result_create", _wrap_memcached_result_create, -1);
@@ -12797,65 +13009,65 @@ SWIGEXPORT void Init_rlibmemcached(void) {
12797
13009
  rb_define_module_function(mRlibmemcached, "memcached_result_length", _wrap_memcached_result_length, -1);
12798
13010
  rb_define_module_function(mRlibmemcached, "memcached_result_set_value", _wrap_memcached_result_set_value, -1);
12799
13011
 
12800
- cMemcachedServerSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedServerSt", rb_cObject);
12801
- SWIG_TypeClientData(SWIGTYPE_p_memcached_server_st, (void *) &cMemcachedServerSt);
12802
- rb_define_alloc_func(cMemcachedServerSt.klass, _wrap_MemcachedServerSt_allocate);
12803
- rb_define_method(cMemcachedServerSt.klass, "initialize", _wrap_new_MemcachedServerSt, -1);
12804
- rb_define_method(cMemcachedServerSt.klass, "is_allocated=", _wrap_MemcachedServerSt_is_allocated_set, -1);
12805
- rb_define_method(cMemcachedServerSt.klass, "is_allocated", _wrap_MemcachedServerSt_is_allocated_get, -1);
12806
- rb_define_method(cMemcachedServerSt.klass, "sockaddr_inited=", _wrap_MemcachedServerSt_sockaddr_inited_set, -1);
12807
- rb_define_method(cMemcachedServerSt.klass, "sockaddr_inited", _wrap_MemcachedServerSt_sockaddr_inited_get, -1);
12808
- rb_define_method(cMemcachedServerSt.klass, "count=", _wrap_MemcachedServerSt_count_set, -1);
12809
- rb_define_method(cMemcachedServerSt.klass, "count", _wrap_MemcachedServerSt_count_get, -1);
12810
- rb_define_method(cMemcachedServerSt.klass, "cursor_active=", _wrap_MemcachedServerSt_cursor_active_set, -1);
12811
- rb_define_method(cMemcachedServerSt.klass, "cursor_active", _wrap_MemcachedServerSt_cursor_active_get, -1);
12812
- rb_define_method(cMemcachedServerSt.klass, "port=", _wrap_MemcachedServerSt_port_set, -1);
12813
- rb_define_method(cMemcachedServerSt.klass, "port", _wrap_MemcachedServerSt_port_get, -1);
12814
- rb_define_method(cMemcachedServerSt.klass, "cached_errno=", _wrap_MemcachedServerSt_cached_errno_set, -1);
12815
- rb_define_method(cMemcachedServerSt.klass, "cached_errno", _wrap_MemcachedServerSt_cached_errno_get, -1);
12816
- rb_define_method(cMemcachedServerSt.klass, "fd=", _wrap_MemcachedServerSt_fd_set, -1);
12817
- rb_define_method(cMemcachedServerSt.klass, "fd", _wrap_MemcachedServerSt_fd_get, -1);
12818
- rb_define_method(cMemcachedServerSt.klass, "io_bytes_sent=", _wrap_MemcachedServerSt_io_bytes_sent_set, -1);
12819
- rb_define_method(cMemcachedServerSt.klass, "io_bytes_sent", _wrap_MemcachedServerSt_io_bytes_sent_get, -1);
12820
- rb_define_method(cMemcachedServerSt.klass, "server_failure_counter=", _wrap_MemcachedServerSt_server_failure_counter_set, -1);
12821
- rb_define_method(cMemcachedServerSt.klass, "server_failure_counter", _wrap_MemcachedServerSt_server_failure_counter_get, -1);
12822
- rb_define_method(cMemcachedServerSt.klass, "weight=", _wrap_MemcachedServerSt_weight_set, -1);
12823
- rb_define_method(cMemcachedServerSt.klass, "weight", _wrap_MemcachedServerSt_weight_get, -1);
12824
- rb_define_method(cMemcachedServerSt.klass, "major_version=", _wrap_MemcachedServerSt_major_version_set, -1);
12825
- rb_define_method(cMemcachedServerSt.klass, "major_version", _wrap_MemcachedServerSt_major_version_get, -1);
12826
- rb_define_method(cMemcachedServerSt.klass, "micro_version=", _wrap_MemcachedServerSt_micro_version_set, -1);
12827
- rb_define_method(cMemcachedServerSt.klass, "micro_version", _wrap_MemcachedServerSt_micro_version_get, -1);
12828
- rb_define_method(cMemcachedServerSt.klass, "minor_version=", _wrap_MemcachedServerSt_minor_version_set, -1);
12829
- rb_define_method(cMemcachedServerSt.klass, "minor_version", _wrap_MemcachedServerSt_minor_version_get, -1);
12830
- rb_define_method(cMemcachedServerSt.klass, "type=", _wrap_MemcachedServerSt_type_set, -1);
12831
- rb_define_method(cMemcachedServerSt.klass, "type", _wrap_MemcachedServerSt_type_get, -1);
12832
- rb_define_method(cMemcachedServerSt.klass, "read_ptr=", _wrap_MemcachedServerSt_read_ptr_set, -1);
12833
- rb_define_method(cMemcachedServerSt.klass, "read_ptr", _wrap_MemcachedServerSt_read_ptr_get, -1);
12834
- rb_define_method(cMemcachedServerSt.klass, "cached_server_error=", _wrap_MemcachedServerSt_cached_server_error_set, -1);
12835
- rb_define_method(cMemcachedServerSt.klass, "cached_server_error", _wrap_MemcachedServerSt_cached_server_error_get, -1);
12836
- rb_define_method(cMemcachedServerSt.klass, "read_buffer_length=", _wrap_MemcachedServerSt_read_buffer_length_set, -1);
12837
- rb_define_method(cMemcachedServerSt.klass, "read_buffer_length", _wrap_MemcachedServerSt_read_buffer_length_get, -1);
12838
- rb_define_method(cMemcachedServerSt.klass, "read_data_length=", _wrap_MemcachedServerSt_read_data_length_set, -1);
12839
- rb_define_method(cMemcachedServerSt.klass, "read_data_length", _wrap_MemcachedServerSt_read_data_length_get, -1);
12840
- rb_define_method(cMemcachedServerSt.klass, "write_buffer_offset=", _wrap_MemcachedServerSt_write_buffer_offset_set, -1);
12841
- rb_define_method(cMemcachedServerSt.klass, "write_buffer_offset", _wrap_MemcachedServerSt_write_buffer_offset_get, -1);
12842
- rb_define_method(cMemcachedServerSt.klass, "address_info=", _wrap_MemcachedServerSt_address_info_set, -1);
12843
- rb_define_method(cMemcachedServerSt.klass, "address_info", _wrap_MemcachedServerSt_address_info_get, -1);
12844
- rb_define_method(cMemcachedServerSt.klass, "next_retry=", _wrap_MemcachedServerSt_next_retry_set, -1);
12845
- rb_define_method(cMemcachedServerSt.klass, "next_retry", _wrap_MemcachedServerSt_next_retry_get, -1);
12846
- rb_define_method(cMemcachedServerSt.klass, "root=", _wrap_MemcachedServerSt_root_set, -1);
12847
- rb_define_method(cMemcachedServerSt.klass, "root", _wrap_MemcachedServerSt_root_get, -1);
12848
- rb_define_method(cMemcachedServerSt.klass, "limit_maxbytes=", _wrap_MemcachedServerSt_limit_maxbytes_set, -1);
12849
- rb_define_method(cMemcachedServerSt.klass, "limit_maxbytes", _wrap_MemcachedServerSt_limit_maxbytes_get, -1);
12850
- rb_define_method(cMemcachedServerSt.klass, "read_buffer=", _wrap_MemcachedServerSt_read_buffer_set, -1);
12851
- rb_define_method(cMemcachedServerSt.klass, "read_buffer", _wrap_MemcachedServerSt_read_buffer_get, -1);
12852
- rb_define_method(cMemcachedServerSt.klass, "write_buffer=", _wrap_MemcachedServerSt_write_buffer_set, -1);
12853
- rb_define_method(cMemcachedServerSt.klass, "write_buffer", _wrap_MemcachedServerSt_write_buffer_get, -1);
12854
- rb_define_method(cMemcachedServerSt.klass, "hostname=", _wrap_MemcachedServerSt_hostname_set, -1);
12855
- rb_define_method(cMemcachedServerSt.klass, "hostname", _wrap_MemcachedServerSt_hostname_get, -1);
12856
- cMemcachedServerSt.mark = 0;
12857
- cMemcachedServerSt.destroy = (void (*)(void *)) memcached_server_free;
12858
- cMemcachedServerSt.trackObjects = 0;
13012
+ SwigClassMemcachedServerSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedServerSt", rb_cObject);
13013
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_server_st, (void *) &SwigClassMemcachedServerSt);
13014
+ rb_define_alloc_func(SwigClassMemcachedServerSt.klass, _wrap_MemcachedServerSt_allocate);
13015
+ rb_define_method(SwigClassMemcachedServerSt.klass, "initialize", _wrap_new_MemcachedServerSt, -1);
13016
+ rb_define_method(SwigClassMemcachedServerSt.klass, "is_allocated=", _wrap_MemcachedServerSt_is_allocated_set, -1);
13017
+ rb_define_method(SwigClassMemcachedServerSt.klass, "is_allocated", _wrap_MemcachedServerSt_is_allocated_get, -1);
13018
+ rb_define_method(SwigClassMemcachedServerSt.klass, "sockaddr_inited=", _wrap_MemcachedServerSt_sockaddr_inited_set, -1);
13019
+ rb_define_method(SwigClassMemcachedServerSt.klass, "sockaddr_inited", _wrap_MemcachedServerSt_sockaddr_inited_get, -1);
13020
+ rb_define_method(SwigClassMemcachedServerSt.klass, "count=", _wrap_MemcachedServerSt_count_set, -1);
13021
+ rb_define_method(SwigClassMemcachedServerSt.klass, "count", _wrap_MemcachedServerSt_count_get, -1);
13022
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cursor_active=", _wrap_MemcachedServerSt_cursor_active_set, -1);
13023
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cursor_active", _wrap_MemcachedServerSt_cursor_active_get, -1);
13024
+ rb_define_method(SwigClassMemcachedServerSt.klass, "port=", _wrap_MemcachedServerSt_port_set, -1);
13025
+ rb_define_method(SwigClassMemcachedServerSt.klass, "port", _wrap_MemcachedServerSt_port_get, -1);
13026
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cached_errno=", _wrap_MemcachedServerSt_cached_errno_set, -1);
13027
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cached_errno", _wrap_MemcachedServerSt_cached_errno_get, -1);
13028
+ rb_define_method(SwigClassMemcachedServerSt.klass, "fd=", _wrap_MemcachedServerSt_fd_set, -1);
13029
+ rb_define_method(SwigClassMemcachedServerSt.klass, "fd", _wrap_MemcachedServerSt_fd_get, -1);
13030
+ rb_define_method(SwigClassMemcachedServerSt.klass, "io_bytes_sent=", _wrap_MemcachedServerSt_io_bytes_sent_set, -1);
13031
+ rb_define_method(SwigClassMemcachedServerSt.klass, "io_bytes_sent", _wrap_MemcachedServerSt_io_bytes_sent_get, -1);
13032
+ rb_define_method(SwigClassMemcachedServerSt.klass, "server_failure_counter=", _wrap_MemcachedServerSt_server_failure_counter_set, -1);
13033
+ rb_define_method(SwigClassMemcachedServerSt.klass, "server_failure_counter", _wrap_MemcachedServerSt_server_failure_counter_get, -1);
13034
+ rb_define_method(SwigClassMemcachedServerSt.klass, "weight=", _wrap_MemcachedServerSt_weight_set, -1);
13035
+ rb_define_method(SwigClassMemcachedServerSt.klass, "weight", _wrap_MemcachedServerSt_weight_get, -1);
13036
+ rb_define_method(SwigClassMemcachedServerSt.klass, "major_version=", _wrap_MemcachedServerSt_major_version_set, -1);
13037
+ rb_define_method(SwigClassMemcachedServerSt.klass, "major_version", _wrap_MemcachedServerSt_major_version_get, -1);
13038
+ rb_define_method(SwigClassMemcachedServerSt.klass, "micro_version=", _wrap_MemcachedServerSt_micro_version_set, -1);
13039
+ rb_define_method(SwigClassMemcachedServerSt.klass, "micro_version", _wrap_MemcachedServerSt_micro_version_get, -1);
13040
+ rb_define_method(SwigClassMemcachedServerSt.klass, "minor_version=", _wrap_MemcachedServerSt_minor_version_set, -1);
13041
+ rb_define_method(SwigClassMemcachedServerSt.klass, "minor_version", _wrap_MemcachedServerSt_minor_version_get, -1);
13042
+ rb_define_method(SwigClassMemcachedServerSt.klass, "type=", _wrap_MemcachedServerSt_type_set, -1);
13043
+ rb_define_method(SwigClassMemcachedServerSt.klass, "type", _wrap_MemcachedServerSt_type_get, -1);
13044
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_ptr=", _wrap_MemcachedServerSt_read_ptr_set, -1);
13045
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_ptr", _wrap_MemcachedServerSt_read_ptr_get, -1);
13046
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cached_server_error=", _wrap_MemcachedServerSt_cached_server_error_set, -1);
13047
+ rb_define_method(SwigClassMemcachedServerSt.klass, "cached_server_error", _wrap_MemcachedServerSt_cached_server_error_get, -1);
13048
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer_length=", _wrap_MemcachedServerSt_read_buffer_length_set, -1);
13049
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer_length", _wrap_MemcachedServerSt_read_buffer_length_get, -1);
13050
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_data_length=", _wrap_MemcachedServerSt_read_data_length_set, -1);
13051
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_data_length", _wrap_MemcachedServerSt_read_data_length_get, -1);
13052
+ rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer_offset=", _wrap_MemcachedServerSt_write_buffer_offset_set, -1);
13053
+ rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer_offset", _wrap_MemcachedServerSt_write_buffer_offset_get, -1);
13054
+ rb_define_method(SwigClassMemcachedServerSt.klass, "address_info=", _wrap_MemcachedServerSt_address_info_set, -1);
13055
+ rb_define_method(SwigClassMemcachedServerSt.klass, "address_info", _wrap_MemcachedServerSt_address_info_get, -1);
13056
+ rb_define_method(SwigClassMemcachedServerSt.klass, "next_retry=", _wrap_MemcachedServerSt_next_retry_set, -1);
13057
+ rb_define_method(SwigClassMemcachedServerSt.klass, "next_retry", _wrap_MemcachedServerSt_next_retry_get, -1);
13058
+ rb_define_method(SwigClassMemcachedServerSt.klass, "root=", _wrap_MemcachedServerSt_root_set, -1);
13059
+ rb_define_method(SwigClassMemcachedServerSt.klass, "root", _wrap_MemcachedServerSt_root_get, -1);
13060
+ rb_define_method(SwigClassMemcachedServerSt.klass, "limit_maxbytes=", _wrap_MemcachedServerSt_limit_maxbytes_set, -1);
13061
+ rb_define_method(SwigClassMemcachedServerSt.klass, "limit_maxbytes", _wrap_MemcachedServerSt_limit_maxbytes_get, -1);
13062
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer=", _wrap_MemcachedServerSt_read_buffer_set, -1);
13063
+ rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer", _wrap_MemcachedServerSt_read_buffer_get, -1);
13064
+ rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer=", _wrap_MemcachedServerSt_write_buffer_set, -1);
13065
+ rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer", _wrap_MemcachedServerSt_write_buffer_get, -1);
13066
+ rb_define_method(SwigClassMemcachedServerSt.klass, "hostname=", _wrap_MemcachedServerSt_hostname_set, -1);
13067
+ rb_define_method(SwigClassMemcachedServerSt.klass, "hostname", _wrap_MemcachedServerSt_hostname_get, -1);
13068
+ SwigClassMemcachedServerSt.mark = 0;
13069
+ SwigClassMemcachedServerSt.destroy = (void (*)(void *)) memcached_server_free;
13070
+ SwigClassMemcachedServerSt.trackObjects = 0;
12859
13071
  rb_define_module_function(mRlibmemcached, "memcached_server_cursor", _wrap_memcached_server_cursor, -1);
12860
13072
  rb_define_module_function(mRlibmemcached, "memcached_server_by_key", _wrap_memcached_server_by_key, -1);
12861
13073
  rb_define_module_function(mRlibmemcached, "memcached_server_error", _wrap_memcached_server_error, -1);
@@ -394,8 +394,8 @@ Please note that when pipelining is enabled, setter and deleter methods do not r
394
394
  check_return_code(ret, key)
395
395
 
396
396
  value = case value
397
- when /^\d+\.\d+$/: value.to_f
398
- when /^\d+$/: value.to_i
397
+ when /^\d+\.\d+$/ then value.to_f
398
+ when /^\d+$/ then value.to_i
399
399
  else value
400
400
  end
401
401
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{memcached}
5
- s.version = "0.17"
5
+ s.version = "0.17.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{2009-09-21}
10
+ s.date = %q{2009-09-22}
11
11
  s.description = %q{An interface to the libmemcached C client.}
12
12
  s.email = %q{}
13
13
  s.extensions = ["ext/extconf.rb"]
@@ -98,7 +98,7 @@ class MemcachedTest < Test::Unit::TestCase
98
98
  end
99
99
 
100
100
  def test_options_are_frozen
101
- assert_raise(TypeError) do
101
+ assert_raise(TypeError, RuntimeError) do
102
102
  @cache.options[:no_block] = true
103
103
  end
104
104
  end
@@ -995,7 +995,7 @@ class MemcachedTest < Test::Unit::TestCase
995
995
  private
996
996
 
997
997
  def key
998
- caller.first[/`(.*)'/, 1] # '
998
+ caller.first[/.*[` ](.*)'/, 1] # '
999
999
  end
1000
1000
 
1001
1001
  def stub_server(port)
@@ -96,7 +96,7 @@ class RailsTest < Test::Unit::TestCase
96
96
  private
97
97
 
98
98
  def key
99
- caller.first[/`(.*)'/, 1]
99
+ caller.first[/.*[` ](.*)'/, 1] # '
100
100
  end
101
101
 
102
102
  end
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: "0.17"
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Weaver
@@ -30,7 +30,7 @@ cert_chain:
30
30
  yZ0=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-09-21 00:00:00 -07:00
33
+ date: 2009-09-22 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies: []
36
36
 
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ����4ɫ��A;�����h�W,2 ��)�W�k� Q��-�����̨] zA9:f$��O H�̛.�3
1
+ հ�?����,�ڳ]hM_w��-a~Ќ��2�W�":�F��F2ۼЄ�[s*(�ɝ�E5Y(�H�zq�z���MBAfA �)ZDq<�S �Dwu��GbrYn����Ϣ\�||ppUw�<z�V���}{�Z�-��v���9��Z�f0@�/���b"k�zW��~��e
2
+ ȮQR��^�p��(w���O?fB����V����!�c䖀���p����cZ��8�� Q:SK��!���,#a�����nh�