memcache 1.2.1 → 1.2.2

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.
Files changed (4) hide show
  1. data/Rakefile +2 -2
  2. data/VERSION.yml +1 -1
  3. data/ext/native_server.c +1 -0
  4. metadata +1 -1
data/Rakefile CHANGED
@@ -63,8 +63,8 @@ namespace :test do
63
63
  Rake::TestTask.new(:native) do |t|
64
64
  `cd ext && make && cp native_server.bundle native_server.o ../lib/memcache/`
65
65
  t.libs << 'test'
66
- t.pattern = 'test/memcache_native_server_test.rb'
66
+ t.pattern = 'test/memcache_*native_server_test.rb'
67
67
  t.verbose
68
68
  end
69
69
  end
70
-
70
+
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
3
  :minor: 2
4
- :patch: 1
4
+ :patch: 2
5
5
  :major: 1
data/ext/native_server.c CHANGED
@@ -269,6 +269,7 @@ static VALUE mc_get(int argc, VALUE *argv, VALUE self) {
269
269
  rb_ivar_set(value, iv_memcache_flags, INT2NUM(memcached_result_flags(&result)));
270
270
  if (RTEST(cas)) rb_ivar_set(value, iv_memcache_cas, ULL2NUM(memcached_result_cas(&result)));
271
271
  memcached_result_free(&result);
272
+ memcached_result_create(mc, &result);
272
273
  rb_hash_aset(results, key, value);
273
274
  } else {
274
275
  printf("Memcache read error: %s %u\n", memcached_strerror(mc, status), status);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Balthrop