minitest-around 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb63c6d3f4f957e2535fa121e4e413966f0f30ab
4
- data.tar.gz: c7cb8f185d23a3698e508964bd38420327246cb0
3
+ metadata.gz: 9c391f553ee9e6049fd43081824bddc7973769f8
4
+ data.tar.gz: '050277022766548815004037a5db0fe496564b39'
5
5
  SHA512:
6
- metadata.gz: f897b27acd78342d5a1e6e2ee26f043a87887e9c37c36ec60928c389baecbfd3e5126b20d0614ad0051382cd4a8176478aca86452bead4935928230ab8772cf0
7
- data.tar.gz: 1de5cf292cd02d336d484e82cbd7897fcfe7d55ff82e1d357d9ef3d39ca9288172447ee0326080b9e2e082e348a23be43f6f16819a7b70530ace71498d587858
6
+ metadata.gz: '009f679adaa112d237f820e8088d8ea19846ac7f3f8898cba37e68422d712febddd4f2915beb9cd0c46d60d4920fb44da7e95c2419b523bca5be67e229595042'
7
+ data.tar.gz: a97f223c48a33973a47e844ca2f893cefd9fff090552b625044a8597dbfd0c972d2a5887c1db9f08b98009dccae92eb571b8799463237788220883b0c4438b30
@@ -5,7 +5,8 @@ rvm:
5
5
  - 2.0
6
6
  - 2.1
7
7
  - 2.2
8
- - 2.3.1
8
+ - 2.3
9
+ - 2.4
9
10
  - ruby-head
10
11
  - jruby
11
12
  - jruby-head
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
@@ -1,4 +1,5 @@
1
1
  Copyright (c) 2012 Peter Suschlik
2
+ Copyright (c) 2018 Peter Leitzen (Suschlik)
2
3
 
3
4
  MIT License
4
5
 
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 Suschlik](https://github.com/splattael)
98
+ * [Peter Leitzen](https://github.com/splattael)
101
99
 
102
100
  ## [Contributors](https://github.com/splattael/minitest-around/graphs/contributors)
103
101
 
@@ -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
- around { run_without_around(*args) }
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
@@ -1,3 +1,3 @@
1
1
  module MinitestAround
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -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 Suschlik"]
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
- - Peter Suschlik
7
+ - Peter Leitzen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
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.5.1
117
+ rubygems_version: 2.6.13
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Around block for minitest.