minitest-power_assert 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +11 -7
- data/lib/minitest/power_assert.rb +4 -4
- data/lib/minitest/power_assert/version.rb +1 -1
- data/minitest-power_assert.gemspec +0 -1
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 77a71a1febc8263a2ed066cb8de4648a44167d53be1420f710b675d2870a436c
|
4
|
+
data.tar.gz: 3f8b5c7b713d2faef1869d16d601bb0640760d1ff6891d601f9c29fd4a24be62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d5e86080b502aa6cf172acfcedeb1d80ce2df8ba0806f9f0b6ec9be8b621aa82f2b185c44dd103a51f05711f5c5f64f40528657fb2d05a95bd1df73fd19f0f
|
7
|
+
data.tar.gz: 7d49a021bb20b7321a5daa36208ff40457e541fa5a8c229e3bc4c221cd98119958d30b69db75abbe38d89b89890c30d43d2951a84376ac908a72a8ce04a9266d
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
+
dist: xenial
|
1
2
|
language: ruby
|
2
|
-
|
3
|
-
before_install: gem update bundler --no-document
|
4
|
-
|
5
3
|
rvm:
|
6
|
-
- 2.2
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
|
-
-
|
4
|
+
- 2.2
|
5
|
+
- 2.3
|
6
|
+
- 2.4
|
7
|
+
- 2.5
|
8
|
+
- 2.6
|
9
|
+
- 2.7
|
10
|
+
cache:
|
11
|
+
bundler: true
|
12
|
+
script:
|
13
|
+
- bundle exec rake
|
@@ -6,9 +6,9 @@ require 'power_assert'
|
|
6
6
|
module Minitest
|
7
7
|
module PowerAssert
|
8
8
|
module Assertions
|
9
|
-
def assert(test = nil, msg = nil)
|
9
|
+
def assert(test = nil, msg = nil, &block)
|
10
10
|
if block_given?
|
11
|
-
::PowerAssert.start(
|
11
|
+
::PowerAssert.start(block, assertion_method: __method__) do |pa|
|
12
12
|
super pa.yield, pa.extend(ContextExtension)
|
13
13
|
end
|
14
14
|
else
|
@@ -16,9 +16,9 @@ module Minitest
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
def refute(test = nil, msg = nil)
|
19
|
+
def refute(test = nil, msg = nil, &block)
|
20
20
|
if block_given?
|
21
|
-
::PowerAssert.start(
|
21
|
+
::PowerAssert.start(block, assertion_method: __method__) do |pa|
|
22
22
|
super pa.yield, pa.extend(ContextExtension)
|
23
23
|
end
|
24
24
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-power_assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SHIBATA Hiroshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.6'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.6'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
90
|
- !ruby/object:Gem::Version
|
105
91
|
version: '0'
|
106
92
|
requirements: []
|
107
|
-
|
108
|
-
rubygems_version: 2.6.12
|
93
|
+
rubygems_version: 3.0.3
|
109
94
|
signing_key:
|
110
95
|
specification_version: 4
|
111
96
|
summary: Power Assert for Minitest.
|