matchi 3.3.0 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5596c7ba2d1153eadaa1ba438b009c0cc17954a360b4192bb6419c674d864822
4
- data.tar.gz: 0c717e7642961b8707433584c58a1e2369f810c11114caa7530c890563df78a3
3
+ metadata.gz: 5831db6ac7cfec32997d0683fb756c4442fa516702cdb410556fc9c790de1f03
4
+ data.tar.gz: 679942f7da92507e0cc4e944a3d9761cbb7d72083cb71ab7e5302a154fe889c0
5
5
  SHA512:
6
- metadata.gz: 8e89b77b4f7fd25fc53ea570b865b3479be5a3291bc437f55b3ea126111fdd120afd907439ec87c565bbb28b4fe6e7be34a932a218e55933bb3d4bb890b0edcf
7
- data.tar.gz: f19a1f799d1b8f9c1f40dc747c00863ae1cd9bf1ed545aabdea774e4c658a242a74d2bd6f03709fe124786f327fd7401b104aa9e567496265b966937c61841e3
6
+ metadata.gz: f75dea44631fe6a02dc2909e8d7ba1e1964e953a34268b021135436d45d49e9de25d439a7c4436c449c5366c57193bbf0d1e652fe8bf6439be1b17218c04ce82
7
+ data.tar.gz: 03acf53bf37c0f1397b8366dd2463faa174c2be364a234bb86b7a4c49cd540abf3e1749790822992a5420367260807a3de611840ccee74165e1bf204fbc4f571
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2021 Cyril Kato
3
+ Copyright (c) 2015-2024 Cyril Kato
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,14 +1,14 @@
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/releases)
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
- [![CI](https://github.com/fixrb/matchi/workflows/CI/badge.svg?branch=main)](https://github.com/fixrb/matchi/actions?query=workflow%3Aci+branch%3Amain)
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
 
9
9
  > Collection of expectation matchers for Rubyists 🤹
10
10
 
11
- ![A Rubyist juggling between Matchi letters](https://github.com/fixrb/matchi/raw/main/img/matchi.jpg)
11
+ ![A Rubyist juggling between Matchi letters](https://github.com/fixrb/matchi/raw/main/img/matchi.png)
12
12
 
13
13
  ## Project goals
14
14
 
@@ -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
- Regexp.new(/\A#{expected}/).match?(yield)
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="Sashite" /></a>
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, *args, **kwargs, &block)
25
- @state = -> { object.send(method, *args, **kwargs, &block) }
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.
@@ -65,7 +65,7 @@ module Matchi
65
65
  # Returns a string representing the matcher.
66
66
  def to_s
67
67
  (
68
- "#{@name.tr('_', ' ')} " + [
68
+ "#{@name.tr("_", " ")} " + [
69
69
  @args.map(&:inspect).join(", "),
70
70
  @kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", "),
71
71
  (@block.nil? ? "" : "&block")
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.0
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: 2021-07-29 00:00:00.000000000 Z
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: []
@@ -150,7 +38,8 @@ files:
150
38
  homepage: https://github.com/fixrb/matchi
151
39
  licenses:
152
40
  - MIT
153
- metadata: {}
41
+ metadata:
42
+ rubygems_mfa_required: 'true'
154
43
  post_install_message:
155
44
  rdoc_options: []
156
45
  require_paths:
@@ -159,14 +48,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
48
  requirements:
160
49
  - - ">="
161
50
  - !ruby/object:Gem::Version
162
- version: 2.7.0
51
+ version: 3.2.0
163
52
  required_rubygems_version: !ruby/object:Gem::Requirement
164
53
  requirements:
165
54
  - - ">="
166
55
  - !ruby/object:Gem::Version
167
56
  version: '0'
168
57
  requirements: []
169
- rubygems_version: 3.1.6
58
+ rubygems_version: 3.4.19
170
59
  signing_key:
171
60
  specification_version: 4
172
61
  summary: "Collection of expectation matchers for Rubyists \U0001F939"