rspec-matchers-power_assert_matchers 0.0.3 → 0.2.0

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
  SHA256:
3
- metadata.gz: e6cc783a2dc91e2df5de1dea821aefec6babe3e3b7957791f401366c07ffe991
4
- data.tar.gz: d485c0c8c00545644f725d2c8e46f30aa61fd588092660ef85859cdffee1329b
3
+ metadata.gz: ac62e974b1a75d00e5f532cfd70614a07837068201ffce2b0cb09c7a2b45b716
4
+ data.tar.gz: 6c89e1585ba0494f28b1438509670d7298dbb21b0dc49b6f32abb33c7294ed26
5
5
  SHA512:
6
- metadata.gz: 0f5ba0874b1396b50409ef540990c3a459cf6d2737ec04598365928715758c0aa5e00e64e632c342b88cee221dfb0e6cd94c37082f3db34f3f28b67e66bfa38b
7
- data.tar.gz: 3054c927a8d895b48c9608f4922f92f977f44f6adc08b403a22d253cbc40abef9312038ff18ba71c424cf260871460f5ea6c4e0b5a3d4f2f86247c17a971f8fd
6
+ metadata.gz: 6849099f95c3045ed454ab6598245590934f4de935ea36d53505a77c659164bf5fb0f4dfd499909da0ca7289c6038f07c41d124526d735ec7bb8593f8a99cbbb
7
+ data.tar.gz: ba821196585775eb1bcf4f73599bb7c28229394107f64461539efbb3e564f6345429b5f77a9222b1e045bbdc07db811e4e7d887d80a81612a6919f5e37e44229
data/README.md CHANGED
@@ -1,7 +1,7 @@
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)
4
- [![Gem Version](https://badge.fury.io/rb/rspec-matchers-power_assert_matchers.png)](http://badge.fury.io/rb/rspec-matchers-power_assert_matchers)
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
+ [![Gem Version](https://badge.fury.io/rb/rspec-matchers-power_assert_matchers.svg)](https://badge.fury.io/rb/rspec-matchers-power_assert_matchers)
5
5
 
6
6
  ## Overview
7
7
 
@@ -10,21 +10,26 @@
10
10
 
11
11
  [ruby/power_assert](https://github.com/ruby/power_assert) integration for RSpec.
12
12
 
13
- Without no monkey patching for Ruby and RSpec.
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
- Just using [RSpec's Custom matchers way](https://relishapp.com/rspec/rspec-expectations/v/3-10/docs/custom-matchers)
17
+ ## Usage
16
18
 
17
- I hope this might be a choice of using `PowerAssert` for RSpec lovers.
19
+ Require following dependencies
18
20
 
19
- ## Usage
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
- Require Ruby 2.6 or later
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.3'
32
+ gem.add_development_dependency 'rspec-matchers-power_assert_matchers', '~> 0.2.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.3'
40
+ gem 'rspec-matchers-power_assert_matchers', '~> 0.2.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
- * Currently the matcher is named `be_assert`. I don't have confident it is good ot not.
94
- * Extending built-in `be_truthy` sounds good for considering the role, but I would not like to add monkey patching for built-in features...
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
- * [power-assert-js/power-assert](https://github.com/power-assert-js/power-assert)
99
- * [Power Assert in Ruby](https://speakerdeck.com/k_tsj/power-assert-in-ruby)
100
- * [Another way of power_assert in rspec - joker1007/rspec-power_assert](https://github.com/joker1007/rspec-power_assert)
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)
@@ -4,7 +4,7 @@
4
4
  module RSpec
5
5
  module Matchers
6
6
  module PowerAssertMatchers
7
- VERSION = '0.0.3'
7
+ VERSION = '0.2.0'
8
8
  end
9
9
  end
10
10
  end
@@ -26,7 +26,7 @@ RSpec::Matchers.define(:be_assert) do
26
26
  match(notify_expectation_failures: true) do |actual|
27
27
  case actual
28
28
  when Proc
29
- result = ::PowerAssert.start(actual, assertion_method: __callee__) do |pa|
29
+ result = PowerAssert.start(actual, assertion_method: __callee__) do |pa|
30
30
  # https://github.com/rspec/rspec-expectations/blob/040d1b0bba83031c9ae432fd3a4462fdd1cc74e7/lib/rspec/matchers/dsl.rb#L200-L217
31
31
  # @TODO: Should simulate be_truthy message? https://github.com/rspec/rspec-expectations/blob/43bf64b01f8356979ffbc373b2e81d2ab1389b29/lib/rspec/matchers/built_in/be.rb#L7-L18
32
32
  dsl_context.failure_message do
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.3
4
+ version: 0.2.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-05-09 00:00:00.000000000 Z
11
+ date: 2022-12-25 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.1
39
+ version: 2.0.3
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.1
49
+ version: 2.0.3
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.1
59
+ version: 1.4.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.0'
@@ -66,11 +66,11 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.4.1
69
+ version: 1.4.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '2.0'
73
- description: "`power_assert in rspec` as a pure custom matcher"
73
+ description: '"ruby/power_assert" integration for RSpec. No monkey patching exists.'
74
74
  email:
75
75
  - kachick1+ruby@gmail.com
76
76
  executables: []
@@ -97,14 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: 2.6.0
100
+ version: 2.7.2
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.3.7
107
+ rubygems_version: 3.4.1
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: "`power_assert in rspec` as a pure custom matcher"