matchi 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +5 -5
- data/lib/matchi/change.rb +2 -2
- data/lib/matchi.rb +1 -1
- metadata +5 -117
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5831db6ac7cfec32997d0683fb756c4442fa516702cdb410556fc9c790de1f03
|
4
|
+
data.tar.gz: 679942f7da92507e0cc4e944a3d9761cbb7d72083cb71ab7e5302a154fe889c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f75dea44631fe6a02dc2909e8d7ba1e1964e953a34268b021135436d45d49e9de25d439a7c4436c449c5366c57193bbf0d1e652fe8bf6439be1b17218c04ce82
|
7
|
+
data.tar.gz: 03acf53bf37c0f1397b8366dd2463faa174c2be364a234bb86b7a4c49cd540abf3e1749790822992a5420367260807a3de611840ccee74165e1bf204fbc4f571
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Matchi
|
2
2
|
|
3
|
-
[![Version](https://img.shields.io/github/v/tag/fixrb/matchi?label=Version&logo=github)](https://github.com/fixrb/matchi/
|
3
|
+
[![Version](https://img.shields.io/github/v/tag/fixrb/matchi?label=Version&logo=github)](https://github.com/fixrb/matchi/tags)
|
4
4
|
[![Yard documentation](https://img.shields.io/badge/Yard-documentation-blue.svg?logo=github)](https://rubydoc.info/github/fixrb/matchi/main)
|
5
|
-
[![
|
5
|
+
[![Ruby](https://github.com/fixrb/matchi/workflows/Ruby/badge.svg?branch=main)](https://github.com/fixrb/matchi/actions?query=workflow%3Aruby+branch%3Amain)
|
6
6
|
[![RuboCop](https://github.com/fixrb/matchi/workflows/RuboCop/badge.svg?branch=main)](https://github.com/fixrb/matchi/actions?query=workflow%3Arubocop+branch%3Amain)
|
7
7
|
[![License](https://img.shields.io/github/license/fixrb/matchi?label=License&logo=github)](https://github.com/fixrb/matchi/raw/main/LICENSE.md)
|
8
8
|
|
@@ -27,7 +27,7 @@ gem "matchi"
|
|
27
27
|
And then execute:
|
28
28
|
|
29
29
|
```sh
|
30
|
-
bundle
|
30
|
+
bundle install
|
31
31
|
```
|
32
32
|
|
33
33
|
Or install it yourself as:
|
@@ -226,7 +226,7 @@ module Matchi
|
|
226
226
|
end
|
227
227
|
|
228
228
|
def matches?
|
229
|
-
|
229
|
+
/\A#{expected}/.match?(yield)
|
230
230
|
end
|
231
231
|
end
|
232
232
|
end
|
@@ -256,5 +256,5 @@ The [gem](https://rubygems.org/gems/matchi) is available as open source under th
|
|
256
256
|
This project is sponsored by:<br />
|
257
257
|
<a href="https://sashite.com/"><img
|
258
258
|
src="https://github.com/fixrb/matchi/raw/main/img/sashite.png"
|
259
|
-
alt="
|
259
|
+
alt="Sashité" /></a>
|
260
260
|
</p>
|
data/lib/matchi/change.rb
CHANGED
@@ -21,8 +21,8 @@ module Matchi
|
|
21
21
|
# @param method [Symbol] The name of a method.
|
22
22
|
# @param args [Array] A list of arguments.
|
23
23
|
# @param kwargs [Hash] A list of keyword arguments.
|
24
|
-
def initialize(object, method,
|
25
|
-
@state = -> { object.send(method,
|
24
|
+
def initialize(object, method, ...)
|
25
|
+
@state = -> { object.send(method, ...) }
|
26
26
|
end
|
27
27
|
|
28
28
|
# Specifies a minimum delta of the expected change.
|
data/lib/matchi.rb
CHANGED
metadata
CHANGED
@@ -1,127 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matchi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rubocop-md
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop-performance
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop-rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-thread_safety
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: simplecov
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: yard
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
125
13
|
description: "Collection of expectation matchers for Rubyists \U0001F939"
|
126
14
|
email: contact@cyril.email
|
127
15
|
executables: []
|
@@ -160,14 +48,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
48
|
requirements:
|
161
49
|
- - ">="
|
162
50
|
- !ruby/object:Gem::Version
|
163
|
-
version: 2.
|
51
|
+
version: 3.2.0
|
164
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
53
|
requirements:
|
166
54
|
- - ">="
|
167
55
|
- !ruby/object:Gem::Version
|
168
56
|
version: '0'
|
169
57
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
58
|
+
rubygems_version: 3.4.19
|
171
59
|
signing_key:
|
172
60
|
specification_version: 4
|
173
61
|
summary: "Collection of expectation matchers for Rubyists \U0001F939"
|