memcache 1.4.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f02c49ea55fe9060cfc3f1172a534b1762a22866
4
- data.tar.gz: e80caf4954133d23dab692cc6e85f4a109657748
3
+ metadata.gz: 64e93a0909f6ab28e666762ba98e0da2e816e0ed
4
+ data.tar.gz: f2a3ebfe903b525c2589769d8e64d82e6655bdd3
5
5
  SHA512:
6
- metadata.gz: 7d0e099f3da6620c0aeaa84d8d361a6d4346dc78d2180a37e3b3e8c0d7abaef73fe6fdb9616f2eed3ef279f0897bcaeabcd5bfb25cc1493cd9c62e8a0b5b7f0f
7
- data.tar.gz: 016f2c14b686a4b11529ffbaa35a0009ed59d6f74767b256ed1839cbc3f5517e525c70b9fd0581ad9dbbf558f682e0f3bb9ab47713b59925d76bf63caed5464d
6
+ metadata.gz: f9bffbfcb0542127a9d7d068460266ccf2d680f40a0bab5eb41a8109010ca522eb1bda82632d219242c7e73de5feb982117e7fca7ccd27ab545669f46c69716c
7
+ data.tar.gz: fe8b4cceaf29f9b09b52a15ff6c6419cc0cbcd60c8c3fe9a87a80b841769a7821b956a29bf94e4efd928961bfbb921d1f2baf1e80be91793c1b475324002936d
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ end
10
10
  task :test => 'lib/memcache/native_server.o'
11
11
 
12
12
  file 'lib/memcache/native_server.o' do
13
- `cd ext && ruby extconf.rb && make && cp native_server.bundle native_server.o ../lib/memcache/`
13
+ `cd ext && ruby extconf.rb && make && cp native_server.bundle native_server.o native_server.so ../lib/memcache/`
14
14
  end
15
15
 
16
16
  task :default => :test
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
1
+ 1.5.0
@@ -8,13 +8,13 @@ HERE = File.expand_path(File.dirname(__FILE__))
8
8
  BUNDLE = Dir.glob("libmemcached-*.tar.gz").first
9
9
  BUNDLE_PATH = BUNDLE.sub(".tar.gz", "")
10
10
 
11
- $CXXFLAGS = " -std=gnu++98"
11
+ $CXXFLAGS = " -std=gnu++98 -fPIC"
12
12
 
13
13
  if !ENV["EXTERNAL_LIB"]
14
14
  $includes = " -I#{HERE}/include"
15
15
  $libraries = " -L#{HERE}/lib"
16
- $CFLAGS = "#{$includes} #{$libraries} #{$CFLAGS}"
17
- $LDFLAGS = "#{$libraries} #{$LDFLAGS}"
16
+ $CFLAGS = "#{$includes} #{$libraries} #{ENV['CFLAGS']}"
17
+ $LDFLAGS = "#{$libraries} #{ENV['LDFLAGS']}"
18
18
  $LIBPATH = ["#{HERE}/lib"]
19
19
  $DEFLIBPATH = []
20
20
 
@@ -27,13 +27,13 @@ if !ENV["EXTERNAL_LIB"]
27
27
  raise "'#{cmd}' failed" unless system(cmd)
28
28
 
29
29
  Dir.chdir(BUNDLE_PATH) do
30
- puts(cmd = "env CFLAGS='-fPIC' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils --disable-dependency-tracking #{ARGV.join(' ')} 2>&1")
30
+ puts(cmd = "./configure --prefix=#{HERE} --without-memcached --disable-dependency-tracking #{ARGV.join(' ')} 2>&1")
31
31
  raise "'#{cmd}' failed" unless system(cmd)
32
32
 
33
- puts(cmd = "make CXXFLAGS='#{$CXXFLAGS}' || true 2>&1")
33
+ puts(cmd = "make CXXFLAGS='#{$CXXFLAGS}' 2>&1")
34
34
  raise "'#{cmd}' failed" unless system(cmd)
35
35
 
36
- puts(cmd = "make install || true 2>&1")
36
+ puts(cmd = "make install 2>&1")
37
37
  raise "'#{cmd}' failed" unless system(cmd)
38
38
  end
39
39
 
@@ -46,13 +46,11 @@ if !ENV["EXTERNAL_LIB"]
46
46
  # fix linking issue under solaris
47
47
  # https://github.com/ninjudd/memcache/issues/5
48
48
  Dir.chdir("#{HERE}/lib/amd64") do
49
- system('cp -f libmemcached.a ../libmemcached_gem.a')
50
- system('cp -f libmemcached.la ../libmemcached_gem.la')
49
+ system('cp -f libmemcached.so ../libmemcached_gem.so')
51
50
  end
52
51
  else
53
52
  Dir.chdir("#{HERE}/lib") do
54
- system('cp -f libmemcached.a libmemcached_gem.a')
55
- system('cp -f libmemcached.la libmemcached_gem.la')
53
+ system('cp -f libmemcached.so libmemcached_gem.so')
56
54
  end
57
55
  end
58
56
 
@@ -15,6 +15,8 @@ class Memcache
15
15
  @port = opts[:port] || DEFAULT_PORT
16
16
  @strict_reads = opts[:strict_reads]
17
17
  @status = 'NOT CONNECTED'
18
+ @retry_at = nil
19
+ @socket = nil
18
20
  end
19
21
 
20
22
  def clone
@@ -20,7 +20,7 @@ class MemcacheNativeServerTest < Test::Unit::TestCase
20
20
  e = assert_raise(Memcache::Error) do
21
21
  m.set('foo', 'foo')
22
22
  end
23
- assert_match 'SYSTEM ERROR', e.message
23
+ assert_match 'SERVER HAS FAILED', e.message
24
24
  end
25
25
 
26
26
  def test_close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Balthrop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-22 00:00:00.000000000 Z
11
+ date: 2013-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -100,7 +100,7 @@ files:
100
100
  - bench/benchmark.rb
101
101
  - ext/LICENSE_AFL3
102
102
  - ext/extconf.rb
103
- - ext/libmemcached-0.51.tar.gz
103
+ - ext/libmemcached-1.0.16.tar.gz
104
104
  - ext/native_server.c
105
105
  - lib/memcache.rb
106
106
  - lib/memcache/base.rb
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.0.3
145
+ rubygems_version: 2.0.5
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Ruby client for memcached supporting advanced protocol features and pluggable
Binary file