memcache 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
3
  :minor: 2
4
- :patch: 6
4
+ :patch: 7
5
5
  :major: 1
data/ext/native_server.c CHANGED
@@ -48,7 +48,6 @@ static VALUE mc_alloc(VALUE klass) {
48
48
 
49
49
  static VALUE throw_error(memcached_return_t *error) {
50
50
  memcached_st *mc;
51
- printf("ERROR: %s\n", memcached_strerror(mc, *error));
52
51
  switch(*error) {
53
52
  case MEMCACHED_SERVER_ERROR: rb_raise(cMemcacheServerError, "Server error");
54
53
  case MEMCACHED_CLIENT_ERROR: rb_raise(cMemcacheClientError, "Client error");
@@ -57,7 +56,7 @@ static VALUE throw_error(memcached_return_t *error) {
57
56
  case MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE:
58
57
  rb_raise(cMemcacheConnectionError, "Connection error");
59
58
  default:
60
- rb_raise(cMemcacheError, "Memcache error");
59
+ rb_raise(cMemcacheError, "Memcache error: %s", memcached_strerror(mc, *error));
61
60
  }
62
61
  return Qnil;
63
62
  }
data/memcache.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{memcache}
8
- s.version = "1.2.6"
8
+ s.version = "1.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Balthrop"]
12
- s.date = %q{2010-03-19}
12
+ s.date = %q{2010-03-23}
13
13
  s.description = %q{Ruby client for memcached supporting advanced protocol features and pluggable architecture.}
14
14
  s.email = %q{code@justinbalthrop.com}
15
15
  s.extensions = ["ext/extconf.rb"]
@@ -17,9 +17,11 @@ class MemcacheNativeServerTest < Test::Unit::TestCase
17
17
  m = Memcache::NativeServer.new(:servers => ["localhost:9998"])
18
18
 
19
19
  assert_equal nil, m.get('foo')
20
- assert_raise(Memcache::Error) do
20
+
21
+ e = assert_raise(Memcache::Error) do
21
22
  m.set('foo', 'foo')
22
23
  end
24
+ assert_match 'SYSTEM ERROR', e.message
23
25
  end
24
26
 
25
27
  def test_close
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.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Balthrop
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-19 00:00:00 -07:00
12
+ date: 2010-03-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15