redis-client 0.14.0 → 0.14.1
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 +6 -0
 - data/Gemfile.lock +4 -4
 - data/lib/redis_client/ruby_connection/buffered_io.rb +4 -4
 - data/lib/redis_client/ruby_connection.rb +1 -1
 - data/lib/redis_client/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e9858303eff06d56f8e144eb7033995fc92839c41fe39d0bda6f1d9c2fed91e9
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a4f4ca2073a32e28932c58e537963a2f0b2321e36ca472c6edc9edab1b29122b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3c20b17e4587980ed89e0877b20cb9aee7d16365401127cfdc3b4f451f7706bf338988e97ac9d1e62d33c9af5b45ebfb3c35310205fbd309995ace46c3b85fce
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 21ed1731b716f1bd6e525b638b7715683979860faa0d14f2fc6f210c4d185a95d2329650b56cf731734d22d7008cdadccc2055a8d5ff7a332b043836e0d39b75
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,7 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Unreleased
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            # 0.14.1
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            - Include the timeout value in TimeoutError messages.
         
     | 
| 
      
 6 
     | 
    
         
            +
            - Fix connection keep-alive on FreeBSD. #102.
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
       3 
8 
     | 
    
         
             
            # 0.14.0
         
     | 
| 
       4 
9 
     | 
    
         | 
| 
      
 10 
     | 
    
         
            +
            - Implement Sentinels list automatic refresh.
         
     | 
| 
       5 
11 
     | 
    
         
             
            - hiredis binding now implement GC compaction and write barriers.
         
     | 
| 
       6 
12 
     | 
    
         
             
            - hiredis binding now properly release the GVL around `connect(2)`.
         
     | 
| 
       7 
13 
     | 
    
         
             
            - hiredis the client memory is now re-used on reconnection when possible to reduce allocation churn.
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    | 
         @@ -1,16 +1,16 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            PATH
         
     | 
| 
       2 
2 
     | 
    
         
             
              remote: .
         
     | 
| 
       3 
