splitclient-rb 7.2.1.pre.rc1-java → 7.2.2-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/CHANGES.txt +3 -0
- data/lib/splitclient-rb/cache/senders/impressions_count_sender.rb +21 -21
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0dd6c1a77b60ebb21fad22eccb265892c42b85af
         | 
| 4 | 
            +
              data.tar.gz: c6f4a6191be87d8a59e33ac6ae8d7df84ee5b321
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 42dc434b5044f6a6db524087da9ecd51f59691979e25d952838e812e86d5f946baaf3cbef72e92cf764e0ba8e126438502b3d4854fc374239787c84046624f42
         | 
| 7 | 
            +
              data.tar.gz: 6d1ef8852b7922c34842f9fc2057160ee6cca069f8eefcb6ab265088bcc43f33eb0ca5d679e9238bbdc626e4da6997042a8200cf56eb6389ca690d44ebd5d6b1
         | 
    
        data/CHANGES.txt
    CHANGED
    
    
| @@ -40,32 +40,32 @@ module SplitIoClient | |
| 40 40 | 
             
                          @config.logger.info('Posting impressions count due to shutdown')
         | 
| 41 41 | 
             
                        end
         | 
| 42 42 | 
             
                      end
         | 
| 43 | 
            +
                    end
         | 
| 43 44 |  | 
| 44 | 
            -
             | 
| 45 | 
            -
             | 
| 46 | 
            -
             | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 | 
            -
             | 
| 50 | 
            -
                      def formatter(counts)
         | 
| 51 | 
            -
                        return if counts.empty?
         | 
| 45 | 
            +
                    def post_impressions_count
         | 
| 46 | 
            +
                      @impressions_api.post_count(formatter(@impression_counter.pop_all))
         | 
| 47 | 
            +
                    rescue StandardError => error
         | 
| 48 | 
            +
                      @config.log_found_exception(__method__.to_s, error)
         | 
| 49 | 
            +
                    end
         | 
| 52 50 |  | 
| 53 | 
            -
             | 
| 51 | 
            +
                    def formatter(counts)
         | 
| 52 | 
            +
                      return if counts.empty?
         | 
| 54 53 |  | 
| 55 | 
            -
             | 
| 56 | 
            -
                          key_splited = key.split('::')
         | 
| 57 | 
            -
                          
         | 
| 58 | 
            -
                          formated_counts[:pf] << {
         | 
| 59 | 
            -
                            f: key_splited[0].to_s, # feature name
         | 
| 60 | 
            -
                            m: key_splited[1].to_i, # time frame
         | 
| 61 | 
            -
                            rc: value # count
         | 
| 62 | 
            -
                          }
         | 
| 63 | 
            -
                        end
         | 
| 54 | 
            +
                      formated_counts = {pf: []}
         | 
| 64 55 |  | 
| 65 | 
            -
             | 
| 66 | 
            -
             | 
| 67 | 
            -
                         | 
| 56 | 
            +
                      counts.each do |key, value|              
         | 
| 57 | 
            +
                        key_splited = key.split('::')
         | 
| 58 | 
            +
                        
         | 
| 59 | 
            +
                        formated_counts[:pf] << {
         | 
| 60 | 
            +
                          f: key_splited[0].to_s, # feature name
         | 
| 61 | 
            +
                          m: key_splited[1].to_i, # time frame
         | 
| 62 | 
            +
                          rc: value # count
         | 
| 63 | 
            +
                        }
         | 
| 68 64 | 
             
                      end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                      formated_counts
         | 
| 67 | 
            +
                    rescue StandardError => error
         | 
| 68 | 
            +
                      @config.log_found_exception(__method__.to_s, error)
         | 
| 69 69 | 
             
                    end
         | 
| 70 70 | 
             
                  end
         | 
| 71 71 | 
             
                end
         | 
    
        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.2. | 
| 4 | 
            +
              version: 7.2.2
         | 
| 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-12-22 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -450,9 +450,9 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 450 450 | 
             
                  version: '0'
         | 
| 451 451 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 452 452 | 
             
              requirements:
         | 
| 453 | 
            -
              - - " | 
| 453 | 
            +
              - - ">="
         | 
| 454 454 | 
             
                - !ruby/object:Gem::Version
         | 
| 455 | 
            -
                  version:  | 
| 455 | 
            +
                  version: '0'
         | 
| 456 456 | 
             
            requirements: []
         | 
| 457 457 | 
             
            rubyforge_project:
         | 
| 458 458 | 
             
            rubygems_version: 2.6.14
         |