rspec-matchers-power_assert_matchers 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -13
- data/lib/rspec/matchers/power_assert_matchers/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7833fbb97466f53714d4e451a63a5d94ea4b9132dff0ee626719cbbf94884375
|
4
|
+
data.tar.gz: 5161ac914f017233aa23c0209846f3d5b1ddcee44cd96cf4cc3b477360cc9cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd128e80f7c116ad2e17387840b1b8ebfe9498e71cd89b577c67c7df7048c0399d54a38c5553fbfbf746ffde5a6b45f543962f325d1c261e38e752c8d06d3cd5
|
7
|
+
data.tar.gz: 771a1264d31a6b745b5a561c06985fc8860b99201f4a0ed32081fd417862e7391a22b7a8561642ceec8c97652b3372082d531efe0eb1d7818c2f86f941bbb58e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# rspec-matchers-power_assert_matchers
|
2
2
|
|
3
|
-
![Build Status](https://github.com/kachick/rspec-matchers-power_assert_matchers/actions/workflows/spec.yml/badge.svg?branch=main)
|
3
|
+
[![Build Status](https://github.com/kachick/rspec-matchers-power_assert_matchers/actions/workflows/spec.yml/badge.svg?branch=main)](https://github.com/kachick/rspec-matchers-power_assert_matchers/actions/workflows/spec.yml?query=branch%3Amain+)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/rspec-matchers-power_assert_matchers.png)](http://badge.fury.io/rb/rspec-matchers-power_assert_matchers)
|
5
5
|
|
6
6
|
## Overview
|
@@ -10,21 +10,26 @@
|
|
10
10
|
|
11
11
|
[ruby/power_assert](https://github.com/ruby/power_assert) integration for RSpec.
|
12
12
|
|
13
|
-
|
13
|
+
No monkey patching exists.\
|
14
|
+
Just using [RSpec's Custom matchers way](https://relishapp.com/rspec/rspec-expectations/v/3-10/docs/custom-matchers).\
|
15
|
+
I hope this might be a choice to integrate `PowerAssert` in RSpec.
|
14
16
|
|
15
|
-
|
17
|
+
## Usage
|
16
18
|
|
17
|
-
|
19
|
+
Require following dependencies
|
18
20
|
|
19
|
-
|
21
|
+
- Ruby 2.7 or later
|
22
|
+
- [rspec](https://rubygems.org/gems/rspec/)
|
23
|
+
- [power_assert](https://rubygems.org/gems/power_assert)
|
24
|
+
- [irb](https://rubygems.org/gems/irb) # To colorize
|
20
25
|
|
21
|
-
|
26
|
+
See [gemspec](rspec-matchers-power_assert_matchers.gemspec) for detail of the version restriction.
|
22
27
|
|
23
28
|
Add below code into your `library`'s gemspec
|
24
29
|
|
25
30
|
```ruby
|
26
31
|
Gem::Specification.new do |gem|
|
27
|
-
gem.add_development_dependency 'rspec-matchers-power_assert_matchers', '0.0
|
32
|
+
gem.add_development_dependency 'rspec-matchers-power_assert_matchers', '~> 0.1.0'
|
28
33
|
end
|
29
34
|
```
|
30
35
|
|
@@ -32,7 +37,7 @@ Or add below into your `application`'s `Gemfile`
|
|
32
37
|
|
33
38
|
```ruby
|
34
39
|
group :test do
|
35
|
-
gem 'rspec-matchers-power_assert_matchers', '0.0
|
40
|
+
gem 'rspec-matchers-power_assert_matchers', '~> 0.1.0'
|
36
41
|
end
|
37
42
|
```
|
38
43
|
|
@@ -90,11 +95,11 @@ Some results will be shown!
|
|
90
95
|
|
91
96
|
## NOTE
|
92
97
|
|
93
|
-
|
94
|
-
|
98
|
+
- Currently the matcher is named `be_assert`. I don't have confident it is good ot not.
|
99
|
+
- Extending built-in `be_truthy` sounds good for considering the role, but I would not like to add monkey patching for built-in features...
|
95
100
|
|
96
101
|
## References
|
97
102
|
|
98
|
-
|
99
|
-
|
100
|
-
|
103
|
+
- [power-assert-js/power-assert](https://github.com/power-assert-js/power-assert)
|
104
|
+
- [Power Assert in Ruby](https://speakerdeck.com/k_tsj/power-assert-in-ruby)
|
105
|
+
- [Another way of power_assert in rspec - joker1007/rspec-power_assert](https://github.com/joker1007/rspec-power_assert)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-matchers-power_assert_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenichi Kamiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.0.
|
39
|
+
version: 2.0.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '3.0'
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.0.
|
49
|
+
version: 2.0.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '3.0'
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.4.
|
59
|
+
version: 1.4.0
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.0'
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.4.
|
69
|
+
version: 1.4.0
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '2.0'
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.
|
100
|
+
version: 2.7.2
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - ">="
|