memcached 0.15.3 → 0.16
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/CHANGELOG +2 -0
- data/ext/extconf.rb +29 -5
- data/memcached.gemspec +4 -5
- metadata +6 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/ext/extconf.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
require 'mkmf'
|
3
2
|
|
4
3
|
HERE = File.expand_path(File.dirname(__FILE__))
|
@@ -7,6 +6,17 @@ BUNDLE_PATH = BUNDLE.sub(".tar.gz", "")
|
|
7
6
|
|
8
7
|
DARWIN = `uname -sp` == "Darwin i386\n"
|
9
8
|
|
9
|
+
# is there a better way to do this?
|
10
|
+
if ENV['ARCHFLAGS']
|
11
|
+
archflags = ENV['ARCHFLAGS']
|
12
|
+
elsif Config::CONFIG['host_os'] == 'darwin10.0'
|
13
|
+
archflags = "-arch i386 -arch x86_64"
|
14
|
+
elsif Config::CONFIG['host_os'] =~ /darwin/
|
15
|
+
archflags = "-arch i386 -arch ppc"
|
16
|
+
else
|
17
|
+
archflags = ''
|
18
|
+
end
|
19
|
+
|
10
20
|
if !ENV["EXTERNAL_LIB"]
|
11
21
|
$includes = " -I#{HERE}/include"
|
12
22
|
$libraries = " -L#{HERE}/lib"
|
@@ -27,9 +37,23 @@ if !ENV["EXTERNAL_LIB"]
|
|
27
37
|
raise "'#{cmd}' failed" unless system(cmd)
|
28
38
|
|
29
39
|
Dir.chdir(BUNDLE_PATH) do
|
30
|
-
|
40
|
+
|
41
|
+
cflags = "-fPIC"
|
42
|
+
cxxflags = cflags
|
43
|
+
ldflags = "-fPIC"
|
44
|
+
extraconf = ''
|
45
|
+
|
46
|
+
# again... is there a better way to do this?
|
47
|
+
if DARWIN
|
48
|
+
cflags = "#{cflags} #{archflags}"
|
49
|
+
cxxflags = "-std=gnu++98 #{cflags}"
|
50
|
+
ldflags = "#{ldflags} #{archflags}"
|
51
|
+
extraconf = '--enable-dtrace --disable-dependency-tracking'
|
52
|
+
end
|
53
|
+
|
54
|
+
puts(cmd = "env CFLAGS='#{cflags}' LDFLAGS='#{ldflags}' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils #{extraconf} 2>&1")
|
31
55
|
raise "'#{cmd}' failed" unless system(cmd)
|
32
|
-
puts(cmd = "make || true 2>&1")
|
56
|
+
puts(cmd = "make CXXFLAGS='#{cxxflags}' || true 2>&1")
|
33
57
|
raise "'#{cmd}' failed" unless system(cmd)
|
34
58
|
puts(cmd = "make install || true 2>&1")
|
35
59
|
raise "'#{cmd}' failed" unless system(cmd)
|
@@ -48,9 +72,9 @@ end
|
|
48
72
|
|
49
73
|
if DARWIN
|
50
74
|
$CFLAGS.gsub! /-arch \S+/, ''
|
51
|
-
$CFLAGS << "
|
75
|
+
$CFLAGS << " #{archflags}"
|
52
76
|
$LDFLAGS.gsub! /-arch \S+/, ''
|
53
|
-
$LDFLAGS << "
|
77
|
+
$LDFLAGS << " #{archflags}"
|
54
78
|
end
|
55
79
|
|
56
80
|
if ENV['SWIG']
|
data/memcached.gemspec
CHANGED
@@ -2,30 +2,29 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{memcached}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.16"
|
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-08-
|
10
|
+
s.date = %q{2009-08-30}
|
11
11
|
s.description = %q{An interface to the libmemcached C client.}
|
12
12
|
s.email = %q{}
|
13
13
|
s.extensions = ["ext/extconf.rb"]
|
14
14
|
s.extra_rdoc_files = ["BENCHMARKS", "CHANGELOG", "COMPATIBILITY", "lib/memcached/behaviors.rb", "lib/memcached/exceptions.rb", "lib/memcached/memcached.rb", "lib/memcached/rails.rb", "lib/memcached.rb", "LICENSE", "README", "TODO"]
|
15
15
|
s.files = ["BENCHMARKS", "CHANGELOG", "COMPATIBILITY", "ext/extconf.rb", "ext/libmemcached-0.31.tar.gz", "ext/rlibmemcached.i", "ext/rlibmemcached_wrap.c", "lib/memcached/behaviors.rb", "lib/memcached/exceptions.rb", "lib/memcached/integer.rb", "lib/memcached/memcached.rb", "lib/memcached/rails.rb", "lib/memcached.rb", "LICENSE", "Manifest", "Rakefile", "README", "test/profile/benchmark.rb", "test/profile/profile.rb", "test/profile/valgrind.rb", "test/setup.rb", "test/teardown.rb", "test/test_helper.rb", "test/unit/binding_test.rb", "test/unit/memcached_test.rb", "test/unit/rails_test.rb", "TODO", "memcached.gemspec"]
|
16
|
-
s.has_rdoc = true
|
17
16
|
s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/memcached/}
|
18
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Memcached", "--main", "README"]
|
19
18
|
s.require_paths = ["lib", "ext"]
|
20
19
|
s.rubyforge_project = %q{fauna}
|
21
|
-
s.rubygems_version = %q{1.3.
|
20
|
+
s.rubygems_version = %q{1.3.4}
|
22
21
|
s.signing_key = %q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-private_key.pem}
|
23
22
|
s.summary = %q{An interface to the libmemcached C client.}
|
24
23
|
s.test_files = ["test/test_helper.rb", "test/unit/binding_test.rb", "test/unit/memcached_test.rb", "test/unit/rails_test.rb"]
|
25
24
|
|
26
25
|
if s.respond_to? :specification_version then
|
27
26
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
28
|
-
s.specification_version =
|
27
|
+
s.specification_version = 3
|
29
28
|
|
30
29
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
31
30
|
else
|
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.
|
4
|
+
version: "0.16"
|
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-08-
|
33
|
+
date: 2009-08-30 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies: []
|
36
36
|
|
@@ -83,6 +83,8 @@ files:
|
|
83
83
|
- memcached.gemspec
|
84
84
|
has_rdoc: true
|
85
85
|
homepage: http://blog.evanweaver.com/files/doc/fauna/memcached/
|
86
|
+
licenses: []
|
87
|
+
|
86
88
|
post_install_message:
|
87
89
|
rdoc_options:
|
88
90
|
- --line-numbers
|
@@ -109,9 +111,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
111
|
requirements: []
|
110
112
|
|
111
113
|
rubyforge_project: fauna
|
112
|
-
rubygems_version: 1.3.
|
114
|
+
rubygems_version: 1.3.4
|
113
115
|
signing_key:
|
114
|
-
specification_version:
|
116
|
+
specification_version: 3
|
115
117
|
summary: An interface to the libmemcached C client.
|
116
118
|
test_files:
|
117
119
|
- test/test_helper.rb
|
metadata.gz.sig
CHANGED
Binary file
|