splitclient-rb 7.1.3.pre.rc1-java → 7.1.4.pre.rc1-java
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/Rakefile +2 -7
- data/lib/splitclient-rb.rb +1 -1
- data/lib/splitclient-rb/cache/adapters/redis_adapter.rb +2 -2
- data/lib/splitclient-rb/engine/evaluator/splitter.rb +3 -1
- data/lib/splitclient-rb/engine/parser/evaluator.rb +2 -0
- data/lib/splitclient-rb/version.rb +1 -1
- data/splitclient-rb.gemspec +1 -7
- 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: df270febc7f8d6500327a6cd74bd296a18f7b5b6
         | 
| 4 | 
            +
              data.tar.gz: 84a0677bc33dd0e2da328574f3a19eb69e037b57
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a845b33d67d12111ab3532235782f17711e277c758608d424544200f6e18e227406079b026bfc8f69c68237e4d7c57dd291f41669baf8f9e1c0e75e7318ade08
         | 
| 7 | 
            +
              data.tar.gz: 7e917de2d2abc6b7ee2650f346bea615efdf8d27bb170ef2c596227502c54647993843faeea31b1cf0682f2a6da11d873c131897f5ede77050fcc4c9e0234bba
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -11,19 +11,14 @@ RSpec::Core::RakeTask.new(:spec) | |
| 11 11 | 
             
            RuboCop::RakeTask.new(:rubocop)
         | 
| 12 12 |  | 
| 13 13 | 
             
            task spec: :compile
         | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 14 | 
            +
             | 
| 15 | 
            +
            if RUBY_PLATFORM == 'java'
         | 
| 16 16 | 
             
              require 'rake/javaextensiontask'
         | 
| 17 17 | 
             
              Rake::JavaExtensionTask.new 'murmurhash' do |ext|
         | 
| 18 18 | 
             
                ext.lib_dir = 'lib/murmurhash'
         | 
| 19 19 | 
             
                ext.target_version = '1.7'
         | 
| 20 20 | 
             
                ext.source_version = '1.7'
         | 
| 21 21 | 
             
              end
         | 
| 22 | 
            -
            else
         | 
| 23 | 
            -
              require 'rake/extensiontask'
         | 
| 24 | 
            -
              Rake::ExtensionTask.new 'murmurhash' do |ext|
         | 
| 25 | 
            -
                ext.lib_dir = 'lib/murmurhash'
         | 
| 26 | 
            -
              end
         | 
| 27 22 | 
             
            end
         | 
| 28 23 |  | 
| 29 24 | 
             
            if !ENV['APPRAISAL_INITIALIZED']
         | 
    
        data/lib/splitclient-rb.rb
    CHANGED
    
    
| @@ -14,7 +14,7 @@ module SplitIoClient | |
| 14 14 | 
             
                    def initialize(redis_url)
         | 
| 15 15 | 
             
                      connection = redis_url.is_a?(Hash) ? redis_url : { url: redis_url }
         | 
| 16 16 |  | 
| 17 | 
            -
                      @redis = Redis.new(connection)
         | 
| 17 | 
            +
                      @redis = Redis.new(connection)          
         | 
| 18 18 | 
             
                    end
         | 
| 19 19 |  | 
| 20 20 | 
             
                    # Map
         | 
| @@ -142,7 +142,7 @@ module SplitIoClient | |
| 142 142 |  | 
| 143 143 | 
             
                    # General
         | 
| 144 144 | 
             
                    def exists?(key)
         | 
| 145 | 
            -
                      @redis.exists(key)
         | 
| 145 | 
            +
                      @redis.exists?(key)
         | 
| 146 146 | 
             
                    end
         | 
| 147 147 |  | 
| 148 148 | 
             
                    def delete(key)
         | 
| @@ -1,3 +1,5 @@ | |
| 1 | 
            +
            require 'digest/murmurhash'
         | 
| 2 | 
            +
             | 
| 1 3 | 
             
            module SplitIoClient
         | 
| 2 4 | 
             
              # Misc class in charge of providing hash functions and
         | 
| 3 5 | 
             
              # determination of treatment based on concept of buckets
         | 
| @@ -9,7 +11,7 @@ module SplitIoClient | |
| 9 11 | 
             
                  when 'java' 
         | 
| 10 12 | 
             
                    Proc.new { |key, seed| Java::MurmurHash3.murmurhash3_x86_32(key, seed) }
         | 
| 11 13 | 
             
                  else
         | 
| 12 | 
            -
                    Proc.new { |key, seed| Digest:: | 
| 14 | 
            +
                    Proc.new { |key, seed| Digest::MurmurHash3_x86_32.rawdigest(key, [seed].pack('L')) }
         | 
| 13 15 | 
             
                  end
         | 
| 14 16 | 
             
                end
         | 
| 15 17 |  | 
    
        data/splitclient-rb.gemspec
    CHANGED
    
    | @@ -26,13 +26,7 @@ Gem::Specification.new do |spec| | |
| 26 26 | 
             
                     lib/murmurhash/murmurhash.jar]
         | 
| 27 27 | 
             
                )
         | 
| 28 28 | 
             
              else
         | 
| 29 | 
            -
                spec. | 
| 30 | 
            -
                  %w[ext/murmurhash/3_x86_32.c
         | 
| 31 | 
            -
                     ext/murmurhash/extconf.rb
         | 
| 32 | 
            -
                     ext/murmurhash/murmurhash.c
         | 
| 33 | 
            -
                     ext/murmurhash/murmurhash.h]
         | 
| 34 | 
            -
                )
         | 
| 35 | 
            -
                spec.extensions = ['ext/murmurhash/extconf.rb']
         | 
| 29 | 
            +
                spec.add_runtime_dependency 'digest-murmurhash', '>= 1.1.1'
         | 
| 36 30 | 
             
              end
         | 
| 37 31 |  | 
| 38 32 | 
             
              spec.add_development_dependency 'allocation_stats'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: splitclient-rb
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 7.1. | 
| 4 | 
            +
              version: 7.1.4.pre.rc1
         | 
| 5 5 | 
             
            platform: java
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Split Software
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-08-26 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              requirement: !ruby/object:Gem::Requirement
         |