aerospike_native 0.0.2 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 639d6ed95069b8e0ec7554b4f806076a93e664bf
4
- data.tar.gz: 04fc43809557a7f9febeb96539c081c4162ea3fa
3
+ metadata.gz: 61a277355cea7b57701e87d449cc21d05d933f17
4
+ data.tar.gz: b7e0a9780c63ac5b07ab380da0cfbadef654bbe5
5
5
  SHA512:
6
- metadata.gz: 961029b29f23aa1d6d94d14e371687f50ebc5afe6563b2e2a6f504bf4a7e3034de9b4597b1a83f40f8b38cb84372c260cf5ce3a5e2be5895c98142bcc8476b3c
7
- data.tar.gz: 259a505271c2a7292fa15169fc477bed7dab3f72b30ca37d8246c2383bb099915fa4ec99d1b65e17bf54c5f7d7adf94579c5f324d31740526998773c65774fa2
6
+ metadata.gz: 16f5e09b60d5e74ab9a4438575f38c00953d728e147f96d7b6d8726a59dc8b597e6fb506a7e5fba68061d8a4567c66157f9e753765f5e8f218148a1c7fd1c580
7
+ data.tar.gz: 1662b1718efc07a1c93859a734f5e114dddfb9def810a306a78485acdaf4d1c16ac53f2ed9f6953bc66d8a9f5f4d896ec1207bc563b85f6a0a3e21e61b92110e
@@ -135,13 +135,26 @@ VALUE client_operate(int argc, VALUE* argv, VALUE vSelf)
135
135
 
136
136
  switch( op_type ) {
137
137
  case WRITE:
138
+ printf("write\n");
139
+ as_operations_add_write_int64(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
140
+ // switch( TYPE(bin_value) ) {
141
+ // case T_STRING:
142
+ // as_operations_add_write_str(&ops, StringValueCStr( bin_name ), StringValueCStr( bin_value ));
143
+ // break;
144
+ // case T_FIXNUM:
145
+ // as_operations_add_write_int64(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
146
+ // break;
147
+ // }
148
+
138
149
  break;
139
150
  case INCREMENT:
151
+ printf("increment\n");
140
152
  as_operations_add_incr(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
141
153
  break;
142
154
  }
143
155
  }
144
156
 
157
+ printf("test\n");
145
158
  printf("prepare key\n");
146
159
 
147
160
  vNamespace = rb_iv_get(vKey, "@namespace");
@@ -26,6 +26,9 @@ VALUE operation_write(VALUE vSelf, VALUE vBinName, VALUE vBinValue)
26
26
  VALUE operation_increment(VALUE vSelf, VALUE vBinName, VALUE vBinValue)
27
27
  {
28
28
  VALUE vArgs[3];
29
+
30
+ Check_Type(vBinValue, T_FIXNUM);
31
+
29
32
  vArgs[0] = INT2NUM(INCREMENT);
30
33
  vArgs[1] = vBinName;
31
34
  vArgs[2] = vBinValue;
@@ -1,3 +1,3 @@
1
1
  module AerospikeNative
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike_native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Ziablitskii
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler