matchi-rspec 0.1.3 → 1.1.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: e2bcc39de5eb9fe133ea384baae1d000f2d6340a158072e88552a5809275721b
4
- data.tar.gz: 2e7e1115f46dab66f7cbd8f6eff6b6dcbf58479cbec70fd59d3d37637c4990cd
3
+ metadata.gz: 3e974145f7fba29e54f383eb05e84d708db43025722e24e4f9e2ca3dc22df7af
4
+ data.tar.gz: 69b8be13be8a6478e7b7aff17d924930244692eed7db3ed5ae0481e226e3c61c
5
5
  SHA512:
6
- metadata.gz: 40f49607c241366e3437c4177ab7b13428ccd06fda4106b65c3ec6e609b22730a0feb5d9cc2085326a9e3d7990c310bb6b7750bc1e7b650df4f7add803178639
7
- data.tar.gz: 7af637d4d9daafca954ee00ad86dccfb22dc62f34bf2c2e248d5b6bee254e712e268e472163d0bc330c965a4ab16c0b07925f843555fb6ac041a5cfdbde11bb3
6
+ metadata.gz: e664fcd227173af7c4c56ca87e4d40c7f11a09b8863d250e5aa6fad26ccf9d7216e099af556e3ec0bb91ad28d871b3e0e2c198ad86853fa693e69f270f9a23f9
7
+ data.tar.gz: 04ff50220cda7316d20586eada3d6f24bc867c12579890f44ec31bb4410bfebeb88a196e0ba1479cc8845d35213a2359ffe59843d8fdabf51bff8981628b0185
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,31 +1,18 @@
1
1
  # Matchi::Rspec
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/matchi-rspec.svg?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/fixrb/matchi-rspec/badges/gpa.svg)][codeclimate]
3
+ [![RuboCop Status](https://github.com/fixrb/matchi-rspec/workflows/RuboCop/badge.svg)][workflow_rubocop]
4
+ [![Build Status](https://api.travis-ci.org/fixrb/matchi-rspec.svg?branch=main)][travis]
5
5
  [![Gem Version](https://badge.fury.io/rb/matchi-rspec.svg)][gem]
6
- [![Inline docs](http://inch-ci.org/github/fixrb/matchi-rspec.svg?branch=master)][inchpages]
7
6
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
8
7
 
9
- > Extend [Matchi](https://github.com/fixrb/matchi) matchers with some [RSpec](http://rspec.info/)'s ones.
10
-
11
- ## Contact
12
-
13
- * Home page: https://github.com/fixrb/matchi-rspec
14
- * Bugs/issues: https://github.com/fixrb/matchi-rspec/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/)
8
+ > Extend [Matchi](https://github.com/fixrb/matchi) matchers with some RSpec's ones.
22
9
 
23
10
  ## Installation
24
11
 
25
12
  Add this line to your application's Gemfile:
26
13
 
27
14
  ```ruby
28
- gem 'matchi-rspec'
15
+ gem "matchi-rspec"
29
16
  ```
30
17
 
31
18
  And then execute:
@@ -41,62 +28,46 @@ Or install it yourself as:
41
28
  **Identity** matcher:
42
29
 
43
30
  ```ruby
44
- be = Matchi::Be.new(42)
31
+ be = Matchi::Matcher::Be.new(42)
45
32
  be.matches? { 42 } # => true
46
33
  ```
47
34
 
48
35
  **Type/class** matcher:
49
36
 
50
37
  ```ruby
51
- be_instance_of = Matchi::BeInstanceOf.new(String)
52
- be_instance_of.matches? { 'foo' } # => true
38
+ be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
39
+ be_instance_of.matches? { "foo" } # => true
53
40
  ```
54
41
 
55
42
  **Equivalence** matcher:
56
43
 
57
44
  ```ruby
58
- eq = Matchi::Eq.new('foo')
59
- eq.matches? { 'foo' } # => true
45
+ eq = Matchi::Matcher::Eq.new("foo")
46
+ eq.matches? { "foo" } # => true
60
47
  ```
61
48
 
62
- ## Security
63
-
64
- As a basic form of security __Matchi::Rspec__ provides a set of SHA512 checksums for
65
- every Gem release. These checksums can be found in the `checksum/` directory.
66
- Although these checksums do not prevent malicious users from tampering with a
67
- built Gem they can be used for basic integrity verification purposes.
68
-
69
- The checksum of a file can be checked using the `sha512sum` command. For
70
- example:
49
+ ## Contact
71
50
 
72
- $ sha512sum pkg/matchi-rspec-0.1.0.gem
73
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-rspec-0.1.0.gem
51
+ * Home page: https://github.com/fixrb/matchi-rspec
74
52
 
75
53
  ## Versioning
76
54
 
77
- __Matchi::Rspec__ follows [Semantic Versioning 2.0](http://semver.org/).
78
-
79
- ## Contributing
80
-
81
- 1. [Fork it](https://github.com/fixrb/matchi-rspec/fork)
82
- 2. Create your feature branch (`git checkout -b my-new-feature`)
83
- 3. Commit your changes (`git commit -am 'Add some feature'`)
84
- 4. Push to the branch (`git push origin my-new-feature`)
85
- 5. Create a new Pull Request
55
+ __Matchi::Rspec__ follows [Semantic Versioning 2.0](https://semver.org/).
86
56
 
87
57
  ## License
88
58
 
89
- See `LICENSE.md` file.
90
-
91
- [gem]: https://rubygems.org/gems/matchi-rspec
92
- [travis]: https://travis-ci.org/fixrb/matchi-rspec
93
- [codeclimate]: https://codeclimate.com/github/fixrb/matchi-rspec
94
- [gemnasium]: https://gemnasium.com/fixrb/matchi-rspec
95
- [inchpages]: http://inch-ci.org/github/fixrb/matchi-rspec
96
- [rubydoc]: http://rubydoc.info/gems/matchi-rspec/frames
59
+ The [gem](https://rubygems.org/gems/matchi-rspec) is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
97
60
 
98
61
  ***
99
62
 
100
- This project is sponsored by:
63
+ <p>
64
+ This project is sponsored by:<br />
65
+ <a href="https://sashite.com/"><img
66
+ src="https://github.com/fixrb/matchi-rspec/raw/main/img/sashite.png"
67
+ alt="Sashite" /></a>
68
+ </p>
101
69
 
102
- [![Sashite](https://sashite.com/img/sashite.png)](https://sashite.com/)
70
+ [workflow_rubocop]: https://github.com/fixrb/matchi-rspec/actions?query=workflow%3ARuboCop
71
+ [gem]: https://rubygems.org/gems/matchi-rspec
72
+ [travis]: https://travis-ci.org/fixrb/matchi-rspec
73
+ [rubydoc]: https://rubydoc.info/gems/matchi-rspec/frames
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "matchi/matcher/equal"
4
+
5
+ # Namespace for the Matchi library.
6
+ module Matchi
7
+ # Collection of matcher classes.
8
+ module Matcher
9
+ # *Identity* matcher.
10
+ #
11
+ # @example
12
+ # equal = Matchi::Matcher::Equal.new(:foo)
13
+ # equal.matches? { :foo } # => true
14
+ class Be < ::Matchi::Matcher::Equal
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "matchi/matcher/be_an_instance_of"
4
+
5
+ # Namespace for the Matchi library.
6
+ module Matchi
7
+ # Collection of matcher classes.
8
+ module Matcher
9
+ # *Type/class* matcher.
10
+ #
11
+ # @example
12
+ # be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
13
+ # be_instance_of.matches? { "foo" } # => true
14
+ class BeInstanceOf < ::Matchi::Matcher::BeAnInstanceOf
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "matchi/matcher/eql"
4
+
5
+ # Namespace for the Matchi library.
6
+ module Matchi
7
+ # Collection of matcher classes.
8
+ module Matcher
9
+ # *Equivalence* matcher.
10
+ #
11
+ # @example
12
+ # eql = Matchi::Matcher::Eql.new("foo")
13
+ # eql.matches? { "foo" } # => true
14
+ class Eq < ::Matchi::Matcher::Eql
15
+ end
16
+ end
17
+ end
data/lib/matchi/rspec.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'matchi'
4
-
5
- Dir[File.join File.dirname(__FILE__), 'rspec', '*.rb'].each do |fname|
3
+ Dir[File.join File.dirname(__FILE__), "matcher", "*.rb"].each do |fname|
6
4
  require_relative fname
7
5
  end
6
+
7
+ require "matchi/helper"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matchi-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.1.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: 2019-04-12 00:00:00.000000000 Z
11
+ date: 2021-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: matchi
@@ -16,119 +16,138 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.4
19
+ version: 2.1.0
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: 1.0.4
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '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: '2.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '12.3'
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: '12.3'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop
56
+ name: rubocop-md
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0.67'
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
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-performance
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-rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
67
88
  - !ruby/object:Gem::Version
68
- version: '0.67'
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-thread_safety
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'
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: simplecov
71
113
  requirement: !ruby/object:Gem::Requirement
72
114
  requirements:
73
- - - "~>"
115
+ - - ">="
74
116
  - !ruby/object:Gem::Version
75
- version: '0.16'
117
+ version: '0'
76
118
  type: :development
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
79
121
  requirements:
80
- - - "~>"
122
+ - - ">="
81
123
  - !ruby/object:Gem::Version
82
- version: '0.16'
124
+ version: '0'
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: yard
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
- - - "~>"
129
+ - - ">="
88
130
  - !ruby/object:Gem::Version
89
- version: '0.9'
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.9'
138
+ version: '0'
97
139
  description: Matchi extension gem to provide some RSpec matchers.
98
- email:
99
- - contact@cyril.email
140
+ email: contact@cyril.email
100
141
  executables: []
101
142
  extensions: []
102
143
  extra_rdoc_files: []
103
144
  files:
104
- - ".gitignore"
105
- - ".travis.yml"
106
- - ".yardopts"
107
- - CODE_OF_CONDUCT.md
108
- - Gemfile
109
145
  - LICENSE.md
110
146
  - README.md
111
- - Rakefile
112
- - VERSION.semver
113
- - bin/console
114
- - bin/setup
115
- - checksum/matchi-fix-0.1.0.gem.sha512
116
- - checksum/matchi-fix-0.1.1.gem.sha512
117
- - checksum/matchi-fix-0.1.2.gem.sha512
118
- - checksum/matchi-fix-0.1.3.gem.sha512
119
- - checksum/matchi-fix-0.1.4.gem.sha512
120
- - checksum/matchi-rspec-0.0.2.gem.sha512
121
- - checksum/matchi-rspec-0.0.3.gem.sha512
122
- - checksum/matchi-rspec-0.1.0.gem.sha512
123
- - checksum/matchi-rspec-0.1.1.gem.sha512
124
- - checksum/matchi-rspec-0.1.2.gem.sha512
147
+ - lib/matchi/matcher/be.rb
148
+ - lib/matchi/matcher/be_instance_of.rb
149
+ - lib/matchi/matcher/eq.rb
125
150
  - lib/matchi/rspec.rb
126
- - lib/matchi/rspec/be.rb
127
- - lib/matchi/rspec/be_an_instance_of.rb
128
- - lib/matchi/rspec/be_instance_of.rb
129
- - lib/matchi/rspec/eq.rb
130
- - matchi-fix.gemspec
131
- - pkg_checksum
132
151
  homepage: https://github.com/fixrb/matchi-rspec
133
152
  licenses:
134
153
  - MIT
@@ -141,16 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
160
  requirements:
142
161
  - - ">="
143
162
  - !ruby/object:Gem::Version
144
- version: '0'
163
+ version: 2.7.0
145
164
  required_rubygems_version: !ruby/object:Gem::Requirement
146
165
  requirements:
147
166
  - - ">="
148
167
  - !ruby/object:Gem::Version
149
168
  version: '0'
150
169
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.7.6
170
+ rubygems_version: 3.1.4
153
171
  signing_key:
154
172
  specification_version: 4
155
- summary: Extend Matchi matchers with some RSpec's ones.
173
+ summary: Matchi extension gem to provide some RSpec matchers.
156
174
  test_files: []
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
- 0.1.3
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/rspec'
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
- 67bfc478d5c5b6c2375eaa2e205ffa2f6c2b1b3307068433ec7cc38f9b392b43b0bea9c2a2852f1287699e62d47d4aa1b282174f2993bbd1218b4f5505c9f809
@@ -1 +0,0 @@
1
- dd28d15a4dd21aaadd93492a572313efdd55f9bda0179d0d6ff434ffe3c659c67f16145fbf13396bec3cd2c700272e55f19e0f4b05371ef1f6e73842128ee42a
@@ -1 +0,0 @@
1
- 3265c35f9f52b45c773623ec84e0caeaebc4341bb1be8ed4c3a3b4892a043fc1883a26276f94becf09822cdc90b2a83a0ec87bc542590489fcfc46752ded7bb5
@@ -1 +0,0 @@
1
- 27c0879b60ec0abbeb58673b6924a2a73968ba468774115be47eced7027478cd860e78f6e16e744da61727c42a47ae15222cd1e9e5026d71cba59220783b2245
@@ -1 +0,0 @@
1
- 3d8e941bdab14c00365b633fbd3bd5f2f74660616b9de3713a8fac63772962c9f6b970dce12db24aaec8861a7924fec34678fdd41f2a2856ab630216d236184e
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'matchi/matchers_base' unless defined?(::Matchi::MatchersBase)
4
-
5
- # Namespace for the Matchi library.
6
- module Matchi
7
- # Collection of matchers.
8
- module Matchers
9
- # **Identity** matcher.
10
- module Be
11
- # The matcher.
12
- class Matcher < Equal::Matcher
13
- end
14
- end
15
- end
16
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'be_instance_of'
4
-
5
- # Namespace for the Matchi library.
6
- module Matchi
7
- # Collection of matchers.
8
- module Matchers
9
- # **Type/class** matcher.
10
- module BeAnInstanceOf
11
- # The matcher.
12
- class Matcher < BeInstanceOf::Matcher
13
- end
14
- end
15
- end
16
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'matchi/matchers_base' unless defined?(::Matchi::MatchersBase)
4
-
5
- # Namespace for the Matchi library.
6
- module Matchi
7
- # Collection of matchers.
8
- module Matchers
9
- # **Type/class** matcher.
10
- module BeInstanceOf
11
- # The matcher.
12
- class Matcher
13
- include MatchersBase
14
-
15
- # Initialize the matcher with an object.
16
- #
17
- # @example A string matcher
18
- # Matchi::BeInstanceOf.new(String)
19
- #
20
- # @param expected [#object_id] An expected class.
21
- def initialize(expected)
22
- @expected = expected
23
- end
24
-
25
- # @example Is it an instance of string?
26
- # be_instance_of = Matchi::BeInstanceOf.new(String)
27
- # be_instance_of.matches? { 'foo' } # => true
28
- #
29
- # @yieldreturn [#instance_of?] the actual value to compare to the
30
- # expected one.
31
- #
32
- # @return [Boolean] Comparison between actual and expected values.
33
- def matches?
34
- yield.instance_of?(@expected)
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Namespace for the Matchi library.
4
- module Matchi
5
- # Collection of matchers.
6
- module Matchers
7
- # **Equivalence** matcher.
8
- module Eq
9
- # The matcher.
10
- class Matcher < Eql::Matcher
11
- end
12
- end
13
- end
14
- end
data/matchi-fix.gemspec DELETED
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'matchi-rspec'
5
- spec.version = File.read('VERSION.semver').chomp
6
- spec.authors = ['Cyril Kato']
7
- spec.email = ['contact@cyril.email']
8
-
9
- spec.summary = "Extend Matchi matchers with some RSpec's ones."
10
- spec.description = 'Matchi extension gem to provide some RSpec matchers.'
11
- spec.homepage = 'https://github.com/fixrb/matchi-rspec'
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 'matchi', '~> 1.0.4'
20
-
21
- spec.add_development_dependency 'bundler', '~> 2.0'
22
- spec.add_development_dependency 'rake', '~> 12.3'
23
- spec.add_development_dependency 'rubocop', '~> 0.67'
24
- spec.add_development_dependency 'simplecov', '~> 0.16'
25
- spec.add_development_dependency 'yard', '~> 0.9'
26
- 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-rspec'.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") }