minitest-retry 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f9f6226ef75875a95897d986e79878ce5c09f5406fb3048c0550161281e8aa
4
- data.tar.gz: 4b969cc059624894c5dcd5d41c56b708867d999a283e2d8c89396074f5e7bdb1
3
+ metadata.gz: ee8f32526c33316323c344291e448fff7a4107a4d98af04a0fb7fc8b645a3678
4
+ data.tar.gz: a139a0a4ea5c047e0216903832b688ac1f33e64e78c24ddfed81c624fe4811b1
5
5
  SHA512:
6
- metadata.gz: 75616b64822f66378bd933caa1c60fcab593a066045354bc8dfe9bf6510630fe3cd5e2fef9676256e181884a85983c877241d5e95b10a49919187381005951a4
7
- data.tar.gz: 74ae721f2210599aa00df4cf8ad8815eb3466e7e0abfe447d861434a050dd1d7858b4db0f633d731cfb711863070cefca58824fcba532d64d92e0b7fee0aadaa
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.x', '2.5.x', '2.4.x', '2.3.x' ]
10
+ ruby: [ '2.7', '2.6', '2.5', '2.4', '2.3' ]
11
11
  steps:
12
- - uses: actions/checkout@master
13
- - name: Set up Ruby
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
@@ -1,3 +1,7 @@
1
+ ## 0.2.1
2
+
3
+ * Pass a test result to consistent failure callback #30 [rmacklin]
4
+
1
5
  ## 0.2.0
2
6
 
3
7
  * Pass a test result to failure and retry callbacks #29 [aabrahamian]
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Re-run the test when the test fails.
4
4
 
5
- [![Build Status](https://travis-ci.org/y-yagi/minitest-retry.svg?branch=master)](https://travis-ci.org/y-yagi/minitest-retry)
5
+ ![](https://github.com/y-yagi/minitest-retry/workflows/CI/badge.svg)
6
6
  [![Gem Version](https://badge.fury.io/rb/minitest-retry.svg)](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
  ```
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Retry
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-01-24 00:00:00.000000000 Z
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
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.8
4
- - 2.4.6
5
- - 2.5.7
6
- - 2.6.5
7
- - ruby-head
8
-
9
- allow_failures:
10
- - rvm: ruby-head