matchi-fix 1.0.4 → 2.0.0
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 +27 -54
- data/lib/matchi/fix.rb +44 -31
- metadata +74 -53
- data/.gitignore +0 -11
- data/.travis.yml +0 -28
- data/.yardopts +0 -1
- data/CODE_OF_CONDUCT.md +0 -13
- data/Gemfile +0 -5
- data/Rakefile +0 -22
- data/VERSION.semver +0 -1
- data/bin/console +0 -8
- data/bin/setup +0 -6
- data/checksum/matchi-fix-0.1.0.gem.sha512 +0 -1
- data/checksum/matchi-fix-0.1.1.gem.sha512 +0 -1
- data/checksum/matchi-fix-0.1.2.gem.sha512 +0 -1
- data/checksum/matchi-fix-0.1.3.gem.sha512 +0 -1
- data/checksum/matchi-fix-0.1.4.gem.sha512 +0 -1
- data/checksum/matchi-fix-0.2.0.gem.sha512 +0 -1
- data/checksum/matchi-fix-1.0.1.gem.sha512 +0 -1
- data/checksum/matchi-fix-1.0.2.gem.sha512 +0 -1
- data/checksum/matchi-fix-1.0.3.gem.sha512 +0 -1
- data/matchi-fix.gemspec +0 -27
- data/pkg_checksum +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccabebdd23eb7e82cbfd9a24decb4b6e310019699c5b4960357c84be7c2853a
|
4
|
+
data.tar.gz: d72041ff77469fa635b4454212760a1185556684eec0369aa6b78d0eb5a1d7f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb77ea77128e0dd6949828125a9dbcb877c8585a4fa0eafbbc4054ab0b612f89cd7ecc2a416d5d82181dafd58b689855ca746102b956f8760f88e25060922cda
|
7
|
+
data.tar.gz: a74e2afd1548eecefbd6f9b65b8916158bfc20f6525850fa53acf7036ef77ab4fa7228a3e13f14d053e5d7fefcb80c98144df2dd08a7c16437e21c9875eb819e
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,88 +1,61 @@
|
|
1
1
|
# Matchi::Fix
|
2
2
|
|
3
|
-
[![
|
4
|
-
[![
|
5
|
-
[![
|
6
|
-
[![
|
7
|
-
[![
|
3
|
+
[![Version](https://img.shields.io/github/v/tag/fixrb/matchi-fix?label=Version&logo=github)](https://github.com/fixrb/matchi-fix/releases)
|
4
|
+
[![Yard documentation](https://img.shields.io/badge/Yard-documentation-blue.svg?logo=github)](https://rubydoc.info/github/fixrb/matchi-fix/main)
|
5
|
+
[![CI](https://github.com/fixrb/matchi-fix/workflows/CI/badge.svg?branch=main)](https://github.com/fixrb/matchi-fix/actions?query=workflow%3Aci+branch%3Amain)
|
6
|
+
[![RuboCop](https://github.com/fixrb/matchi-fix/workflows/RuboCop/badge.svg?branch=main)](https://github.com/fixrb/matchi-fix/actions?query=workflow%3Arubocop+branch%3Amain)
|
7
|
+
[![License](https://img.shields.io/github/license/fixrb/matchi-fix?label=License&logo=github)](https://github.com/fixrb/matchi-fix/raw/main/LICENSE.md)
|
8
8
|
|
9
9
|
> A [Fix](https://github.com/fixrb/fix) expectation matcher for [Matchi](https://github.com/fixrb/matchi).
|
10
10
|
|
11
|
-
## Contact
|
12
|
-
|
13
|
-
* Home page: https://github.com/fixrb/matchi-fix
|
14
|
-
* Bugs/issues: https://github.com/fixrb/matchi-fix/issues
|
15
|
-
* Support: https://stackoverflow.com/questions/tagged/fixrb
|
16
|
-
|
17
|
-
## Rubies
|
18
|
-
|
19
|
-
* [MRI](https://www.ruby-lang.org/)
|
20
|
-
* [Rubinius](http://rubini.us/)
|
21
|
-
* [JRuby](http://jruby.org/)
|
22
|
-
|
23
11
|
## Installation
|
24
12
|
|
25
13
|
Add this line to your application's Gemfile:
|
26
14
|
|
27
15
|
```ruby
|
28
|
-
gem
|
16
|
+
gem "matchi-fix"
|
29
17
|
```
|
30
18
|
|
31
19
|
And then execute:
|
32
20
|
|
33
|
-
|
21
|
+
```sh
|
22
|
+
bundle
|
23
|
+
```
|
34
24
|
|
35
25
|
Or install it yourself as:
|
36
26
|
|
37
|
-
|
27
|
+
```sh
|
28
|
+
gem install matchi-fix
|
29
|
+
```
|
38
30
|
|
39
31
|
## Usage
|
40
32
|
|
41
33
|
```ruby
|
42
|
-
require
|
34
|
+
require "matchi/fix"
|
43
35
|
|
44
|
-
|
45
|
-
fix.matches? { 6 * 7 } # => true
|
46
|
-
```
|
36
|
+
matcher = Matchi::Fix.new { it MUST be 42 }
|
47
37
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
every Gem release. These checksums can be found in the `checksum/` directory.
|
52
|
-
Although these checksums do not prevent malicious users from tampering with a
|
53
|
-
built Gem they can be used for basic integrity verification purposes.
|
38
|
+
matcher.expected # => #<Fix::Set:0x00007fd96915dc28 ...>
|
39
|
+
matcher.matches? { 42 } # => true
|
40
|
+
```
|
54
41
|
|
55
|
-
|
56
|
-
example:
|
42
|
+
## Contact
|
57
43
|
|
58
|
-
|
59
|
-
0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-fix-0.1.0.gem
|
44
|
+
* Source code: https://github.com/fixrb/matchi-fix
|
60
45
|
|
61
46
|
## Versioning
|
62
47
|
|
63
|
-
__Matchi::Fix__ follows [Semantic Versioning 2.0](
|
64
|
-
|
65
|
-
## Contributing
|
66
|
-
|
67
|
-
1. [Fork it](https://github.com/fixrb/matchi-fix/fork)
|
68
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
69
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
70
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
71
|
-
5. Create a new Pull Request
|
48
|
+
__Matchi::Fix__ follows [Semantic Versioning 2.0](https://semver.org/).
|
72
49
|
|
73
50
|
## License
|
74
51
|
|
75
|
-
|
76
|
-
|
77
|
-
[gem]: https://rubygems.org/gems/matchi-fix
|
78
|
-
[travis]: https://travis-ci.org/fixrb/matchi-fix
|
79
|
-
[codeclimate]: https://codeclimate.com/github/fixrb/matchi-fix
|
80
|
-
[gemnasium]: https://gemnasium.com/fixrb/matchi-fix
|
81
|
-
[inchpages]: http://inch-ci.org/github/fixrb/matchi-fix
|
82
|
-
[rubydoc]: http://rubydoc.info/gems/matchi-fix/frames
|
52
|
+
The [gem](https://rubygems.org/gems/matchi-fix) is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
83
53
|
|
84
54
|
***
|
85
55
|
|
86
|
-
|
87
|
-
|
88
|
-
|
56
|
+
<p>
|
57
|
+
This project is sponsored by:<br />
|
58
|
+
<a href="https://sashite.com/"><img
|
59
|
+
src="https://github.com/fixrb/matchi-fix/raw/main/img/sashite.png"
|
60
|
+
alt="Sashite" /></a>
|
61
|
+
</p>
|
data/lib/matchi/fix.rb
CHANGED
@@ -1,41 +1,54 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require 'fix'
|
3
|
+
require "fix"
|
5
4
|
|
6
5
|
# Namespace for the Matchi library.
|
7
6
|
module Matchi
|
8
|
-
#
|
9
|
-
|
10
|
-
#
|
11
|
-
|
12
|
-
# The matcher.
|
13
|
-
class Matcher
|
14
|
-
include MatchersBase
|
7
|
+
# **Fix** matcher.
|
8
|
+
class Fix
|
9
|
+
# @return [Proc] A set of specifications.
|
10
|
+
attr_reader :expected
|
15
11
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
12
|
+
# Initialize the matcher with a block of specs.
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# require "matchi/fix"
|
16
|
+
#
|
17
|
+
# Matchi::Fix.new { it MUST be 42 }
|
18
|
+
#
|
19
|
+
# @param block [Proc] A block of code.
|
20
|
+
def initialize(&block)
|
21
|
+
@expected = Fix(&block)
|
22
|
+
end
|
23
|
+
|
24
|
+
# Boolean comparison between the actual value and the expected specs.
|
25
|
+
#
|
26
|
+
# @example
|
27
|
+
# require "matchi/fix"
|
28
|
+
#
|
29
|
+
# matcher = Matchi::Fix.new { it MUST be 42 }
|
30
|
+
#
|
31
|
+
# matcher.expected # => #<Fix::Set:0x00007fd96915dc28 ...>
|
32
|
+
# matcher.matches? { 42 } # => true
|
33
|
+
#
|
34
|
+
# @yieldreturn [#object_id] The actual value to compare to the expected
|
35
|
+
# one.
|
36
|
+
#
|
37
|
+
# @return [Boolean] Comparison between actual and expected values.
|
38
|
+
def matches?(&block)
|
39
|
+
expected.test(log_level: 0, &block)
|
40
|
+
rescue ::SystemExit => e
|
41
|
+
e.success?
|
42
|
+
end
|
43
|
+
|
44
|
+
# A string containing a human-readable representation of the matcher.
|
45
|
+
def inspect
|
46
|
+
"#{self.class}(&specs)"
|
47
|
+
end
|
25
48
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
#
|
30
|
-
# @yieldreturn [#object_id] A front object to compare against the spec.
|
31
|
-
#
|
32
|
-
# @return [Boolean] The result of the test: _pass_ or _fail_.
|
33
|
-
def matches?
|
34
|
-
::Fix.describe(yield, verbose: false, &@expected)
|
35
|
-
rescue SystemExit => e
|
36
|
-
e.success?
|
37
|
-
end
|
38
|
-
end
|
49
|
+
# Returns a string representing the matcher.
|
50
|
+
def to_s
|
51
|
+
"fix &specs"
|
39
52
|
end
|
40
53
|
end
|
41
54
|
end
|
metadata
CHANGED
@@ -1,143 +1,164 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matchi-fix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fix
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0.beta7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 1.0.0.beta7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: matchi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.2.0
|
34
34
|
type: :runtime
|
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: 3.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
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
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
70
|
+
name: rubocop-md
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-performance
|
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: rubocop-rake
|
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: rubocop-thread_safety
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
81
116
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
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'
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
126
|
name: simplecov
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
|
-
- - "
|
129
|
+
- - ">="
|
88
130
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
131
|
+
version: '0'
|
90
132
|
type: :development
|
91
133
|
prerelease: false
|
92
134
|
version_requirements: !ruby/object:Gem::Requirement
|
93
135
|
requirements:
|
94
|
-
- - "
|
136
|
+
- - ">="
|
95
137
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
138
|
+
version: '0'
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: yard
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
|
-
- - "
|
143
|
+
- - ">="
|
102
144
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
145
|
+
version: '0'
|
104
146
|
type: :development
|
105
147
|
prerelease: false
|
106
148
|
version_requirements: !ruby/object:Gem::Requirement
|
107
149
|
requirements:
|
108
|
-
- - "
|
150
|
+
- - ">="
|
109
151
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
152
|
+
version: '0'
|
111
153
|
description: A Fix expectation matcher for Matchi.
|
112
|
-
email:
|
113
|
-
- contact@cyril.email
|
154
|
+
email: contact@cyril.email
|
114
155
|
executables: []
|
115
156
|
extensions: []
|
116
157
|
extra_rdoc_files: []
|
117
158
|
files:
|
118
|
-
- ".gitignore"
|
119
|
-
- ".travis.yml"
|
120
|
-
- ".yardopts"
|
121
|
-
- CODE_OF_CONDUCT.md
|
122
|
-
- Gemfile
|
123
159
|
- LICENSE.md
|
124
160
|
- README.md
|
125
|
-
- Rakefile
|
126
|
-
- VERSION.semver
|
127
|
-
- bin/console
|
128
|
-
- bin/setup
|
129
|
-
- checksum/matchi-fix-0.1.0.gem.sha512
|
130
|
-
- checksum/matchi-fix-0.1.1.gem.sha512
|
131
|
-
- checksum/matchi-fix-0.1.2.gem.sha512
|
132
|
-
- checksum/matchi-fix-0.1.3.gem.sha512
|
133
|
-
- checksum/matchi-fix-0.1.4.gem.sha512
|
134
|
-
- checksum/matchi-fix-0.2.0.gem.sha512
|
135
|
-
- checksum/matchi-fix-1.0.1.gem.sha512
|
136
|
-
- checksum/matchi-fix-1.0.2.gem.sha512
|
137
|
-
- checksum/matchi-fix-1.0.3.gem.sha512
|
138
161
|
- lib/matchi/fix.rb
|
139
|
-
- matchi-fix.gemspec
|
140
|
-
- pkg_checksum
|
141
162
|
homepage: https://github.com/fixrb/matchi-fix
|
142
163
|
licenses:
|
143
164
|
- MIT
|
@@ -150,14 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
171
|
requirements:
|
151
172
|
- - ">="
|
152
173
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
174
|
+
version: 2.7.0
|
154
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
176
|
requirements:
|
156
177
|
- - ">="
|
157
178
|
- !ruby/object:Gem::Version
|
158
179
|
version: '0'
|
159
180
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.1.6
|
161
182
|
signing_key:
|
162
183
|
specification_version: 4
|
163
184
|
summary: Fix expectation matcher.
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
cache: bundler
|
4
|
-
before_install:
|
5
|
-
- gem install bundler
|
6
|
-
script:
|
7
|
-
- bundle exec rubocop
|
8
|
-
- bundle exec rake test
|
9
|
-
rvm:
|
10
|
-
- 2.3.3
|
11
|
-
- 2.4.0
|
12
|
-
- 2.5.0
|
13
|
-
- 2.6.2
|
14
|
-
- ruby-head
|
15
|
-
- jruby-head
|
16
|
-
- rbx-3
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: ruby-head
|
20
|
-
- rvm: jruby-head
|
21
|
-
- rvm: rbx-3
|
22
|
-
notifications:
|
23
|
-
webhooks:
|
24
|
-
urls:
|
25
|
-
- https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
|
26
|
-
on_success: change
|
27
|
-
on_failure: always
|
28
|
-
on_start: never
|
data/.yardopts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
- README.md
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
|
7
|
-
RuboCop::RakeTask.new
|
8
|
-
|
9
|
-
Rake::TestTask.new do |t|
|
10
|
-
t.verbose = true
|
11
|
-
t.warning = true
|
12
|
-
end
|
13
|
-
|
14
|
-
namespace :test do
|
15
|
-
task :coverage do
|
16
|
-
ENV['COVERAGE'] = 'true'
|
17
|
-
Rake::Task['test'].invoke
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
task(:doc_stats) { ruby '-S yard stats' }
|
22
|
-
task default: %i[test doc_stats rubocop]
|
data/VERSION.semver
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.4
|
data/bin/console
DELETED
data/bin/setup
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a
|
@@ -1 +0,0 @@
|
|
1
|
-
2a66b5dda194af828096e9b86e2adf2b52cea4113720a0050c867aa37f32200be7ce8ca83c8fbfc9d39a7d6e2a2622f8873bbaafd7529bbc03015bb3e5b05421
|
@@ -1 +0,0 @@
|
|
1
|
-
5827ead29509f74ce55d8746b2e40155976c4594dc1260ec3497f1770c07e671a1ebaf6c20e4cfba3249b5cddf982c48b2ce10eb16fe10dd35afd39d1acfc576
|
@@ -1 +0,0 @@
|
|
1
|
-
8299f2b2322094fec83069d3206bd2b7e73c8fac4657d5eee7a1112dc7c4cefb7404ec1a75a2d8faf66d04e5ecc7b4d3da011a9c4ed7426bec4e62826c60d924
|
@@ -1 +0,0 @@
|
|
1
|
-
bfb467db5d2e47fd7af3969e12e9662632463e68051fd7ba9af0b4c407ffb9e4e206fbc31d9509d2ab35488592c1dc691e36e4ed32db3e262ff6c7d2cd066ed0
|
@@ -1 +0,0 @@
|
|
1
|
-
f2e4576acc8456a4b6f253bb70a1328498f04661b8656f17fe98a5209e9bac4bc5b21adac1ed87f0fd549cbf06e33485d9da9397a4fee222234f431ac8cd593a
|
@@ -1 +0,0 @@
|
|
1
|
-
b52f5ea16dd8250f9c0e371bcc0cdae0407142702112ce474d60d52d5b7b122c3468be5a785addea2890fab8c8ad0d2f47278326af5ad44e4e183f71603bc9b0
|
@@ -1 +0,0 @@
|
|
1
|
-
5333d3f758b5d31dbe0f3f30c8e027dbd2edb263e097d2ac7f20e852ee00c9bcb260db4cf19c5756527e9b725eabfadbad6da93bbe5a4ca4ad43013198a6fe7d
|
@@ -1 +0,0 @@
|
|
1
|
-
9e4743791e85a64775e4f9766fb1f31a007cb28150c188e8dbda2953888ce7c6a049c4fad13734cc90394d979d5257f39c94f607aa8a22731f346ea5a430fef0
|
data/matchi-fix.gemspec
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = 'matchi-fix'
|
5
|
-
spec.version = File.read('VERSION.semver').chomp
|
6
|
-
spec.authors = ['Cyril Kato']
|
7
|
-
spec.email = ['contact@cyril.email']
|
8
|
-
|
9
|
-
spec.summary = 'Fix expectation matcher.'
|
10
|
-
spec.description = 'A Fix expectation matcher for Matchi.'
|
11
|
-
spec.homepage = 'https://github.com/fixrb/matchi-fix'
|
12
|
-
spec.license = 'MIT'
|
13
|
-
|
14
|
-
spec.files =
|
15
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
16
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
|
-
spec.require_paths = ['lib']
|
18
|
-
|
19
|
-
spec.add_dependency 'fix', '~> 0.18.0'
|
20
|
-
spec.add_dependency 'matchi', '~> 1.0.4'
|
21
|
-
|
22
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
24
|
-
spec.add_development_dependency 'rubocop', '~> 0.67'
|
25
|
-
spec.add_development_dependency 'simplecov', '~> 0.16'
|
26
|
-
spec.add_development_dependency 'yard', '~> 0.9'
|
27
|
-
end
|
data/pkg_checksum
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'digest/sha2'
|
5
|
-
|
6
|
-
gemname = 'matchi-fix'.to_sym
|
7
|
-
ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
|
8
|
-
built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
|
9
|
-
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
|
10
|
-
checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
|
11
|
-
|
12
|
-
File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
|