matchi 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -8
- data/README.md +9 -11
- data/VERSION.semver +1 -1
- data/checksum/matchi-1.0.4.gem.sha512 +1 -0
- data/lib/matchi.rb +1 -1
- data/lib/matchi/matchers.rb +1 -1
- data/lib/matchi/matchers/be_false.rb +1 -1
- data/lib/matchi/matchers/be_nil.rb +1 -1
- data/lib/matchi/matchers/be_true.rb +1 -1
- data/lib/matchi/matchers/eql.rb +1 -1
- data/lib/matchi/matchers/equal.rb +1 -1
- data/lib/matchi/matchers/match.rb +1 -1
- data/lib/matchi/matchers/raise_exception.rb +1 -1
- data/lib/matchi/matchers_base.rb +1 -1
- data/matchi.gemspec +4 -4
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf4ea2585e0f28100e46fc43359e72a2144914c34b7054b8eefbbbf50554aeb
|
4
|
+
data.tar.gz: d4bd35c7e7d76bea0351970a5d298832f78df357b5609cbc14226691858e3933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a4faa1e51f9c7e19628251f64eac732b793a0a85a7ee40f46294d92ed80c1b8b0590ad11282698a48a26edd048a53ef31305843bf1caac0921ccb2af47852e
|
7
|
+
data.tar.gz: 7d0cc22350a289c524c77ee67e972b05872c5d97d0e6e573278e3ba858d5b0583e7916d1a8f2e62e8358f192d8f7f5792846914fc5f3ca9788d8c6686c5ce005
|
data/.rubocop_todo.yml
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 0.76.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: PreferredName.
|
11
|
-
Naming/RescuedExceptionsVariableName:
|
12
|
-
Exclude:
|
13
|
-
- 'lib/matchi/matchers/raise_exception.rb'
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Matchi
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/fixrb/matchi.svg?branch=master)][travis]
|
3
|
+
[![Build Status](https://api.travis-ci.org/fixrb/matchi.svg?branch=master)][travis]
|
4
4
|
[![Code Climate](https://codeclimate.com/github/fixrb/matchi/badges/gpa.svg)][codeclimate]
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/matchi.svg)][gem]
|
6
|
-
[![Inline docs](
|
7
|
-
[![Documentation](
|
6
|
+
[![Inline docs](https://inch-ci.org/github/fixrb/matchi.svg?branch=master)][inchpages]
|
7
|
+
[![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
|
8
8
|
|
9
9
|
> Collection of expectation matchers for Ruby.
|
10
10
|
|
@@ -12,13 +12,12 @@
|
|
12
12
|
|
13
13
|
* Home page: https://github.com/fixrb/matchi
|
14
14
|
* Bugs/issues: https://github.com/fixrb/matchi/issues
|
15
|
-
* Support: https://stackoverflow.com/questions/tagged/matchi
|
16
15
|
|
17
16
|
## Rubies
|
18
17
|
|
19
18
|
* [MRI](https://www.ruby-lang.org/)
|
20
|
-
* [Rubinius](
|
21
|
-
* [JRuby](
|
19
|
+
* [Rubinius](https://rubinius.com/)
|
20
|
+
* [JRuby](https://www.jruby.org/)
|
22
21
|
|
23
22
|
## Installation
|
24
23
|
|
@@ -195,7 +194,7 @@ example:
|
|
195
194
|
|
196
195
|
## Versioning
|
197
196
|
|
198
|
-
__Matchi__ follows [Semantic Versioning 2.0](
|
197
|
+
__Matchi__ follows [Semantic Versioning 2.0](https://semver.org/).
|
199
198
|
|
200
199
|
## Contributing
|
201
200
|
|
@@ -212,12 +211,11 @@ See `LICENSE.md` file.
|
|
212
211
|
[gem]: https://rubygems.org/gems/matchi
|
213
212
|
[travis]: https://travis-ci.org/fixrb/matchi
|
214
213
|
[codeclimate]: https://codeclimate.com/github/fixrb/matchi
|
215
|
-
[
|
216
|
-
[
|
217
|
-
[rubydoc]: http://rubydoc.info/gems/matchi/frames
|
214
|
+
[inchpages]: https://inch-ci.org/github/fixrb/matchi
|
215
|
+
[rubydoc]: https://rubydoc.info/gems/matchi/frames
|
218
216
|
|
219
217
|
***
|
220
218
|
|
221
219
|
This project is sponsored by:
|
222
220
|
|
223
|
-
[![Sashite](https://
|
221
|
+
[![Sashite](https://pbs.twimg.com/profile_images/618485028322975744/PZ9qPuI__400x400.png)](https://sashite.com/)
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -0,0 +1 @@
|
|
1
|
+
fcd3a51ded233ec0edb84e2c71ea1363bb56f46828ccedf4ad3d26c88a65654561733905d64c235ca259eb2de0b39c9470ba1c9807eed3dbc8a3f3e4c59d183e
|
data/lib/matchi.rb
CHANGED
data/lib/matchi/matchers.rb
CHANGED
data/lib/matchi/matchers/eql.rb
CHANGED
data/lib/matchi/matchers_base.rb
CHANGED
@@ -7,7 +7,7 @@ module Matchi
|
|
7
7
|
#
|
8
8
|
# @raise [NotImplementedError] Override me inside a Matcher subclass please.
|
9
9
|
def matches?
|
10
|
-
raise NotImplementedError, '
|
10
|
+
raise ::NotImplementedError, 'matcher MUST respond to `matches?` method.'
|
11
11
|
end
|
12
12
|
|
13
13
|
# Returns a string representing the matcher.
|
data/matchi.gemspec
CHANGED
@@ -5,7 +5,6 @@ Gem::Specification.new do |spec|
|
|
5
5
|
spec.version = File.read('VERSION.semver').chomp
|
6
6
|
spec.authors = ['Cyril Kato']
|
7
7
|
spec.email = ['contact@cyril.email']
|
8
|
-
|
9
8
|
spec.summary = 'Collection of matchers.'
|
10
9
|
spec.description = 'Collection of expectation matchers for Ruby.'
|
11
10
|
spec.homepage = 'https://github.com/fixrb/matchi'
|
@@ -17,8 +16,9 @@ Gem::Specification.new do |spec|
|
|
17
16
|
spec.require_paths = ['lib']
|
18
17
|
|
19
18
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
20
|
-
spec.add_development_dependency 'rake', '~>
|
21
|
-
spec.add_development_dependency 'rubocop'
|
22
|
-
spec.add_development_dependency '
|
19
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
20
|
+
spec.add_development_dependency 'rubocop'
|
21
|
+
spec.add_development_dependency 'rubocop-performance'
|
22
|
+
spec.add_development_dependency 'simplecov', '~> 0.17'
|
23
23
|
spec.add_development_dependency 'yard', '~> 0.9'
|
24
24
|
end
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,42 +30,56 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
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
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: simplecov
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
75
|
+
version: '0.17'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
82
|
+
version: '0.17'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: yard
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +130,7 @@ files:
|
|
116
130
|
- checksum/matchi-1.0.1.gem.sha512
|
117
131
|
- checksum/matchi-1.0.2.gem.sha512
|
118
132
|
- checksum/matchi-1.0.3.gem.sha512
|
133
|
+
- checksum/matchi-1.0.4.gem.sha512
|
119
134
|
- lib/matchi.rb
|
120
135
|
- lib/matchi/matchers.rb
|
121
136
|
- lib/matchi/matchers/be_false.rb
|
@@ -147,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
162
|
- !ruby/object:Gem::Version
|
148
163
|
version: '0'
|
149
164
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.7.6
|
165
|
+
rubygems_version: 3.0.6
|
152
166
|
signing_key:
|
153
167
|
specification_version: 4
|
154
168
|
summary: Collection of matchers.
|