matchi-rspec 0.1.1 → 1.1.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
- SHA1:
3
- metadata.gz: bb9be218b216d67542f1d62a798657211559f017
4
- data.tar.gz: 566ca9a14a49b7540d50d121ed2eb8c352a2d2c1
2
+ SHA256:
3
+ metadata.gz: 761d3a03fec25765835388735c0303a09e3756ac1d95ccf0ad46c769befb94bb
4
+ data.tar.gz: 1d229c348a7bd6f0e85cb874f5337c584dc4f5a54815db6395ea4baf4ffc4eca
5
5
  SHA512:
6
- metadata.gz: c329c1ca3a1007861b359c165ff9558c7a6d6e83d5fc34f02f8e426df678694d0e0bb0408745c26f5ddaee8fbee4abea0f3e6ceafde82de5ff45e1841b1e1e6f
7
- data.tar.gz: 7f189113dfd3cef27eede6bc3acc3ec0487b48ef02ea61046007c5738a79fa77d9aa46d71504b734da6fa00c43b3e7bc3c5d32a915a7dde8df73ff126f1ac563
6
+ metadata.gz: f0e1291c5580a82b4d33b6d38ecb1235263fab75974ca512ee506f4ac27600f627bf5cd378822bf52247d54a4eac8e1cc20ff5ac8b43141a18686b029cd4fb77
7
+ data.tar.gz: 8ca33e2bf90dfe34a2606ae3a68a155afdcdc3d32dffc7517473a24236286aaf16dc55d6e2b3fc7950c69ee8e114a098393908ecaade2aa9cdff59729eba9fd9
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 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,98 +1,75 @@
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]
5
- [![Dependency Status](https://gemnasium.com/fixrb/matchi-rspec.svg)][gemnasium]
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]
6
5
  [![Gem Version](https://badge.fury.io/rb/matchi-rspec.svg)][gem]
7
- [![Inline docs](http://inch-ci.org/github/fixrb/matchi-rspec.svg?branch=master)][inchpages]
6
+ [![Inline docs](https://inch-ci.org/github/fixrb/matchi-rspec.svg?branch=main)][inchpages]
8
7
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
9
8
 
10
- > Extend [Matchi](https://github.com/fixrb/matchi) matchers with some [RSpec](http://rspec.info/)'s ones.
9
+ > Extend [Matchi](https://github.com/fixrb/matchi) matchers with some RSpec's ones.
11
10
 
12
- ## Contact
13
-
14
- * Home page: https://github.com/fixrb/matchi-rspec
15
- * Bugs/issues: https://github.com/fixrb/matchi-rspec/issues
16
- * Support: https://stackoverflow.com/questions/tagged/fixrb
17
-
18
- ## Rubies
11
+ ## Installation
19
12
 
20
- * [MRI](https://www.ruby-lang.org/)
21
- * [Rubinius](http://rubini.us/)
22
- * [JRuby](http://jruby.org/)
13
+ Add this line to your application's Gemfile:
23
14
 
24
- ## Installation
15
+ ```ruby
16
+ gem "matchi-rspec"
17
+ ```
25
18
 
26
- __Matchi::Rspec__ is cryptographically signed.
19
+ And then execute:
27
20
 
28
- To be sure the gem you install hasn't been tampered with, add my public key (if you haven't already) as a trusted certificate:
21
+ $ bundle
29
22
 
30
- $ gem cert --add <(curl -Ls https://raw.github.com/fixrb/matchi-rspec/master/certs/gem-fixrb-public_cert.pem)
31
- $ gem install matchi-rspec -P HighSecurity
23
+ Or install it yourself as:
32
24
 
33
- The `HighSecurity` trust profile will verify all gems. All of __Matchi::Rspec__'s dependencies are signed.
25
+ $ gem install matchi-rspec
34
26
 
35
27
  ## Usage
36
28
 
37
29
  **Identity** matcher:
38
30
 
39
31
  ```ruby
40
- be = Matchi::Be.new(42)
32
+ be = Matchi::Matcher::Be.new(42)
41
33
  be.matches? { 42 } # => true
42
34
  ```
43
35
 
44
36
  **Type/class** matcher:
45
37
 
46
38
  ```ruby
47
- be_instance_of = Matchi::BeInstanceOf.new(String)
48
- be_instance_of.matches? { 'foo' } # => true
39
+ be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
40
+ be_instance_of.matches? { "foo" } # => true
49
41
  ```
50
42
 
51
43
  **Equivalence** matcher:
52
44
 
53
45
  ```ruby
54
- eq = Matchi::Eq.new('foo')
55
- eq.matches? { 'foo' } # => true
46
+ eq = Matchi::Matcher::Eq.new("foo")
47
+ eq.matches? { "foo" } # => true
56
48
  ```
57
49
 
58
- ## Security
59
-
60
- As a basic form of security __Matchi::Rspec__ provides a set of SHA512 checksums for
61
- every Gem release. These checksums can be found in the `checksum/` directory.
62
- Although these checksums do not prevent malicious users from tampering with a
63
- built Gem they can be used for basic integrity verification purposes.
64
-
65
- The checksum of a file can be checked using the `sha512sum` command. For
66
- example:
50
+ ## Contact
67
51
 
68
- $ sha512sum pkg/matchi-rspec-0.1.0.gem
69
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-rspec-0.1.0.gem
52
+ * Home page: https://github.com/fixrb/matchi-rspec
70
53
 
71
54
  ## Versioning
72
55
 
73
- __Matchi::Rspec__ follows [Semantic Versioning 2.0](http://semver.org/).
74
-
75
- ## Contributing
76
-
77
- 1. [Fork it](https://github.com/fixrb/matchi-rspec/fork)
78
- 2. Create your feature branch (`git checkout -b my-new-feature`)
79
- 3. Commit your changes (`git commit -am 'Add some feature'`)
80
- 4. Push to the branch (`git push origin my-new-feature`)
81
- 5. Create a new Pull Request
56
+ __Matchi::Rspec__ follows [Semantic Versioning 2.0](https://semver.org/).
82
57
 
83
58
  ## License
84
59
 
85
- See `LICENSE.md` file.
86
-
87
- [gem]: https://rubygems.org/gems/matchi-rspec
88
- [travis]: https://travis-ci.org/fixrb/matchi-rspec
89
- [codeclimate]: https://codeclimate.com/github/fixrb/matchi-rspec
90
- [gemnasium]: https://gemnasium.com/fixrb/matchi-rspec
91
- [inchpages]: http://inch-ci.org/github/fixrb/matchi-rspec
92
- [rubydoc]: http://rubydoc.info/gems/matchi-rspec/frames
60
+ 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).
93
61
 
94
62
  ***
95
63
 
96
- This project is sponsored by:
64
+ <p>
65
+ This project is sponsored by:<br />
66
+ <a href="https://sashite.com/"><img
67
+ src="https://github.com/fixrb/matchi-rspec/raw/main/img/sashite.png"
68
+ alt="Sashite" /></a>
69
+ </p>
97
70
 
98
- [![Sashite](http://sashite.com/img/sashite.png)](http://sashite.com/)
71
+ [workflow_rubocop]: https://github.com/fixrb/matchi-rspec/actions?query=workflow%3ARuboCop
72
+ [gem]: https://rubygems.org/gems/matchi-rspec
73
+ [travis]: https://travis-ci.org/fixrb/matchi-rspec
74
+ [inchpages]: https://inch-ci.org/github/fixrb/matchi-rspec
75
+ [rubydoc]: https://rubydoc.info/gems/matchi-rspec/frames
@@ -0,0 +1,13 @@
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
+ class Be < ::Matchi::Matcher::Equal
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
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 matcher classes.
8
+ module Matcher
9
+ # **Type/class** matcher.
10
+ class BeAnInstanceOf < BeInstanceOf
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "matchi/matcher/base"
4
+
5
+ # Namespace for the Matchi library.
6
+ module Matchi
7
+ # Collection of matcher classes.
8
+ module Matcher
9
+ # **Type/class** matcher.
10
+ class BeInstanceOf < ::Matchi::Matcher::Base
11
+ # Initialize the matcher with an object.
12
+ #
13
+ # @example A string matcher
14
+ # Matchi::Matcher::BeInstanceOf.new(String)
15
+ #
16
+ # @param expected [#object_id] An expected class.
17
+ def initialize(expected)
18
+ super()
19
+ @expected = expected
20
+ end
21
+
22
+ # @todo For security reasons, instead of comparing actual with expected,
23
+ # we should compare expected with actual. Using something such as:
24
+ # `expected.class_of?(actual)`.
25
+ #
26
+ # @example Is it an instance of string?
27
+ # be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
28
+ # be_instance_of.matches? { 'foo' } # => true
29
+ #
30
+ # @yieldreturn [#instance_of?] the actual value to compare to the
31
+ # expected one.
32
+ #
33
+ # @return [Boolean] Comparison between actual and expected values.
34
+ def matches?
35
+ yield.instance_of?(expected)
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,13 @@
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
+ class Eq < ::Matchi::Matcher::Eql
11
+ end
12
+ end
13
+ end
data/lib/matchi/rspec.rb CHANGED
@@ -1,5 +1,7 @@
1
- require 'matchi'
1
+ # frozen_string_literal: true
2
2
 
3
- Dir[File.join File.dirname(__FILE__), 'rspec', '*.rb'].each do |fname|
3
+ Dir[File.join File.dirname(__FILE__), "matcher", "*.rb"].each do |fname|
4
4
  require_relative fname
5
5
  end
6
+
7
+ require "matchi/helper"
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matchi-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - certs/gem-fixrb-public_cert.pem
12
- date: 2017-04-22 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2021-05-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: matchi
@@ -17,118 +16,139 @@ dependencies:
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: 1.0.2
19
+ version: 2.0.1
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
- version: 1.0.2
26
+ version: 2.0.1
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: bundler
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - "~>"
31
+ - - ">="
33
32
  - !ruby/object:Gem::Version
34
- version: '1.14'
33
+ version: '0'
35
34
  type: :development
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
- - - "~>"
38
+ - - ">="
40
39
  - !ruby/object:Gem::Version
41
- version: '1.14'
40
+ version: '0'
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: rake
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
- - - "~>"
45
+ - - ">="
47
46
  - !ruby/object:Gem::Version
48
- version: '12.0'
47
+ version: '0'
49
48
  type: :development
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
- - - "~>"
52
+ - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: '12.0'
54
+ version: '0'
56
55
  - !ruby/object:Gem::Dependency
57
- name: yard
56
+ name: rubocop-md
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
- - - "~>"
59
+ - - ">="
61
60
  - !ruby/object:Gem::Version
62
- version: '0.9'
61
+ version: '0'
63
62
  type: :development
64
63
  prerelease: false
65
64
  version_requirements: !ruby/object:Gem::Requirement
66
65
  requirements:
67
- - - "~>"
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
+ - - ">="
68
88
  - !ruby/object:Gem::Version
69
- version: '0.9'
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'
70
111
  - !ruby/object:Gem::Dependency
71
112
  name: simplecov
72
113
  requirement: !ruby/object:Gem::Requirement
73
114
  requirements:
74
- - - "~>"
115
+ - - ">="
75
116
  - !ruby/object:Gem::Version
76
- version: '0.14'
117
+ version: '0'
77
118
  type: :development
78
119
  prerelease: false
79
120
  version_requirements: !ruby/object:Gem::Requirement
80
121
  requirements:
81
- - - "~>"
122
+ - - ">="
82
123
  - !ruby/object:Gem::Version
83
- version: '0.14'
124
+ version: '0'
84
125
  - !ruby/object:Gem::Dependency
85
- name: rubocop
126
+ name: yard
86
127
  requirement: !ruby/object:Gem::Requirement
87
128
  requirements:
88
- - - "~>"
129
+ - - ">="
89
130
  - !ruby/object:Gem::Version
90
- version: '0.48'
131
+ version: '0'
91
132
  type: :development
92
133
  prerelease: false
93
134
  version_requirements: !ruby/object:Gem::Requirement
94
135
  requirements:
95
- - - "~>"
136
+ - - ">="
96
137
  - !ruby/object:Gem::Version
97
- version: '0.48'
138
+ version: '0'
98
139
  description: Matchi extension gem to provide some RSpec matchers.
99
- email:
100
- - contact@cyril.email
140
+ email: contact@cyril.email
101
141
  executables: []
102
142
  extensions: []
103
143
  extra_rdoc_files: []
104
144
  files:
105
- - ".gitignore"
106
- - ".travis.yml"
107
- - ".yardopts"
108
- - CODE_OF_CONDUCT.md
109
- - Gemfile
110
145
  - LICENSE.md
111
146
  - README.md
112
- - Rakefile
113
- - VERSION.semver
114
- - bin/console
115
- - bin/setup
116
- - certs/gem-fixrb-public_cert.pem
117
- - checksum/matchi-fix-0.1.0.gem.sha512
118
- - checksum/matchi-fix-0.1.1.gem.sha512
119
- - checksum/matchi-fix-0.1.2.gem.sha512
120
- - checksum/matchi-fix-0.1.3.gem.sha512
121
- - checksum/matchi-fix-0.1.4.gem.sha512
122
- - checksum/matchi-rspec-0.0.2.gem.sha512
123
- - checksum/matchi-rspec-0.0.3.gem.sha512
124
- - checksum/matchi-rspec-0.1.0.gem.sha512
147
+ - lib/matchi/matcher/be.rb
148
+ - lib/matchi/matcher/be_an_instance_of.rb
149
+ - lib/matchi/matcher/be_instance_of.rb
150
+ - lib/matchi/matcher/eq.rb
125
151
  - 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
152
  homepage: https://github.com/fixrb/matchi-rspec
133
153
  licenses:
134
154
  - MIT
@@ -141,16 +161,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
161
  requirements:
142
162
  - - ">="
143
163
  - !ruby/object:Gem::Version
144
- version: '0'
164
+ version: 2.7.0
145
165
  required_rubygems_version: !ruby/object:Gem::Requirement
146
166
  requirements:
147
167
  - - ">="
148
168
  - !ruby/object:Gem::Version
149
169
  version: '0'
150
170
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.6.11
171
+ rubygems_version: 3.1.4
153
172
  signing_key:
154
173
  specification_version: 4
155
- summary: Extend Matchi matchers with some RSpec's ones.
174
+ summary: Matchi extension gem to provide some RSpec matchers.
156
175
  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,29 +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.0
11
- - 2.1
12
- - 2.2
13
- - 2.3.3
14
- - 2.4.0
15
- - ruby-head
16
- - jruby-head
17
- - rbx-3
18
- matrix:
19
- allow_failures:
20
- - rvm: ruby-head
21
- - rvm: jruby-head
22
- - rvm: rbx-3
23
- notifications:
24
- webhooks:
25
- urls:
26
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
27
- on_success: change
28
- on_failure: always
29
- 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,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,20 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
- require 'rubocop/rake_task'
4
-
5
- RuboCop::RakeTask.new
6
-
7
- Rake::TestTask.new do |t|
8
- t.verbose = true
9
- t.warning = true
10
- end
11
-
12
- namespace :test do
13
- task :coverage do
14
- ENV['COVERAGE'] = 'true'
15
- Rake::Task['test'].invoke
16
- end
17
- end
18
-
19
- task(:doc_stats) { ruby '-S yard stats' }
20
- task default: %i[test doc_stats rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 0.1.1
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'matchi/rspec'
5
-
6
- require 'irb'
7
- IRB.start
data/bin/setup DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
3
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
4
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
5
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
6
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
7
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
8
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
9
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
10
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
11
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
12
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
13
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
14
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
15
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
16
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
17
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
18
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
19
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
20
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
21
- -----END CERTIFICATE-----
@@ -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,14 +0,0 @@
1
- require 'matchi/matchers_base' unless defined?(::Matchi::MatchersBase)
2
-
3
- # Namespace for the Matchi library.
4
- module Matchi
5
- # Collection of matchers.
6
- module Matchers
7
- # **Identity** matcher.
8
- module Be
9
- # The matcher.
10
- class Matcher < Equal::Matcher
11
- end
12
- end
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- require_relative 'be_instance_of'
2
-
3
- # Namespace for the Matchi library.
4
- module Matchi
5
- # Collection of matchers.
6
- module Matchers
7
- # **Type/class** matcher.
8
- module BeAnInstanceOf
9
- # The matcher.
10
- class Matcher < BeInstanceOf::Matcher
11
- end
12
- end
13
- end
14
- end
@@ -1,37 +0,0 @@
1
- require 'matchi/matchers_base' unless defined?(::Matchi::MatchersBase)
2
-
3
- # Namespace for the Matchi library.
4
- module Matchi
5
- # Collection of matchers.
6
- module Matchers
7
- # **Type/class** matcher.
8
- module BeInstanceOf
9
- # The matcher.
10
- class Matcher
11
- include MatchersBase
12
-
13
- # Initialize the matcher with an object.
14
- #
15
- # @example A string matcher
16
- # Matchi::BeInstanceOf.new(String)
17
- #
18
- # @param expected [#object_id] An expected class.
19
- def initialize(expected)
20
- @expected = expected
21
- end
22
-
23
- # @example Is it an instance of string?
24
- # be_instance_of = Matchi::BeInstanceOf.new(String)
25
- # be_instance_of.matches? { 'foo' } # => true
26
- #
27
- # @yieldreturn [#instance_of?] the actual value to compare to the
28
- # expected one.
29
- #
30
- # @return [Boolean] Comparison between actual and expected values.
31
- def matches?
32
- yield.instance_of?(@expected)
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,12 +0,0 @@
1
- # Namespace for the Matchi library.
2
- module Matchi
3
- # Collection of matchers.
4
- module Matchers
5
- # **Equivalence** matcher.
6
- module Eq
7
- # The matcher.
8
- class Matcher < Eql::Matcher
9
- end
10
- end
11
- end
12
- end
data/matchi-fix.gemspec DELETED
@@ -1,28 +0,0 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = 'matchi-rspec'
3
- spec.version = File.read('VERSION.semver').chomp
4
- spec.authors = ['Cyril Kato']
5
- spec.email = ['contact@cyril.email']
6
-
7
- spec.summary = "Extend Matchi matchers with some RSpec's ones."
8
- spec.description = 'Matchi extension gem to provide some RSpec matchers.'
9
- spec.homepage = 'https://github.com/fixrb/matchi-rspec'
10
- spec.license = 'MIT'
11
-
12
- spec.files =
13
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
14
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
- spec.require_paths = ['lib']
16
-
17
- spec.add_dependency 'matchi', '~> 1.0.2'
18
-
19
- spec.add_development_dependency 'bundler', '~> 1.14'
20
- spec.add_development_dependency 'rake', '~> 12.0'
21
- spec.add_development_dependency 'yard', '~> 0.9'
22
- spec.add_development_dependency 'simplecov', '~> 0.14'
23
- spec.add_development_dependency 'rubocop', '~> 0.48'
24
-
25
- spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
26
- private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
27
- spec.signing_key = private_key if File.exist?(private_key)
28
- end
data/pkg_checksum DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'digest/sha2'
4
-
5
- gemname = 'matchi-rspec'.to_sym
6
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
7
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
8
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
9
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
10
-
11
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }