aerospike 1.0.11 → 1.0.12
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 +4 -4
 - data/CHANGELOG.md +15 -3
 - data/lib/aerospike/client.rb +1 -1
 - data/lib/aerospike/value/value.rb +13 -3
 - data/lib/aerospike/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2108e0a0c9b5702676743d0164661891aeeaad17
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 00009afe933f69b92438e3f9bf143db6d1e8e9b3
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 31ba8b20828e50ced593cd94dd1134053dc6f6d0bdc0b66c3c100865e8612d3282039a43a847b2962777bca2c5e2a9cac3b1140e654e874c5360a5b3c1e299a2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 37b8b4d078d5a011c3a4c0008f94893694c30f38372557611c75a9069e94359f0e909af1404aa4742c8579276f28891156862ab26da42d602ac1a8f5a86c84cd
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,3 +1,15 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            1.0.12 / 2016-02-11
         
     | 
| 
      
 2 
     | 
    
         
            +
            ===================
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            * **Fixes**:
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              * Fixed syntax error in Client when raising exception for invalid bin key;
         
     | 
| 
      
 7 
     | 
    
         
            +
                thanks to [Ole Riesenberg](https://github.com/oleriesenberg) for the fix.
         
     | 
| 
      
 8 
     | 
    
         
            +
                [aerospike/aerospike-client-ruby#31]
         
     | 
| 
      
 9 
     | 
    
         
            +
              * Use UTF-8 as default encoding when writing/reading Strings from record
         
     | 
| 
      
 10 
     | 
    
         
            +
                bins; thanks to [fs-wu](https://github.com/fs-wu) for finding the issue and
         
     | 
| 
      
 11 
     | 
    
         
            +
                reporting it. [aerospike/aerospike-client-ruby#33]
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       1 
13 
     | 
    
         
             
            ## December 4 2015 (1.0.11)
         
     | 
| 
       2 
14 
     | 
    
         | 
| 
       3 
15 
     | 
    
         
             
              Major feature and bug fix release.
         
     | 
| 
         @@ -20,7 +32,7 @@ 
     | 
|
| 
       20 
32 
     | 
    
         
             
                  region-contains-point filters. Requires server version 3.7.0 or later.
         
     | 
| 
       21 
33 
     | 
    
         
             
                  [CLIENT-594]
         
     | 
| 
       22 
34 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
                * Tend  
     | 
| 
      
 35 
     | 
    
         
            +
                * Tend interval is now configurable via the client policy. Default is 1
         
     | 
| 
       24 
36 
     | 
    
         
             
                  second as before.
         
     | 
| 
       25 
37 
     | 
    
         | 
| 
       26 
38 
     | 
    
         
             
                * Only logs tend messages when the number of cluster nodes have changed.
         
     | 
| 
         @@ -148,7 +160,7 @@ 
     | 
|
| 
       148 
160 
     | 
    
         
             
              * **New Features**:
         
     | 
| 
       149 
161 
     | 
    
         | 
| 
       150 
162 
     | 
    
         
             
                * Added Security Features: Please consult [Security Docs](https://www.aerospike.com/docs/guide/security.html) on Aerospike website.
         
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
       152 
164 
     | 
    
         
             
                  * `ClientPolicy.User`, `ClientPolicy.Password`
         
     | 
| 
       153 
165 
     | 
    
         
             
                  * `Client.CreateUser()`, `Client.DropUser()`, `Client.ChangePassword()`
         
     | 
| 
       154 
166 
     | 
    
         
             
                  * `Client.GrantRoles()`, `Client.RevokeRoles()`, `Client.ReplaceRoles()`
         
     | 
| 
         @@ -170,7 +182,7 @@ 
     | 
|
| 
       170 
182 
     | 
    
         
             
              * **Fixes**
         
     | 
| 
       171 
183 
     | 
    
         | 
| 
       172 
184 
     | 
    
         
             
                * Fixed setting timeout on connection
         
     | 
| 
       173 
     | 
    
         
            -
                * Fixed exception handling typo for Connection#write 
     | 
| 
      
 185 
     | 
    
         
            +
                * Fixed exception handling typo for Connection#write
         
     | 
| 
       174 
186 
     | 
    
         | 
| 
       175 
187 
     | 
    
         
             
            ## Dec 8 2014 (0.1.5)
         
     | 
| 
       176 
188 
     | 
    
         | 
    
        data/lib/aerospike/client.rb
    CHANGED
    
    | 
         @@ -841,7 +841,7 @@ module Aerospike 
     | 
|
| 
       841 
841 
     | 
    
         
             
                    hash # it is a list of bins
         
     | 
| 
       842 
842 
     | 
    
         
             
                  else
         
     | 
| 
       843 
843 
     | 
    
         
             
                    hash.map do |k, v|
         
     | 
| 
       844 
     | 
    
         
            -
                      raise Aerospike::Exceptions::Parse("bin name `#{k}` is not a string.") unless k.is_a?(String)
         
     | 
| 
      
 844 
     | 
    
         
            +
                      raise Aerospike::Exceptions::Parse.new("bin name `#{k}` is not a string.") unless k.is_a?(String)
         
     | 
| 
       845 
845 
     | 
    
         
             
                      Bin.new(k, v)
         
     | 
| 
       846 
846 
     | 
    
         
             
                    end
         
     | 
| 
       847 
847 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -168,7 +168,8 @@ module Aerospike 
     | 
|
| 
       168 
168 
     | 
    
         
             
                end
         
     | 
| 
       169 
169 
     | 
    
         | 
| 
       170 
170 
     | 
    
         
             
                def write(buffer, offset)
         
     | 
| 
       171 
     | 
    
         
            -
                   
     | 
| 
      
 171 
     | 
    
         
            +
                  bytes = @value.encode(Aerospike.encoding).force_encoding(Encoding::BINARY)
         
     | 
| 
      
 172 
     | 
    
         
            +
                  buffer.write_binary(bytes, offset)
         
     | 
| 
       172 
173 
     | 
    
         
             
                end
         
     | 
| 
       173 
174 
     | 
    
         | 
| 
       174 
175 
     | 
    
         
             
                def pack(packer)
         
     | 
| 
         @@ -429,12 +430,20 @@ module Aerospike 
     | 
|
| 
       429 
430 
     | 
    
         | 
| 
       430 
431 
     | 
    
         
             
              #######################################
         
     | 
| 
       431 
432 
     | 
    
         | 
| 
      
 433 
     | 
    
         
            +
              def self.encoding
         
     | 
| 
      
 434 
     | 
    
         
            +
                @_encoding ||= Encoding::UTF_8
         
     | 
| 
      
 435 
     | 
    
         
            +
              end
         
     | 
| 
      
 436 
     | 
    
         
            +
             
     | 
| 
      
 437 
     | 
    
         
            +
              def self.encoding=(encoding)
         
     | 
| 
      
 438 
     | 
    
         
            +
                @_encoding = encoding
         
     | 
| 
      
 439 
     | 
    
         
            +
              end
         
     | 
| 
      
 440 
     | 
    
         
            +
             
     | 
| 
       432 
441 
     | 
    
         
             
              protected
         
     | 
| 
       433 
442 
     | 
    
         | 
| 
       434 
443 
     | 
    
         
             
              def self.normalize_elem(elem) # :nodoc:
         
     | 
| 
       435 
444 
     | 
    
         
             
                case elem
         
     | 
| 
       436 
445 
     | 
    
         
             
                when String
         
     | 
| 
       437 
     | 
    
         
            -
                 elem[1..-1]
         
     | 
| 
      
 446 
     | 
    
         
            +
                 elem[1..-1].encode(Aerospike.encoding)
         
     | 
| 
       438 
447 
     | 
    
         
             
                when Array
         
     | 
| 
       439 
448 
     | 
    
         
             
                  normalize_strings_in_array(elem)
         
     | 
| 
       440 
449 
     | 
    
         
             
                when Hash
         
     | 
| 
         @@ -458,7 +467,8 @@ module Aerospike 
     | 
|
| 
       458 
467 
     | 
    
         | 
| 
       459 
468 
     | 
    
         
             
                case type
         
     | 
| 
       460 
469 
     | 
    
         
             
                when Aerospike::ParticleType::STRING
         
     | 
| 
       461 
     | 
    
         
            -
                  buf.read(offset, length)
         
     | 
| 
      
 470 
     | 
    
         
            +
                  bytes = buf.read(offset, length)
         
     | 
| 
      
 471 
     | 
    
         
            +
                  bytes.force_encoding(Aerospike.encoding)
         
     | 
| 
       462 
472 
     | 
    
         | 
| 
       463 
473 
     | 
    
         
             
                when Aerospike::ParticleType::INTEGER
         
     | 
| 
       464 
474 
     | 
    
         
             
                  buf.read_int64(offset)
         
     | 
    
        data/lib/aerospike/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.12
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Khosrow Afroozeh
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-02-11 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: msgpack
         
     |