rspec-retry_ex 0.1.0.pre.patch → 0.1.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/.rubocop.yml +0 -9
- data/.travis.yml +5 -6
- data/lib/rspec/retry_ex/retry_handler.rb +1 -3
- data/lib/rspec/retry_ex/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43e3fdbe9dd0570e23967b2e9d89d6c85eb04156012e9df200022c3928a9c17d
|
|
4
|
+
data.tar.gz: 25cf0b2a6efa98e0dda7af401ac1e79fbd594892f9497d393d7d2c05f7d3c951
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 656cb1dc53698862773b27e2c2818080fd827ad89f435bd1d62503d3b168122f4cb519c8bdfce918e4ef28b49b43c3f3be1420eae1fb3d91221b32673b17e216
|
|
7
|
+
data.tar.gz: fbb00a7071d39d43417d691c995428c0f33b3343eeab6dfdc867820271f61ae52c484e92f90eb3259c6b218f749f1083e7909345bc0baaafd8ec43991362e46a
|
data/.rubocop.yml
CHANGED
|
@@ -2,9 +2,6 @@ AllCops:
|
|
|
2
2
|
Exclude:
|
|
3
3
|
- rspec-retry_ex.gemspec
|
|
4
4
|
- tmp/**/*
|
|
5
|
-
- Rakefile
|
|
6
|
-
- Gemfile
|
|
7
|
-
- spec/spec_helper.rb
|
|
8
5
|
|
|
9
6
|
Metrics/LineLength:
|
|
10
7
|
Max: 100
|
|
@@ -20,9 +17,3 @@ Layout/IndentationConsistency:
|
|
|
20
17
|
|
|
21
18
|
Metrics/CyclomaticComplexity:
|
|
22
19
|
Max: 10
|
|
23
|
-
|
|
24
|
-
Style/TrailingCommaInArrayLiteral:
|
|
25
|
-
EnforcedStyleForMultiline: comma
|
|
26
|
-
|
|
27
|
-
Style/TrailingCommaInHashLiteral:
|
|
28
|
-
EnforcedStyleForMultiline: comma
|
data/.travis.yml
CHANGED
|
@@ -2,9 +2,9 @@ sudo: false
|
|
|
2
2
|
language: ruby
|
|
3
3
|
rvm:
|
|
4
4
|
- 2.2.10
|
|
5
|
-
- 2.3.
|
|
6
|
-
- 2.4.
|
|
7
|
-
- 2.5.
|
|
5
|
+
- 2.3.7
|
|
6
|
+
- 2.4.4
|
|
7
|
+
- 2.5.1
|
|
8
8
|
gemfile:
|
|
9
9
|
- gemfiles/rspec_33x.gemfile
|
|
10
10
|
- gemfiles/rspec_34x.gemfile
|
|
@@ -16,15 +16,14 @@ branches:
|
|
|
16
16
|
only:
|
|
17
17
|
- master
|
|
18
18
|
before_install:
|
|
19
|
-
- gem
|
|
20
|
-
- gem install bundler
|
|
19
|
+
- gem update --system --no-doc
|
|
20
|
+
- gem install bundler
|
|
21
21
|
before_script:
|
|
22
22
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
23
23
|
- chmod +x ./cc-test-reporter
|
|
24
24
|
- ./cc-test-reporter before-build
|
|
25
25
|
script:
|
|
26
26
|
- bundle exec rspec spec
|
|
27
|
-
- rubocop
|
|
28
27
|
after_script:
|
|
29
28
|
- |
|
|
30
29
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
@@ -13,7 +13,7 @@ module RSpec
|
|
|
13
13
|
@counter += 1
|
|
14
14
|
yield
|
|
15
15
|
success_message
|
|
16
|
-
rescue RSpec::Expectations::ExpectationNotMetError
|
|
16
|
+
rescue RSpec::Expectations::ExpectationNotMetError => e
|
|
17
17
|
call_around_retry(after_retry)
|
|
18
18
|
failure_message(e, count)
|
|
19
19
|
retry if @counter < count
|
|
@@ -26,13 +26,11 @@ module RSpec
|
|
|
26
26
|
|
|
27
27
|
def call_around_retry(around_retry)
|
|
28
28
|
return if around_retry.nil?
|
|
29
|
-
|
|
30
29
|
around_retry.call
|
|
31
30
|
end
|
|
32
31
|
|
|
33
32
|
def success_message
|
|
34
33
|
return unless @counter > 1
|
|
35
|
-
|
|
36
34
|
message = "Congratulations! #{ordinalize(@counter)} try has succeeded!.\n"
|
|
37
35
|
RSpec.configuration.reporter.message(message)
|
|
38
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-retry_ex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yuyasat
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec-core
|
|
@@ -167,11 +167,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
version: '0'
|
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
|
170
|
-
- - "
|
|
170
|
+
- - ">="
|
|
171
171
|
- !ruby/object:Gem::Version
|
|
172
|
-
version:
|
|
172
|
+
version: '0'
|
|
173
173
|
requirements: []
|
|
174
|
-
|
|
174
|
+
rubyforge_project:
|
|
175
|
+
rubygems_version: 2.7.6
|
|
175
176
|
signing_key:
|
|
176
177
|
specification_version: 4
|
|
177
178
|
summary: retry rspec one target `expect`
|