aerospike 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ ## Oct 25 2014 (0.1.2)
2
+
3
+ Minor fix.
4
+
5
+ * **Changes**:
6
+
7
+ * Fixed String unpacking for single byte strings.
8
+
1
9
  ## Oct 25 2014 (0.1.1)
2
10
 
3
11
  Minor fixes.
@@ -86,13 +86,13 @@ module Aerospike
86
86
  8
87
87
  end
88
88
 
89
- def read(offset, len=1)
89
+ def read(offset, len=nil)
90
90
  start = offset
91
91
 
92
- if len == 1
93
- @buf.getbyte(start)
94
- else
92
+ if len
95
93
  @buf[start, len]
94
+ else
95
+ @buf.getbyte(start)
96
96
  end
97
97
  end
98
98
 
@@ -337,7 +337,7 @@ module Aerospike
337
337
  def self.normalize_elem(elem)
338
338
  case elem
339
339
  when String
340
- elem[1..-1]
340
+ elem[1..-1]
341
341
  when Array
342
342
  normalize_strings_in_array(elem)
343
343
  when Hash
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
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: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: