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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7cb719ef5d9d91b9db2c7c3f7785bac68c60059a
4
- data.tar.gz: 93b670a1a37b11c3ad4bc1f4dcfc1379508e10b5
2
+ SHA256:
3
+ metadata.gz: 77a71a1febc8263a2ed066cb8de4648a44167d53be1420f710b675d2870a436c
4
+ data.tar.gz: 3f8b5c7b713d2faef1869d16d601bb0640760d1ff6891d601f9c29fd4a24be62
5
5
  SHA512:
6
- metadata.gz: 6b83f82b8d0e1fc41d4eeac832d18ec6f118c4252b43a86e73f15ca35da94c6bf854a4b89f8174184ac53fb519e77fd475417f1c78b88f2eec21a959873d776e
7
- data.tar.gz: a0ad59400c43ae7610da2f8bb830ae9a248011b04a55f36dad6a6d6650c32ee9b202d15c2459b29ca433e17625607d3d4417a72de54f154ed15c9b729869b79c
6
+ metadata.gz: d4d5e86080b502aa6cf172acfcedeb1d80ce2df8ba0806f9f0b6ec9be8b621aa82f2b185c44dd103a51f05711f5c5f64f40528657fb2d05a95bd1df73fd19f0f
7
+ data.tar.gz: 7d49a021bb20b7321a5daa36208ff40457e541fa5a8c229e3bc4c221cd98119958d30b69db75abbe38d89b89890c30d43d2951a84376ac908a72a8ce04a9266d
data/.gitignore CHANGED
@@ -15,6 +15,7 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ vendor
18
19
  *.bundle
19
20
  *.so
20
21
  *.o
@@ -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
7
- - 2.3.4
8
- - 2.4.1
9
- - ruby-head
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(Proc.new, assertion_method: __method__) do |pa|
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(Proc.new, assertion_method: __method__) do |pa|
21
+ ::PowerAssert.start(block, assertion_method: __method__) do |pa|
22
22
  super pa.yield, pa.extend(ContextExtension)
23
23
  end
24
24
  else
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module PowerAssert
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -21,6 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "minitest"
22
22
  spec.add_dependency "power_assert", ">= 1.1"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.6"
25
24
  spec.add_development_dependency "rake"
26
25
  end
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.0
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: 2017-08-21 00:00:00.000000000 Z
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
- rubyforge_project:
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.