3 
     | 
    
         
             
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                redis-client (0.14. 
     | 
| 
      
 4 
     | 
    
         
            +
                redis-client (0.14.1)
         
     | 
| 
       5 
5 
     | 
    
         
             
                  connection_pool
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            GEM
         
     | 
| 
       8 
8 
     | 
    
         
             
              remote: https://rubygems.org/
         
     | 
| 
       9 
9 
     | 
    
         
             
              specs:
         
     | 
| 
       10 
10 
     | 
    
         
             
                ast (2.4.2)
         
     | 
| 
       11 
     | 
    
         
            -
                benchmark-ips (2. 
     | 
| 
      
 11 
     | 
    
         
            +
                benchmark-ips (2.12.0)
         
     | 
| 
       12 
12 
     | 
    
         
             
                byebug (11.1.3)
         
     | 
| 
       13 
     | 
    
         
            -
                connection_pool (2. 
     | 
| 
      
 13 
     | 
    
         
            +
                connection_pool (2.4.0)
         
     | 
| 
       14 
14 
     | 
    
         
             
                hiredis (0.6.3)
         
     | 
| 
       15 
15 
     | 
    
         
             
                hiredis (0.6.3-java)
         
     | 
| 
       16 
16 
     | 
    
         
             
                minitest (5.15.0)
         
     | 
| 
         @@ -38,7 +38,7 @@ GEM 
     | 
|
| 
       38 
38 
     | 
    
         
             
                rubocop-minitest (0.19.1)
         
     | 
| 
       39 
39 
     | 
    
         
             
                  rubocop (>= 0.90, < 2.0)
         
     | 
| 
       40 
40 
     | 
    
         
             
                ruby-progressbar (1.11.0)
         
     | 
| 
       41 
     | 
    
         
            -
                stackprof (0.2. 
     | 
| 
      
 41 
     | 
    
         
            +
                stackprof (0.2.24)
         
     | 
| 
       42 
42 
     | 
    
         
             
                toxiproxy (2.0.2)
         
     | 
| 
       43 
43 
     | 
    
         
             
                unicode-display_width (2.2.0)
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
         @@ -70,9 +70,9 @@ class RedisClient 
     | 
|
| 
       70 
70 
     | 
    
         
             
                          return total
         
     | 
| 
       71 
71 
     | 
    
         
             
                        end
         
     | 
| 
       72 
72 
     | 
    
         
             
                      when :wait_readable
         
     | 
| 
       73 
     | 
    
         
            -
                        @io.to_io.wait_readable(@read_timeout) or raise  
     | 
| 
      
 73 
     | 
    
         
            +
                        @io.to_io.wait_readable(@read_timeout) or raise(ReadTimeoutError, "Waited #{@read_timeout} seconds")
         
     | 
| 
       74 
74 
     | 
    
         
             
                      when :wait_writable
         
     | 
| 
       75 
     | 
    
         
            -
                        @io.to_io.wait_writable(@write_timeout) or raise  
     | 
| 
      
 75 
     | 
    
         
            +
                        @io.to_io.wait_writable(@write_timeout) or raise(WriteTimeoutError, "Waited #{@write_timeout} seconds")
         
     | 
| 
       76 
76 
     | 
    
         
             
                      when nil
         
     | 
| 
       77 
77 
     | 
    
         
             
                        raise Errno::ECONNRESET
         
     | 
| 
       78 
78 
     | 
    
         
             
                      else
         
     | 
| 
         @@ -137,10 +137,10 @@ class RedisClient 
     | 
|
| 
       137 
137 
     | 
    
         
             
                        return if !strict || remaining <= 0
         
     | 
| 
       138 
138 
     | 
    
         
             
                      when :wait_readable
         
     | 
| 
       139 
139 
     | 
    
         
             
                        unless @io.to_io.wait_readable(@read_timeout)
         
     | 
| 
       140 
     | 
    
         
            -
                          raise ReadTimeoutError unless @blocking_reads
         
     | 
| 
      
 140 
     | 
    
         
            +
                          raise ReadTimeoutError, "Waited #{@read_timeout} seconds" unless @blocking_reads
         
     | 
| 
       141 
141 
     | 
    
         
             
                        end
         
     | 
| 
       142 
142 
     | 
    
         
             
                      when :wait_writable
         
     | 
| 
       143 
     | 
    
         
            -
                        @io.to_io.wait_writable(@write_timeout) or raise  
     | 
| 
      
 143 
     | 
    
         
            +
                        @io.to_io.wait_writable(@write_timeout) or raise(WriteTimeoutError, "Waited #{@write_timeout} seconds")
         
     | 
| 
       144 
144 
     | 
    
         
             
                      when nil
         
     | 
| 
       145 
145 
     | 
    
         
             
                        raise EOFError
         
     | 
| 
       146 
146 
     | 
    
         
             
                      else
         
     | 
| 
         @@ -152,7 +152,7 @@ class RedisClient 
     | 
|
| 
       152 
152 
     | 
    
         
             
                private_constant :KEEP_ALIVE_TTL
         
     | 
| 
       153 
153 
     | 
    
         
             
                private_constant :KEEP_ALIVE_PROBES
         
     | 
| 
       154 
154 
     | 
    
         | 
| 
       155 
     | 
    
         
            -
                if %i[SOL_SOCKET TCP_KEEPIDLE TCP_KEEPINTVL TCP_KEEPCNT].all? { |c| Socket.const_defined? c } # Linux
         
     | 
| 
      
 155 
     | 
    
         
            +
                if %i[SOL_TCP SOL_SOCKET TCP_KEEPIDLE TCP_KEEPINTVL TCP_KEEPCNT].all? { |c| Socket.const_defined? c } # Linux
         
     | 
| 
       156 
156 
     | 
    
         
             
                  def enable_socket_keep_alive(socket)
         
     | 
| 
       157 
157 
     | 
    
         
             
                    socket.setsockopt(Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true)
         
     | 
| 
       158 
158 
     | 
    
         
             
                    socket.setsockopt(Socket::SOL_TCP, Socket::TCP_KEEPIDLE, KEEP_ALIVE_INTERVAL)
         
     | 
    
        data/lib/redis_client/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: redis-client
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.14. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.14.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jean Boussier
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023-03- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-03-30 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: connection_pool
         
     |