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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19a9bc6313ec7651c4bdc897cdd1a71d90e3dc2e5ebfc824c30dd81dcbfb32d7
4
- data.tar.gz: 439219a738caa00b743145280a0cf90b02d19dbac3900d88552d2c0da9fc5bd5
3
+ metadata.gz: 6ccabebdd23eb7e82cbfd9a24decb4b6e310019699c5b4960357c84be7c2853a
4
+ data.tar.gz: d72041ff77469fa635b4454212760a1185556684eec0369aa6b78d0eb5a1d7f3
5
5
  SHA512:
6
- metadata.gz: 14a3fba3b283080254b4c9f76d3de07b49bab62c41ccbbb3aa75067f6536d91715c828fac3456dad8bec6e83bdae1077e4037f873a6716a6aec56b1b1909f8a7
7
- data.tar.gz: 0e006768d567e6475c04ef66a2f2b4f184237f2238e5ba1b8bf5eac5196d16dbf960a6d90316f25471888a0a5b87d27d58f6a44c09406cf9db37f004bfaab3aa
6
+ metadata.gz: fb77ea77128e0dd6949828125a9dbcb877c8585a4fa0eafbbc4054ab0b612f89cd7ecc2a416d5d82181dafd58b689855ca746102b956f8760f88e25060922cda
7
+ data.tar.gz: a74e2afd1548eecefbd6f9b65b8916158bfc20f6525850fa53acf7036ef77ab4fa7228a3e13f14d053e5d7fefcb80c98144df2dd08a7c16437e21c9875eb819e
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2019 Cyril Kato
3
+ Copyright (c) 2015-2021 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,88 +1,61 @@
1
1
  # Matchi::Fix
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/matchi-fix.svg?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/fixrb/matchi-fix/badges/gpa.svg)][codeclimate]
5
- [![Gem Version](https://badge.fury.io/rb/matchi-fix.svg)][gem]
6
- [![Inline docs](http://inch-ci.org/github/fixrb/matchi-fix.svg?branch=master)][inchpages]
7
- [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
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 'matchi-fix'
16
+ gem "matchi-fix"
29
17
  ```
30
18
 
31
19
  And then execute:
32
20
 
33
- $ bundle
21
+ ```sh
22
+ bundle
23
+ ```
34
24
 
35
25
  Or install it yourself as:
36
26
 
37
- $ gem install matchi-fix
27
+ ```sh
28
+ gem install matchi-fix
29
+ ```
38
30
 
39
31
  ## Usage
40
32
 
41
33
  ```ruby
42
- require 'matchi/fix'
34
+ require "matchi/fix"
43
35
 
44
- fix = Matchi::Matchers::Fix::Matcher.new(proc { it { MUST equal 42 } }) #<Matchi::Matchers::Fix::Matcher:0x007fd4022dd6c8 @expected=#<Proc:0x007fd4022dd6f0@(irb):1>>
45
- fix.matches? { 6 * 7 } # => true
46
- ```
36
+ matcher = Matchi::Fix.new { it MUST be 42 }
47
37
 
48
- ## Security
49
-
50
- As a basic form of security __Matchi::Fix__ provides a set of SHA512 checksums for
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
- The checksum of a file can be checked using the `sha512sum` command. For
56
- example:
42
+ ## Contact
57
43
 
58
- $ sha512sum pkg/matchi-fix-0.1.0.gem
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](http://semver.org/).
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
- See `LICENSE.md` file.
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
- This project is sponsored by:
87
-
88
- [![Sashite](https://sashite.com/img/sashite.png)](https://sashite.com/)
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 'matchi/matchers_base'
4
- require 'fix'
3
+ require "fix"
5
4
 
6
5
  # Namespace for the Matchi library.
7
6
  module Matchi
8
- # Collection of matchers.
9
- module Matchers
10
- # **Fix** matcher.
11
- module Fix
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
- # Initialize the matcher with a spec.
17
- #
18
- # @example It MUST be equal to 42 matcher.
19
- # new(proc { it { MUST equal 42 } })
20
- #
21
- # @param expected [Proc] A spec.
22
- def initialize(expected)
23
- @expected = expected
24
- end
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
- # @example Is 42 matching 6 * 7?
27
- # fix = new(proc { it { MUST equal 42 } })
28
- # fix.matches? { 6 * 7 } # => true
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: 1.0.4
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: 2019-04-12 00:00:00.000000000 Z
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.18.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.18.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: 1.0.4
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: 1.0.4
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: '2.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
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
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: '12.3'
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: '12.3'
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.67'
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.67'
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.16'
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.16'
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.9'
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.9'
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: '0'
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.0.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
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.ruby-version
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- *.gem
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
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'matchi/fix'
6
-
7
- require 'irb'
8
- IRB.start
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
- IFS=$'\n\t'
5
-
6
- bundle install
@@ -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") }