couchbase 1.3.14-x64-mingw32 → 1.3.15-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/couchbase.gemspec +1 -1
- data/ext/couchbase_ext/arguments.c +1 -0
- data/ext/couchbase_ext/couchbase_ext.h +13 -11
- data/ext/couchbase_ext/extconf.rb +1 -1
- data/lib/couchbase/version.rb +1 -1
- data/tasks/compile.rake +11 -14
- metadata +12 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a991aeb77907053033f4b2d1842d618cc96e846
|
4
|
+
data.tar.gz: 413a166d2607330aa1289062ca3ae980033bb7f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a2d707555dc5d4b55fbbffcd263a32ed0f91fd66f1b9f0055423010c6c227e4dfa45e43f67fdfcabe812a55529f0e1dab550a39240b5e774ad74c4825778eb0
|
7
|
+
data.tar.gz: 3657d48429735c0449150e753de387e634a571ceb2f494a2f6ba77150f67cb26ecfd7013969a300e921cce7d7a573641a6487e9ca88c7dd0480eb23a107cd1c2
|
data/couchbase.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.version = Couchbase::VERSION
|
25
25
|
s.author = 'Couchbase'
|
26
26
|
s.email = 'support@couchbase.com'
|
27
|
-
s.license = '
|
27
|
+
s.license = 'Apache-2.0'
|
28
28
|
s.homepage = 'http://couchbase.org'
|
29
29
|
s.summary = %q{Couchbase ruby driver}
|
30
30
|
s.description = %q{The official client library for use with Couchbase Server.}
|
@@ -17,26 +17,28 @@
|
|
17
17
|
#ifndef COUCHBASE_EXT_H
|
18
18
|
#define COUCHBASE_EXT_H
|
19
19
|
|
20
|
+
#include "couchbase_config.h"
|
21
|
+
|
22
|
+
#if defined(_WIN32) && defined(__cplusplus)
|
23
|
+
#define __STDC_LIMIT_MACROS
|
24
|
+
#include <cstdint>
|
25
|
+
#endif
|
26
|
+
#ifdef HAVE_STDINT_H
|
27
|
+
#include <stdint.h>
|
28
|
+
#endif
|
29
|
+
|
20
30
|
#include <ruby.h>
|
21
31
|
#ifndef RUBY_ST_H
|
22
32
|
#include <st.h>
|
23
33
|
#endif
|
24
34
|
|
25
|
-
#ifdef HAVE_RUBY_THREAD_H
|
26
|
-
#include <ruby/thread.h>
|
27
|
-
#endif
|
28
|
-
|
29
|
-
#include "couchbase_config.h"
|
30
35
|
#if defined(HAVE_RB_FIBER_YIELD) && !defined(_WIN32)
|
31
36
|
#define BUILD_EVENTMACHINE_PLUGIN
|
32
37
|
#endif
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#include <cstdint>
|
36
|
-
#endif
|
37
|
-
#ifdef HAVE_STDINT_H
|
38
|
-
#include <stdint.h>
|
38
|
+
#ifdef HAVE_RUBY_THREAD_H
|
39
|
+
#include <ruby/thread.h>
|
39
40
|
#endif
|
41
|
+
|
40
42
|
#ifndef HAVE_GETHRTIME
|
41
43
|
typedef uint64_t hrtime_t;
|
42
44
|
extern hrtime_t gethrtime(void);
|
@@ -172,7 +172,7 @@ end
|
|
172
172
|
have_library('couchbase', 'lcb_iops_wire_bsd_impl2(NULL, 0)', 'libcouchbase/couchbase.h') || die(install_notice)
|
173
173
|
have_header('mach/mach_time.h')
|
174
174
|
have_header('stdint.h') || die('Failed to locate stdint.h')
|
175
|
-
have_header('sys/time.h')
|
175
|
+
have_header('sys/time.h') unless RbConfig::CONFIG['target_os'] =~ /mingw32/
|
176
176
|
have_header('fcntl.h')
|
177
177
|
have_header('sys/socket.h')
|
178
178
|
have_header('errno.h')
|
data/lib/couchbase/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
@@ -22,7 +22,7 @@ def gemspec
|
|
22
22
|
@clean_gemspec ||= eval(File.read(File.expand_path('../../couchbase.gemspec', __FILE__)))
|
23
23
|
end
|
24
24
|
|
25
|
-
version_router =
|
25
|
+
version_router = proc do |t|
|
26
26
|
File.open(t.name, 'wb') do |f|
|
27
27
|
f.write <<-RUBY
|
28
28
|
require "couchbase/\#{RUBY_VERSION.sub(/\\.\\d+$/, '')}/couchbase_ext"
|
@@ -54,11 +54,10 @@ class Platform
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
recent = '2.0.0-p353'
|
58
57
|
CROSS_PLATFORMS = [
|
59
|
-
Platform.new(:
|
60
|
-
Platform.new(:
|
61
|
-
]
|
58
|
+
Platform.new(name: 'x64-mingw32', host: 'x86_64-w64-mingw32', versions: %w(2.4.0 2.3.0 2.2.2 2.1.6 2.0.0-p645)),
|
59
|
+
Platform.new(name: 'x86-mingw32', host: 'i686-w64-mingw32', versions: %w(2.4.0 2.3.0 2.2.2 2.1.6 2.0.0-p645))
|
60
|
+
].freeze
|
62
61
|
|
63
62
|
# Setup compile tasks. Configuration can be passed via ENV.
|
64
63
|
# Example:
|
@@ -72,13 +71,11 @@ CROSS_PLATFORMS = [
|
|
72
71
|
Rake::ExtensionTask.new('couchbase_ext', gemspec) do |ext|
|
73
72
|
ext.cross_compile = true
|
74
73
|
ext.cross_platform = ENV['TARGET']
|
75
|
-
if ENV['RUBY_CC_VERSION']
|
76
|
-
ext.lib_dir = 'lib/couchbase'
|
77
|
-
end
|
74
|
+
ext.lib_dir = 'lib/couchbase' if ENV['RUBY_CC_VERSION']
|
78
75
|
ext.cross_compiling do |spec|
|
79
76
|
spec.files.delete('lib/couchbase/couchbase_ext.so')
|
80
|
-
spec.files.push('lib/couchbase_ext.rb'
|
81
|
-
spec.files.push(Dir['lib/couchbase/*/couchbase_ext.so'])
|
77
|
+
spec.files.push('lib/couchbase_ext.rb')
|
78
|
+
spec.files.push(*Dir['lib/couchbase/*/couchbase_ext.so'])
|
82
79
|
file "#{ext.tmp_dir}/#{ext.cross_platform}/stage/lib/couchbase_ext.rb", &version_router
|
83
80
|
end
|
84
81
|
|
@@ -104,7 +101,7 @@ require 'mini_portile'
|
|
104
101
|
require 'rake/extensioncompiler'
|
105
102
|
|
106
103
|
class MiniPortile
|
107
|
-
|
104
|
+
alias cook_without_checkpoint cook
|
108
105
|
def cook
|
109
106
|
checkpoint = "ports/.#{name}-#{version}-#{host}.installed"
|
110
107
|
return if File.exist?(checkpoint)
|
@@ -137,7 +134,7 @@ task 'package:windows' => ['package', 'lib/couchbase_ext.rb'] do
|
|
137
134
|
ENV['TARGET'] = platform.name
|
138
135
|
rm_rf('tmp/ ports/')
|
139
136
|
mkdir_p('ports')
|
140
|
-
recipe = MiniPortile.new('libcouchbase', '2.
|
137
|
+
recipe = MiniPortile.new('libcouchbase', '2.7.0')
|
141
138
|
recipe.host = platform.host
|
142
139
|
recipe.files << "http://packages.couchbase.com/clients/c/libcouchbase-#{recipe.version}.tar.gz"
|
143
140
|
recipe.configure_options.push('--disable-cxx',
|
@@ -146,11 +143,11 @@ task 'package:windows' => ['package', 'lib/couchbase_ext.rb'] do
|
|
146
143
|
recipe.cook
|
147
144
|
recipe.activate
|
148
145
|
platform.each_version do |long, short|
|
149
|
-
sh("env RUBY_CC_VERSION=#{short}
|
146
|
+
sh("env RUBY_CC_VERSION=#{short} rake cross compile")
|
150
147
|
end
|
151
148
|
vars.each do |k, v|
|
152
149
|
ENV[k] = v
|
153
150
|
end
|
154
|
-
sh("env RUBY_CC_VERSION=#{platform.short_versions.join(':')}
|
151
|
+
sh("env RUBY_CC_VERSION=#{platform.short_versions.join(':')} rake cross native gem")
|
155
152
|
end
|
156
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.15
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Couchbase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yaji
|
@@ -257,9 +257,11 @@ files:
|
|
257
257
|
- lib/action_dispatch/middleware/session/couchbase_store.rb
|
258
258
|
- lib/active_support/cache/couchbase_store.rb
|
259
259
|
- lib/couchbase.rb
|
260
|
-
- lib/couchbase/1.9/couchbase_ext.so
|
261
260
|
- lib/couchbase/2.0/couchbase_ext.so
|
262
261
|
- lib/couchbase/2.1/couchbase_ext.so
|
262
|
+
- lib/couchbase/2.2/couchbase_ext.so
|
263
|
+
- lib/couchbase/2.3/couchbase_ext.so
|
264
|
+
- lib/couchbase/2.4/couchbase_ext.so
|
263
265
|
- lib/couchbase/bucket.rb
|
264
266
|
- lib/couchbase/cluster.rb
|
265
267
|
- lib/couchbase/connection_pool.rb
|
@@ -303,7 +305,7 @@ files:
|
|
303
305
|
- test/test_version.rb
|
304
306
|
homepage: http://couchbase.org
|
305
307
|
licenses:
|
306
|
-
-
|
308
|
+
- Apache-2.0
|
307
309
|
metadata: {}
|
308
310
|
post_install_message:
|
309
311
|
rdoc_options: []
|
@@ -313,7 +315,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
313
315
|
requirements:
|
314
316
|
- - ">="
|
315
317
|
- !ruby/object:Gem::Version
|
316
|
-
version: '0'
|
318
|
+
version: '2.0'
|
319
|
+
- - "<"
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: '2.5'
|
317
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
323
|
requirements:
|
319
324
|
- - ">="
|
@@ -321,31 +326,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
326
|
version: '0'
|
322
327
|
requirements: []
|
323
328
|
rubyforge_project:
|
324
|
-
rubygems_version: 2.
|
329
|
+
rubygems_version: 2.6.8
|
325
330
|
signing_key:
|
326
331
|
specification_version: 4
|
327
332
|
summary: Couchbase ruby driver
|
328
|
-
test_files:
|
329
|
-
- test/profile/.gitignore
|
330
|
-
- test/profile/Gemfile
|
331
|
-
- test/profile/benchmark.rb
|
332
|
-
- test/setup.rb
|
333
|
-
- test/test_arithmetic.rb
|
334
|
-
- test/test_async.rb
|
335
|
-
- test/test_bucket.rb
|
336
|
-
- test/test_cas.rb
|
337
|
-
- test/test_couchbase.rb
|
338
|
-
- test/test_couchbase_connection_pool.rb
|
339
|
-
- test/test_couchbase_rails_cache_store.rb
|
340
|
-
- test/test_delete.rb
|
341
|
-
- test/test_errors.rb
|
342
|
-
- test/test_eventmachine.rb
|
343
|
-
- test/test_format.rb
|
344
|
-
- test/test_get.rb
|
345
|
-
- test/test_stats.rb
|
346
|
-
- test/test_store.rb
|
347
|
-
- test/test_timer.rb
|
348
|
-
- test/test_touch.rb
|
349
|
-
- test/test_unlock.rb
|
350
|
-
- test/test_utils.rb
|
351
|
-
- test/test_version.rb
|
333
|
+
test_files: []
|