aerospike 1.0.5 → 1.0.6

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: 29590c28263bbb25b84e0856deaa101c53e6e1b1
4
- data.tar.gz: c737c8347a770a959c53d9677346761d0c6f0fcc
3
+ metadata.gz: 5c65165bc4d0069cb47a010e127adfe9a5cefa70
4
+ data.tar.gz: 79bd81c9d9fead06a165089d0d0822667f05739c
5
5
  SHA512:
6
- metadata.gz: d06e1e14657badf69828cffa141a967ae02423572b29f107e635b754308c701d3bc9c153ad93c01ea7bd36294fcc84e87cc1b6e50e44bab5b6460add94035992
7
- data.tar.gz: 5c8e4f46c757aec7d7b4c1f9fcb8ac815016d80aadb218d095cabb127e5af5c061635d08b17b8d42c6b784f40520223d94ae7a27b9f0f9c2fa101f285a1233d9
6
+ metadata.gz: 6880c3734a0b15cd980a089fad8ce994a5e26127d002a88922b750dcc4d94b7ca6e0d020f8c2d932eb122033a7a308a1720d8e5759da0d39cf9c31595ce9f132
7
+ data.tar.gz: 03c4d45190498dc3a1065abbe76f26b2d7c0dd5906c3744fd4c3a3e75b02167a87884816c2b2632e425765651d83f118708eace0ed17dc6c63f3be114ec5e1df
@@ -1,3 +1,11 @@
1
+ ## April 2 2015 (1.0.6)
2
+
3
+ Minor fixes.
4
+
5
+ * **New Features**:
6
+
7
+ * Fixed running a stream query without parameters to the function.
8
+
1
9
  ## March 25 2015 (1.0.5)
2
10
 
3
11
  Minor improvements.
@@ -34,7 +34,15 @@ module Aerospike
34
34
  end
35
35
 
36
36
  def set_aliases(host)
37
- addresses = Resolv.getaddresses(host.name)
37
+ is_ip = !!((host =~ Resolv::IPv4::Regex) || (host =~ Resolv::IPv6::Regex))
38
+
39
+ if is_ip
40
+ # don't try to resolve IP addresses. May fail in different OS or network setups
41
+ addresses = host
42
+ else
43
+ addresses = Resolv.getaddresses(host.name)
44
+ end
45
+
38
46
  aliases = []
39
47
  addresses.each do |addr|
40
48
  aliases << Host.new(addr, host.port)
@@ -56,6 +56,9 @@ module Aerospike
56
56
  end
57
57
 
58
58
  def parse_key(field_count)
59
+ # in Stream queries, there are no keys
60
+ return unless field_count > 0
61
+
59
62
  digest = nil
60
63
  namespace = nil
61
64
  set_name = nil
@@ -94,7 +94,7 @@ module Aerospike
94
94
  if @statement.function_args && @statement.function_args.length > 0
95
95
  functionArgBuffer = Value.of(@statement.function_args).to_bytes
96
96
  else
97
- functionArgBuffer = 0.ord
97
+ functionArgBuffer = ''
98
98
  end
99
99
  @data_offset += FIELD_HEADER_SIZE + functionArgBuffer.bytesize
100
100
  fieldCount += 4
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack