couchbase 1.3.14-x86-mingw32 → 1.3.15-x86-mingw32

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: 5d30afb95ed40c595f302204969fefbe6d01d1da
4
- data.tar.gz: 653f63e827b25d001df6a3e01e1ac0c0302ab675
3
+ metadata.gz: e7026598ae66e81e8ebd1b7dfceda7a597238733
4
+ data.tar.gz: 211f2f968d214e762b6b01bd70f0f4ea99667d22
5
5
  SHA512:
6
- metadata.gz: 5c42b5664fae4fab3e4ba1318d7bb75dd77ee44512501d44d6388dcec18a6611a2e75cd799356249682e170309000c72d34e12758d682099d1f866a0b11d1807
7
- data.tar.gz: 194a05df4372ff72257da152e82bb95e895556bc82c426cdf48893603b40597243c9cd18fa6b96f0c1593c8161e21fc160be1078ef5260b0701278e0a991580d
6
+ metadata.gz: bc183b1520f75ede12fb0267124bf0775d4b53c15552d8c1f12ebcae8376a483aa14f6c62a9660b69e2b659d51189757ea860caa83e651606e18e333ab55368e
7
+ data.tar.gz: '065128663ce3efc8fd4079c2843c919e406b3882b5a6743e7738234ecfb806572dfa1f69c840b0a3b90146af66cf6410c3f77b6907685821512d85b4441b3b7a'
@@ -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 = 'ASL-2'
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,6 +17,7 @@
17
17
 
18
18
  #include "couchbase_ext.h"
19
19
 
20
+
20
21
  #define _alloc_data_for_s(type, _type, size, items, ptr) do {\
21
22
  lcb_size_t ii; \
22
23
  \
@@ -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
- #if defined(_WIN32) && defined(__cplusplus)
34
- #define __STDC_LIMIT_MACROS
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')
@@ -17,5 +17,5 @@
17
17
 
18
18
  # Couchbase ruby client
19
19
  module Couchbase
20
- VERSION = '1.3.14'
20
+ VERSION = '1.3.15'
21
21
  end
@@ -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 = lambda do |t|
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(:name => 'x64-mingw32', :host => 'x86_64-w64-mingw32', :versions => %w(1.9.3-p484 2.0.0-p353 2.1.0)),
60
- Platform.new(:name => 'x86-mingw32', :host => 'i686-w64-mingw32', :versions => %w(1.9.3-p484 2.0.0-p353 2.1.0))
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', Dir['lib/couchbase/*/couchbase_ext.so'])
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
- alias_method :cook_without_checkpoint, :cook
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.5.3')
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} RBENV_VERSION=#{long} rbenv exec rake cross compile")
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(':')} RBENV_VERSION=#{recent} rbenv exec rake cross native gem")
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.14
4
+ version: 1.3.15
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Couchbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
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
- - ASL-2
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.3.0
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: []