matchi 2.0.1 → 2.0.2
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 +4 -4
- data/README.md +5 -11
- data/lib/matchi/matcher/match.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbd646c1f880291334b1f98426cfdedab736a2f87bbb44e149e81bcb5f8affce
|
|
4
|
+
data.tar.gz: 9e285052b96848df8be1c22c2033032d2dcbe143ac4d84fa26e9e61b42ac8ee4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d81a615fca3627cf424226c015e63ab09419be15059b83e926afa3d99819153ced25afca5adfe1421d85bbffcaf4048f2c36531b14b6a9f4920a1f7edf9efd61
|
|
7
|
+
data.tar.gz: e80cd7a69eef70a3ca0fc80bb4bf94468c14de22a9309d4bf736ea050e5feeeadf69216eadddc6e4ee678c08ccf64949729a3ef830ed9e1b4b3ca3d5ba23d0f7
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[][inchpages]
|
|
7
7
|
[][rubydoc]
|
|
8
8
|
|
|
9
|
-
> Collection of expectation matchers for Ruby
|
|
9
|
+
> Collection of expectation matchers for Ruby 🤹
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module Matchi
|
|
|
88
88
|
module Matcher
|
|
89
89
|
class BeTheAnswer < ::Matchi::Matcher::Base
|
|
90
90
|
def matches?
|
|
91
|
-
42.equal?
|
|
91
|
+
42.equal?(yield)
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
end
|
|
@@ -107,7 +107,7 @@ module Matchi
|
|
|
107
107
|
module Matcher
|
|
108
108
|
class BePrime < ::Matchi::Matcher::Base
|
|
109
109
|
def matches?
|
|
110
|
-
Prime.prime?
|
|
110
|
+
Prime.prime?(yield)
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
end
|
|
@@ -129,7 +129,7 @@ module Matchi
|
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
def matches?
|
|
132
|
-
|
|
132
|
+
Regexp.new(/\A#{expected}/).match?(yield)
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
end
|
|
@@ -144,19 +144,13 @@ start_with.matches? { "foobar" } # => true
|
|
|
144
144
|
* Home page: https://github.com/fixrb/matchi
|
|
145
145
|
* Bugs/issues: https://github.com/fixrb/matchi/issues
|
|
146
146
|
|
|
147
|
-
## Rubies
|
|
148
|
-
|
|
149
|
-
* [MRI](https://www.ruby-lang.org/)
|
|
150
|
-
* [Rubinius](https://rubinius.com/)
|
|
151
|
-
* [JRuby](https://www.jruby.org/)
|
|
152
|
-
|
|
153
147
|
## Versioning
|
|
154
148
|
|
|
155
149
|
__Matchi__ follows [Semantic Versioning 2.0](https://semver.org/).
|
|
156
150
|
|
|
157
151
|
## License
|
|
158
152
|
|
|
159
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
153
|
+
The [gem](https://rubygems.org/gems/matchi) is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
160
154
|
|
|
161
155
|
***
|
|
162
156
|
|
data/lib/matchi/matcher/match.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: matchi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.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: 2021-
|
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,7 +122,7 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
-
description: Collection of expectation matchers for Ruby
|
|
125
|
+
description: "Collection of expectation matchers for Ruby \U0001F939"
|
|
126
126
|
email: contact@cyril.email
|
|
127
127
|
executables: []
|
|
128
128
|
extensions: []
|
|
@@ -160,8 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
160
160
|
- !ruby/object:Gem::Version
|
|
161
161
|
version: '0'
|
|
162
162
|
requirements: []
|
|
163
|
-
rubygems_version: 3.1.
|
|
163
|
+
rubygems_version: 3.1.6
|
|
164
164
|
signing_key:
|
|
165
165
|
specification_version: 4
|
|
166
|
-
summary: Collection of expectation matchers for Ruby
|
|
166
|
+
summary: "Collection of expectation matchers for Ruby \U0001F939"
|
|
167
167
|
test_files: []
|