minitest-retry 0.2.0 → 0.2.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/.github/workflows/ubuntu.yml +4 -5
 - data/CHANGELOG.md +4 -0
 - data/README.md +2 -2
 - data/lib/minitest/retry.rb +1 -1
 - data/lib/minitest/retry/version.rb +1 -1
 - metadata +2 -3
 - data/.travis.yml +0 -10
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ee8f32526c33316323c344291e448fff7a4107a4d98af04a0fb7fc8b645a3678
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a139a0a4ea5c047e0216903832b688ac1f33e64e78c24ddfed81c624fe4811b1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: '048d1154af57d771bfa0022ca6686844afda442227c51a123111b101fdd527a0f1029633f0c8aa2783d453963f9c45bd1fe4efc72bbe72f6502fe6979f2b602a'
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9323ed80ec1a7df777504f6b25e602907994d56c4dfea2431124a682c10ead588088e87747dbf1e4cb3a941ccbaf4276538fa00b40e93bfef7ea97771487353c
         
     | 
| 
         @@ -7,13 +7,12 @@ jobs: 
     | 
|
| 
       7 
7 
     | 
    
         
             
                runs-on: ubuntu-latest
         
     | 
| 
       8 
8 
     | 
    
         
             
                strategy:
         
     | 
| 
       9 
9 
     | 
    
         
             
                  matrix:
         
     | 
| 
       10 
     | 
    
         
            -
                    ruby: [ '2.6 
     | 
| 
      
 10 
     | 
    
         
            +
                    ruby: [ '2.7', '2.6', '2.5', '2.4', '2.3' ]
         
     | 
| 
       11 
11 
     | 
    
         
             
                steps:
         
     | 
| 
       12 
     | 
    
         
            -
                - uses: actions/checkout@ 
     | 
| 
       13 
     | 
    
         
            -
                -  
     | 
| 
       14 
     | 
    
         
            -
                  uses: actions/setup-ruby@v1
         
     | 
| 
      
 12 
     | 
    
         
            +
                - uses: actions/checkout@v2
         
     | 
| 
      
 13 
     | 
    
         
            +
                - uses: ruby/setup-ruby@v1
         
     | 
| 
       15 
14 
     | 
    
         
             
                  with:
         
     | 
| 
       16 
     | 
    
         
            -
                    version: ${{ matrix.ruby }}
         
     | 
| 
      
 15 
     | 
    
         
            +
                    ruby-version: ${{ matrix.ruby }}
         
     | 
| 
       17 
16 
     | 
    
         
             
                - name: Install dependencies
         
     | 
| 
       18 
17 
     | 
    
         
             
                  run: |
         
     | 
| 
       19 
18 
     | 
    
         
             
                    gem install bundler --no-document
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Re-run the test when the test fails.
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            
         
     | 
| 
       6 
6 
     | 
    
         
             
            [](http://badge.fury.io/rb/minitest-retry)
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ## Installation
         
     | 
| 
         @@ -51,7 +51,7 @@ end 
     | 
|
| 
       51 
51 
     | 
    
         | 
| 
       52 
52 
     | 
    
         
             
            The `on_consistent_failure` callback is executed when a test consistently fails:
         
     | 
| 
       53 
53 
     | 
    
         
             
            ```ruby
         
     | 
| 
       54 
     | 
    
         
            -
            Minitest::Retry.on_consistent_failure do |klass, test_name|
         
     | 
| 
      
 54 
     | 
    
         
            +
            Minitest::Retry.on_consistent_failure do |klass, test_name, result|
         
     | 
| 
       55 
55 
     | 
    
         
             
              # code omitted
         
     | 
| 
       56 
56 
     | 
    
         
             
            end
         
     | 
| 
       57 
57 
     | 
    
         
             
            ```
         
     | 
    
        data/lib/minitest/retry.rb
    CHANGED
    
    | 
         @@ -79,7 +79,7 @@ module Minitest 
     | 
|
| 
       79 
79 
     | 
    
         
             
                      end
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         
             
                      if Minitest::Retry.consistent_failure_callback && !result.failures.empty?
         
     | 
| 
       82 
     | 
    
         
            -
                        Minitest::Retry.consistent_failure_callback.call(klass, method_name)
         
     | 
| 
      
 82 
     | 
    
         
            +
                        Minitest::Retry.consistent_failure_callback.call(klass, method_name, result)
         
     | 
| 
       83 
83 
     | 
    
         
             
                      end
         
     | 
| 
       84 
84 
     | 
    
         
             
                    end
         
     | 
| 
       85 
85 
     | 
    
         
             
                    result
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: minitest-retry
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Yuji Yaginuma
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-05-28 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: minitest
         
     | 
| 
         @@ -61,7 +61,6 @@ extra_rdoc_files: [] 
     | 
|
| 
       61 
61 
     | 
    
         
             
            files:
         
     | 
| 
       62 
62 
     | 
    
         
             
            - ".github/workflows/ubuntu.yml"
         
     | 
| 
       63 
63 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
       64 
     | 
    
         
            -
            - ".travis.yml"
         
     | 
| 
       65 
64 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
       66 
65 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       67 
66 
     | 
    
         
             
            - LICENSE.txt
         
     |