mock_redis 0.30.0 → 0.31.0
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/.github/workflows/tests.yml +18 -0
 - data/CHANGELOG.md +5 -0
 - data/Gemfile +2 -1
 - data/README.md +1 -1
 - data/lib/mock_redis/database.rb +2 -2
 - data/lib/mock_redis/hash_methods.rb +3 -1
 - data/lib/mock_redis/version.rb +1 -1
 - data/spec/commands/expire_spec.rb +1 -1
 - data/spec/commands/hmget_spec.rb +6 -0
 - data/spec/commands/pexpire_spec.rb +1 -1
 - data/spec/commands/ping_spec.rb +5 -1
 - data/spec/spec_helper.rb +14 -8
 - 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: 2870385004370b0471f3cf495184d8e11f138e0cb13b9bef9bd43ed7ce2b35ff
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 75475cf000d2075ad2565440aea2521fa1034248726b5070ff149d9518c00c3a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6e6f75b19c46fd81ef553dfe1af1f32b2dceb13e4b660835cd58b1760fa8445c09c2ef26bf67cf64adcf87e196de24798333350e0a07ca0fac39939e296659e4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 77c2c5fc3f67f654d402161541b1527c6779859a0ec6e61a5fb6048b7abfcab50728ba2c25617a2adf303b22a23e662a8f2ee7236085db02682e0e8ca690438a
         
     | 
    
        data/.github/workflows/tests.yml
    CHANGED
    
    | 
         @@ -43,3 +43,21 @@ jobs: 
     | 
|
| 
       43 
43 
     | 
    
         | 
| 
       44 
44 
     | 
    
         
             
                  - name: Run tests
         
     | 
| 
       45 
45 
     | 
    
         
             
                    run: bundle exec rspec
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                  - name: Code coverage reporting
         
     | 
| 
      
 48 
     | 
    
         
            +
                    uses: coverallsapp/github-action@master
         
     | 
| 
      
 49 
     | 
    
         
            +
                    with:
         
     | 
| 
      
 50 
     | 
    
         
            +
                      github-token: ${{ secrets.github_token }}
         
     | 
| 
      
 51 
     | 
    
         
            +
                      flag-name: ruby${{ matrix.ruby-version }}-${{ matrix.redis-version }}
         
     | 
| 
      
 52 
     | 
    
         
            +
                      parallel: true
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
              finish:
         
     | 
| 
      
 55 
     | 
    
         
            +
                needs: rspec
         
     | 
| 
      
 56 
     | 
    
         
            +
                runs-on: ubuntu-latest
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                steps:
         
     | 
| 
      
 59 
     | 
    
         
            +
                  - name: Finalize code coverage report
         
     | 
| 
      
 60 
     | 
    
         
            +
                    uses: coverallsapp/github-action@master
         
     | 
| 
      
 61 
     | 
    
         
            +
                    with:
         
     | 
| 
      
 62 
     | 
    
         
            +
                      github-token: ${{ secrets.github_token }}
         
     | 
| 
      
 63 
     | 
    
         
            +
                      parallel-finished: true
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/Gemfile
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # MockRedis
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            [](http://badge.fury.io/rb/mock_redis)
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
            
         
     | 
| 
       5 
5 
     | 
    
         
             
            [](https://coveralls.io/r/sds/mock_redis)
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            MockRedis provides the same interface as `redis-rb`, but it stores its
         
     | 
    
        data/lib/mock_redis/database.rb
    CHANGED
    
    
    
        data/lib/mock_redis/version.rb
    CHANGED
    
    
    
        data/spec/commands/hmget_spec.rb
    CHANGED
    
    | 
         @@ -36,5 +36,11 @@ describe '#hmget(key, field [, field, ...])' do 
     | 
|
| 
       36 
36 
     | 
    
         
             
                end.should raise_error(Redis::CommandError)
         
     | 
| 
       37 
37 
     | 
    
         
             
              end
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
      
 39 
     | 
    
         
            +
              it 'raises an error if given an empty list of fields' do
         
     | 
| 
      
 40 
     | 
    
         
            +
                lambda do
         
     | 
| 
      
 41 
     | 
    
         
            +
                  @redises.hmget(@key, [])
         
     | 
| 
      
 42 
     | 
    
         
            +
                end.should raise_error(Redis::CommandError)
         
     | 
| 
      
 43 
     | 
    
         
            +
              end
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
       39 
45 
     | 
    
         
             
              it_should_behave_like 'a hash-only command'
         
     | 
| 
       40 
46 
     | 
    
         
             
            end
         
     | 
    
        data/spec/commands/ping_spec.rb
    CHANGED
    
    
    
        data/spec/spec_helper.rb
    CHANGED
    
    | 
         @@ -1,11 +1,17 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
               
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            require 'simplecov'
         
     | 
| 
      
 2 
     | 
    
         
            +
            SimpleCov.start do
         
     | 
| 
      
 3 
     | 
    
         
            +
              add_filter 'spec/'
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
              if ENV['CI']
         
     | 
| 
      
 6 
     | 
    
         
            +
                require 'simplecov-lcov'
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
                SimpleCov::Formatter::LcovFormatter.config do |c|
         
     | 
| 
      
 9 
     | 
    
         
            +
                  c.report_with_single_file = true
         
     | 
| 
      
 10 
     | 
    
         
            +
                  c.single_report_path = 'coverage/lcov.info'
         
     | 
| 
      
 11 
     | 
    
         
            +
                end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                formatter SimpleCov::Formatter::LcovFormatter
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
       9 
15 
     | 
    
         
             
            end
         
     | 
| 
       10 
16 
     | 
    
         | 
| 
       11 
17 
     | 
    
         
             
            require 'rspec/its'
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: mock_redis
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.31.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Shane da Silva
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2022- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2022-04-10 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: ruby2_keywords
         
     |