minitest-around 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +1 -1
- data/LICENSE +1 -0
- data/README.md +1 -3
- data/lib/minitest/around/unit.rb +3 -2
- data/lib/minitest/around/version.rb +1 -1
- data/minitest-around.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c391f553ee9e6049fd43081824bddc7973769f8
|
4
|
+
data.tar.gz: '050277022766548815004037a5db0fe496564b39'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '009f679adaa112d237f820e8088d8ea19846ac7f3f8898cba37e68422d712febddd4f2915beb9cd0c46d60d4920fb44da7e95c2419b523bca5be67e229595042'
|
7
|
+
data.tar.gz: a97f223c48a33973a47e844ca2f893cefd9fff090552b625044a8597dbfd0c972d2a5887c1db9f08b98009dccae92eb571b8799463237788220883b0c4438b30
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,5 +3,5 @@ source "https://rubygems.org"
|
|
3
3
|
gemspec # Specify dependencies in minitest-around.gemspec
|
4
4
|
|
5
5
|
if ENV['CODECLIMATE_REPO_TOKEN']
|
6
|
-
gem "codeclimate-test-reporter", :group => :test, :require => nil
|
6
|
+
gem "codeclimate-test-reporter", "~> 0.0", :group => :test, :require => nil
|
7
7
|
end
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -29,8 +29,6 @@ gem install minitest-around
|
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
-
See [examples](/examples) directory for some example usage..
|
33
|
-
|
34
32
|
### Unit tests
|
35
33
|
|
36
34
|
```Ruby
|
@@ -97,7 +95,7 @@ for `minitest` 4.7.X support.
|
|
97
95
|
|
98
96
|
## Authors
|
99
97
|
|
100
|
-
* [Peter
|
98
|
+
* [Peter Leitzen](https://github.com/splattael)
|
101
99
|
|
102
100
|
## [Contributors](https://github.com/splattael/minitest-around/graphs/contributors)
|
103
101
|
|
data/lib/minitest/around/unit.rb
CHANGED
@@ -6,10 +6,11 @@ Minitest::Test.class_eval do
|
|
6
6
|
alias_method :run_without_around, :run
|
7
7
|
def run(*args)
|
8
8
|
if defined?(around)
|
9
|
-
|
9
|
+
result = nil
|
10
|
+
around { result = run_without_around(*args) }
|
11
|
+
result
|
10
12
|
else
|
11
13
|
run_without_around(*args)
|
12
14
|
end
|
13
|
-
self
|
14
15
|
end
|
15
16
|
end
|
data/minitest-around.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require './lib/minitest/around/version'
|
2
2
|
|
3
3
|
Gem::Specification.new "minitest-around", MinitestAround::VERSION do |s|
|
4
|
-
s.authors = ["Peter
|
4
|
+
s.authors = ["Peter Leitzen"]
|
5
5
|
s.email = ["peter-minitest-around@suschlik.de"]
|
6
6
|
s.homepage = "https://github.com/splattael/minitest-around"
|
7
7
|
s.summary = "Around block for minitest."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-around
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Peter
|
7
|
+
- Peter Leitzen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.6.13
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Around block for minitest.
|