couchbase 1.3.13-x86-mingw32 → 1.3.14-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: 1a42be3450f346c5bf0ef0613e9b8761c60484b0
4
- data.tar.gz: 467db678c578fc516253e296094e47212ddf4bfe
3
+ metadata.gz: 5d30afb95ed40c595f302204969fefbe6d01d1da
4
+ data.tar.gz: 653f63e827b25d001df6a3e01e1ac0c0302ab675
5
5
  SHA512:
6
- metadata.gz: 633e432942be56849abbc72eaaebad2f6611b2a3a12be14b061bd1f2ab2262321dd8aa444c40d6572e5439969b5072ebaac14e1221e3b74c2433d957375912c9
7
- data.tar.gz: 2ce060317cdd88abd99bb682a2654d60663644e85ade45bbeb2d8738f09f81014992d3c32bbc0712967b2be75f789be2052994bc75e25ffab89c69f3067197ab
6
+ metadata.gz: 5c42b5664fae4fab3e4ba1318d7bb75dd77ee44512501d44d6388dcec18a6611a2e75cd799356249682e170309000c72d34e12758d682099d1f866a0b11d1807
7
+ data.tar.gz: 194a05df4372ff72257da152e82bb95e895556bc82c426cdf48893603b40597243c9cd18fa6b96f0c1593c8161e21fc160be1078ef5260b0701278e0a991580d
@@ -750,11 +750,9 @@ cb_bucket_quiet_get(VALUE self)
750
750
  cb_bucket_quiet_set(VALUE self, VALUE val)
751
751
  {
752
752
  struct cb_bucket_st *bucket = DATA_PTR(self);
753
- VALUE new;
754
753
 
755
754
  bucket->quiet = RTEST(val);
756
- new = bucket->quiet ? Qtrue : Qfalse;
757
- return new;
755
+ return bucket->quiet ? Qtrue : Qfalse;
758
756
  }
759
757
 
760
758
  VALUE
@@ -228,6 +228,9 @@ cb_libcouchbase_version(VALUE self)
228
228
  }
229
229
 
230
230
  /* Ruby Extension initializer */
231
+ #ifdef __cplusplus
232
+ extern "C"
233
+ #endif
231
234
  void
232
235
  Init_couchbase_ext(void)
233
236
  {
@@ -30,6 +30,10 @@
30
30
  #if defined(HAVE_RB_FIBER_YIELD) && !defined(_WIN32)
31
31
  #define BUILD_EVENTMACHINE_PLUGIN
32
32
  #endif
33
+ #if defined(_WIN32) && defined(__cplusplus)
34
+ #define __STDC_LIMIT_MACROS
35
+ #include <cstdint>
36
+ #endif
33
37
  #ifdef HAVE_STDINT_H
34
38
  #include <stdint.h>
35
39
  #endif
@@ -43,18 +43,18 @@ end
43
43
  ($LDFLAGS ||= '') << " #{ENV['LDFLAGS']}"
44
44
  ($LIBS ||= '') << " #{ENV['LIBS']}"
45
45
 
46
- $CFLAGS << ' -std=c99 -Wall -Wextra '
47
- if ENV['DEBUG']
48
- $CFLAGS << ' -O0 -ggdb3 -pedantic '
49
- else
50
- $CFLAGS << ' -O2'
51
- $LDFLAGS << ' -Wl,--strip-debug' if RbConfig::CONFIG['target_os'] =~ /mingw32/
52
- end
53
-
54
46
  if RbConfig::CONFIG['target_os'] =~ /mingw32/
55
- $LDFLAGS << ' -static-libgcc'
47
+ CONFIG['CC'] = CONFIG['CXX']
48
+ $LDFLAGS << ' -static-libgcc -static-libstdc++ -Wl,--strip-debug'
49
+ $CFLAGS << ' -fpermissive -std=c++11'
56
50
  dir_config('libcouchbase')
57
51
  else
52
+ $CFLAGS << ' -std=c99 -Wall -Wextra '
53
+ if ENV['DEBUG']
54
+ $CFLAGS << ' -O0 -ggdb3 -pedantic '
55
+ else
56
+ $CFLAGS << ' -O2'
57
+ end
58
58
  LIBDIR = RbConfig::CONFIG['libdir']
59
59
  INCLUDEDIR = RbConfig::CONFIG['includedir']
60
60
 
@@ -130,7 +130,7 @@ def die(message)
130
130
  abort
131
131
  end
132
132
 
133
- install_notice = "You must install libcouchbase >= 2.4.0\nSee http://www.couchbase.com/communities/c/ for more details"
133
+ install_notice = "You must install libcouchbase >= 2.4.5\nSee http://www.couchbase.com/communities/c/ for more details"
134
134
 
135
135
  unless try_compile(<<-SRC)
136
136
  #include <libcouchbase/couchbase.h>
@@ -558,6 +558,7 @@ ls_arg_free(void *p) {
558
558
  if (args) {
559
559
  rb_fd_term(&args->in);
560
560
  rb_fd_term(&args->out);
561
+ rb_fd_term(&args->exc);
561
562
  xfree(args);
562
563
  }
563
564
  }
@@ -17,5 +17,5 @@
17
17
 
18
18
  # Couchbase ruby client
19
19
  module Couchbase
20
- VERSION = '1.3.13'
20
+ VERSION = '1.3.14'
21
21
  end
data/tasks/compile.rake CHANGED
@@ -57,7 +57,7 @@ end
57
57
  recent = '2.0.0-p353'
58
58
  CROSS_PLATFORMS = [
59
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.8.7-p374 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
61
  ]
62
62
 
63
63
  # Setup compile tasks. Configuration can be passed via ENV.
@@ -131,13 +131,13 @@ task 'package:windows' => ['package', 'lib/couchbase_ext.rb'] do
131
131
  h[v] = ENV[v]
132
132
  h
133
133
  end
134
- ENV['LDFLAGS'] = '-static-libgcc'
134
+ ENV['LDFLAGS'] = '-static-libgcc -static-libstdc++'
135
135
 
136
136
  CROSS_PLATFORMS.each do |platform|
137
137
  ENV['TARGET'] = platform.name
138
138
  rm_rf('tmp/ ports/')
139
139
  mkdir_p('ports')
140
- recipe = MiniPortile.new('libcouchbase', '2.5.0')
140
+ recipe = MiniPortile.new('libcouchbase', '2.5.3')
141
141
  recipe.host = platform.host
142
142
  recipe.files << "http://packages.couchbase.com/clients/c/libcouchbase-#{recipe.version}.tar.gz"
143
143
  recipe.configure_options.push('--disable-cxx',
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.13
4
+ version: 1.3.14
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-05-16 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaji
@@ -257,7 +257,6 @@ 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.8/couchbase_ext.so
261
260
  - lib/couchbase/1.9/couchbase_ext.so
262
261
  - lib/couchbase/2.0/couchbase_ext.so
263
262
  - lib/couchbase/2.1/couchbase_ext.so