aerospike 2.2.0 → 2.2.1

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: 903b61fdf1d17d80049e051d70b90ce8159d0403
4
- data.tar.gz: d87f7a61c12f457c94ebe2319adf06f3ce0fa8db
3
+ metadata.gz: 326faeb8584bc6c84a0bb1f4e7c7427ec321cefb
4
+ data.tar.gz: acf465f44ff7d7fab289b6bc2935edfc67fe8740
5
5
  SHA512:
6
- metadata.gz: feaa5085e9fb331fc43f5b8c45b4f765f75c0b5ed02e056623ceacf57b7a9c4d39ea817e5c18b7b059c2564273ba106793adb632923719c2ffcb0f5825e36115
7
- data.tar.gz: 72985529453d486919b11827d74ad4d6884a038e4390d740c90ef48246341727435bcb47e6d2563a3aa5ca4a11904c02c42a2fa1b6b068d2a309c10a1ae47193
6
+ metadata.gz: c1a033227dd57f6df5b9bb289c5bce1a306eabf1c6e565b63c1afb59cfa41d8a0d2dc5c19c571e0158788c03774c8fdb6cc2920f28ca1e871863eae306c7ac7e
7
+ data.tar.gz: 1e3955fb7b008fc51aaff9f33edfba63f4102d2fbe2293b06fca813a89f7ccdf089905718dfa23be5f003225e01bcc20994e441cde887134d37133de12944260
@@ -1,3 +1,12 @@
1
+ v2.2.1 / 2016-11-14
2
+ ===================
3
+
4
+ * **New Features**
5
+ * Added constants `Aerospike::TTL::*` for "special" TTL values, incl. Aerospike::TTL::DONT_UPDATE (requires Aerospike Server v3.10.1 or later)
6
+
7
+ * **Bug Fixes**
8
+ * Fix "Add node failed: wrong number of arguments". [#41](https://github.com/aerospike/aerospike-client-ruby/issues/41)
9
+
1
10
  v2.2.0 / 2016-09-20
2
11
  ===================
3
12
 
@@ -49,6 +49,7 @@ require 'aerospike/cdt/map_return_type'
49
49
  require 'aerospike/cdt/map_write_mode'
50
50
  require 'aerospike/cdt/map_policy'
51
51
  require 'aerospike/geo_json'
52
+ require 'aerospike/ttl'
52
53
 
53
54
  require 'aerospike/policy/client_policy'
54
55
  require 'aerospike/policy/priority'
@@ -428,7 +428,7 @@ module Aerospike
428
428
 
429
429
  hosts.each do |host|
430
430
  begin
431
- nv = NodeValidator.new(self, host, @connection_timeout)
431
+ nv = NodeValidator.new(self, host, @connection_timeout, @cluster_name)
432
432
 
433
433
  # if node is already in cluster's node list,
434
434
  # or already included in the list to be added, we should skip it
@@ -451,7 +451,8 @@ module Aerospike
451
451
  list << node
452
452
 
453
453
  rescue => e
454
- Aerospike.logger.error("Add node #{node.to_s} failed: #{e}")
454
+ Aerospike.logger.error("Add node #{node} failed: #{e}")
455
+ Aerospike.logger.error(e.backtrace.join("\n"))
455
456
  end
456
457
  end
457
458
 
@@ -0,0 +1,31 @@
1
+ # encoding: utf-8
2
+ # Copyright 2016 Aerospike, Inc.
3
+ #
4
+ # Portions may be licensed to Aerospike, Inc. under one or more contributor
5
+ # license agreements.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not
8
+ # use this file except in compliance with the License. You may obtain a copy of
9
+ # the License at http:#www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ # License for the specific language governing permissions and limitations under
15
+ # the License.
16
+
17
+ module Aerospike
18
+ module TTL
19
+
20
+ # Use the default TTL value for the namespace of the record.
21
+ NAMESPACE_DEFAULT = 0
22
+
23
+ # Never expire the record.
24
+ NEVER_EXPIRE = -1
25
+
26
+ # Update record without changing the record's TTL value.
27
+ # Requires Aerospike Server version 3.10.1 or later.
28
+ DONT_UPDATE = -2
29
+
30
+ end
31
+ end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-20 00:00:00.000000000 Z
12
+ date: 2016-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -127,6 +127,7 @@ files:
127
127
  - lib/aerospike/task/task.rb
128
128
  - lib/aerospike/task/udf_register_task.rb
129
129
  - lib/aerospike/task/udf_remove_task.rb
130
+ - lib/aerospike/ttl.rb
130
131
  - lib/aerospike/udf.rb
131
132
  - lib/aerospike/user_role.rb
132
133
  - lib/aerospike/utils/buffer.rb