matchi-rspec 0.1.2 → 1.1.1

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: 418dd8de7a1b84cb10d7677f1591867e3a1131fa7621e4d6687268f3650c275c
4
- data.tar.gz: 828a73037f5988418e60eda0b5ba9c422ea8fc387562e4ac0342f7500d2acc58
3
+ metadata.gz: e1ff1b0da7768260dcf43db3e506d8fc8ed54b7518fd38c6b5aca65f36c186cb
4
+ data.tar.gz: f459d78d33ad4804000a6fea7b9b485cad402d9db07d85231046e5faf55c5705
5
5
  SHA512:
6
- metadata.gz: 771b2d70d535d432082c37238dc80c6c5eb6e801ca61882ab8dd9cdaec505fb09cd1dfb86846b471e9ee6156daeaeec868cfe977c499794546b61f2726c6b4e7
7
- data.tar.gz: 4e63d2ad6369f8713b0f52f492f971ec91ab7b06dc25df9143bb7aa2158cf84360fc3e2e8dc7a44c1846459828d23fb57b6d9a84ed910fb6a57fc0120e7643e0
6
+ metadata.gz: d5d4ccce48f97eb034728c1ca522c1bae7893fda49bcd10a2c9bec9373d18a349b37e0e6bd1c1b6e97432168a468c5f10b64f633d468fd08674e3f5d6006e522
7
+ data.tar.gz: 9a0073dc12207e13feed3d855b63df39cb03459ed1ae2a2b05b4a4f8cbac4e68908ed392b299fd0795df6efb1a5fa7720334d83141c5fc5c8aac3cec52c71b6e
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,97 +1,78 @@
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]
6
+ [![Inline docs](https://inch-ci.org/github/fixrb/matchi-rspec.svg?branch=main)][inchpages]
7
7
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
8
8
 
9
- > 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.
10
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
11
+ ## Installation
18
12
 
19
- * [MRI](https://www.ruby-lang.org/)
20
- * [Rubinius](http://rubini.us/)
21
- * [JRuby](http://jruby.org/)
13
+ Add this line to your application's Gemfile:
22
14
 
23
- ## Installation
15
+ ```ruby
16
+ gem "matchi-rspec"
17
+ ```
24
18
 
25
- __Matchi::Rspec__ is cryptographically signed.
19
+ And then execute:
26
20
 
27
- 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
28
22
 
29
- $ gem cert --add <(curl -Ls https://raw.github.com/fixrb/matchi-rspec/master/certs/gem-fixrb-public_cert.pem)
30
- $ gem install matchi-rspec -P HighSecurity
23
+ Or install it yourself as:
31
24
 
32
- The `HighSecurity` trust profile will verify all gems. All of __Matchi::Rspec__'s dependencies are signed.
25
+ $ gem install matchi-rspec
33
26
 
34
27
  ## Usage
35
28
 
36
29
  **Identity** matcher:
37
30
 
38
31
  ```ruby
39
- be = Matchi::Be.new(42)
32
+ be = Matchi::Matcher::Be.new(42)
40
33
  be.matches? { 42 } # => true
41
34
  ```
42
35
 
43
36
  **Type/class** matcher:
44
37
 
45
38
  ```ruby
46
- be_instance_of = Matchi::BeInstanceOf.new(String)
47
- be_instance_of.matches? { 'foo' } # => true
39
+ be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
40
+ be_instance_of.matches? { "foo" } # => true
41
+
42
+ be_an_instance_of = Matchi::Matcher::BeAnInstanceOf.new(String)
43
+ be_an_instance_of.matches? { "foo" } # => true
48
44
  ```
49
45
 
50
46
  **Equivalence** matcher:
51
47
 
52
48
  ```ruby
53
- eq = Matchi::Eq.new('foo')
54
- eq.matches? { 'foo' } # => true
49
+ eq = Matchi::Matcher::Eq.new("foo")
50
+ eq.matches? { "foo" } # => true
55
51
  ```
56
52
 
57
- ## Security
58
-
59
- As a basic form of security __Matchi::Rspec__ provides a set of SHA512 checksums for
60
- every Gem release. These checksums can be found in the `checksum/` directory.
61
- Although these checksums do not prevent malicious users from tampering with a
62
- built Gem they can be used for basic integrity verification purposes.
63
-
64
- The checksum of a file can be checked using the `sha512sum` command. For
65
- example:
53
+ ## Contact
66
54
 
67
- $ sha512sum pkg/matchi-rspec-0.1.0.gem
68
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-rspec-0.1.0.gem
55
+ * Home page: https://github.com/fixrb/matchi-rspec
69
56
 
70
57
  ## Versioning
71
58
 
72
- __Matchi::Rspec__ follows [Semantic Versioning 2.0](http://semver.org/).
73
-
74
- ## Contributing
75
-
76
- 1. [Fork it](https://github.com/fixrb/matchi-rspec/fork)
77
- 2. Create your feature branch (`git checkout -b my-new-feature`)
78
- 3. Commit your changes (`git commit -am 'Add some feature'`)
79
- 4. Push to the branch (`git push origin my-new-feature`)
80
- 5. Create a new Pull Request
59
+ __Matchi::Rspec__ follows [Semantic Versioning 2.0](https://semver.org/).
81
60
 
82
61
  ## License
83
62
 
84
- See `LICENSE.md` file.
85
-
86
- [gem]: https://rubygems.org/gems/matchi-rspec
87
- [travis]: https://travis-ci.org/fixrb/matchi-rspec
88
- [codeclimate]: https://codeclimate.com/github/fixrb/matchi-rspec
89
- [gemnasium]: https://gemnasium.com/fixrb/matchi-rspec
90
- [inchpages]: http://inch-ci.org/github/fixrb/matchi-rspec
91
- [rubydoc]: http://rubydoc.info/gems/matchi-rspec/frames
63
+ 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).
92
64
 
93
65
  ***
94
66
 
95
- This project is sponsored by:
67
+ <p>
68
+ This project is sponsored by:<br />
69
+ <a href="https://sashite.com/"><img
70
+ src="https://github.com/fixrb/matchi-rspec/raw/main/img/sashite.png"
71
+ alt="Sashite" /></a>
72
+ </p>
96
73
 
97
- [![Sashite](http://sashite.com/img/sashite.png)](http://sashite.com/)
74
+ [workflow_rubocop]: https://github.com/fixrb/matchi-rspec/actions?query=workflow%3ARuboCop
75
+ [gem]: https://rubygems.org/gems/matchi-rspec
76
+ [travis]: https://travis-ci.org/fixrb/matchi-rspec
77
+ [inchpages]: https://inch-ci.org/github/fixrb/matchi-rspec
78
+ [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,34 @@
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
+ # @example Is it an instance of string?
23
+ # be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
24
+ # be_instance_of.matches? { 'foo' } # => true
25
+ #
26
+ # @yieldreturn [#class] the actual value to compare to the expected one.
27
+ #
28
+ # @return [Boolean] Comparison between actual and expected values.
29
+ def matches?
30
+ expected.equal?(yield.class)
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "matchi/matcher/eql"
4
+
3
5
  # Namespace for the Matchi library.
4
6
  module Matchi
5
- # Collection of matchers.
6
- module Matchers
7
+ # Collection of matcher classes.
8
+ module Matcher
7
9
  # **Equivalence** matcher.
8
- module Eq
9
- # The matcher.
10
- class Matcher < Eql::Matcher
11
- end
10
+ class Eq < ::Matchi::Matcher::Eql
12
11
  end
13
12
  end
14
13
  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,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.2
4
+ version: 1.1.1
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: 2018-08-26 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2021-06-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: matchi
@@ -17,119 +16,139 @@ dependencies:
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: 1.0.3
19
+ version: 2.0.2
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.3
26
+ version: 2.0.2
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.16'
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.16'
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.3'
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.3'
54
+ version: '0'
56
55
  - !ruby/object:Gem::Dependency
57
- name: rubocop
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.58'
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.58'
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.16'
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.16'
124
+ version: '0'
84
125
  - !ruby/object:Gem::Dependency
85
126
  name: yard
86
127
  requirement: !ruby/object:Gem::Requirement
87
128
  requirements:
88
- - - "~>"
129
+ - - ">="
89
130
  - !ruby/object:Gem::Version
90
- version: '0.9'
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.9'
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
125
- - checksum/matchi-rspec-0.1.1.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
126
151
  - lib/matchi/rspec.rb
127
- - lib/matchi/rspec/be.rb
128
- - lib/matchi/rspec/be_an_instance_of.rb
129
- - lib/matchi/rspec/be_instance_of.rb
130
- - lib/matchi/rspec/eq.rb
131
- - matchi-fix.gemspec
132
- - pkg_checksum
133
152
  homepage: https://github.com/fixrb/matchi-rspec
134
153
  licenses:
135
154
  - MIT
@@ -142,16 +161,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
161
  requirements:
143
162
  - - ">="
144
163
  - !ruby/object:Gem::Version
145
- version: '0'
164
+ version: 2.7.0
146
165
  required_rubygems_version: !ruby/object:Gem::Requirement
147
166
  requirements:
148
167
  - - ">="
149
168
  - !ruby/object:Gem::Version
150
169
  version: '0'
151
170
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.6
171
+ rubygems_version: 3.1.4
154
172
  signing_key:
155
173
  specification_version: 4
156
- summary: Extend Matchi matchers with some RSpec's ones.
174
+ summary: Matchi extension gem to provide some RSpec matchers.
157
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,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.2
11
- - 2.3.3
12
- - 2.4.0
13
- - 2.5.0
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.2
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,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 +0,0 @@
1
- 27c0879b60ec0abbeb58673b6924a2a73968ba468774115be47eced7027478cd860e78f6e16e744da61727c42a47ae15222cd1e9e5026d71cba59220783b2245
@@ -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
data/matchi-fix.gemspec DELETED
@@ -1,30 +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.3'
20
-
21
- spec.add_development_dependency 'bundler', '~> 1.16'
22
- spec.add_development_dependency 'rake', '~> 12.3'
23
- spec.add_development_dependency 'rubocop', '~> 0.58'
24
- spec.add_development_dependency 'simplecov', '~> 0.16'
25
- spec.add_development_dependency 'yard', '~> 0.9'
26
-
27
- spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
28
- private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
29
- spec.signing_key = private_key if File.exist?(private_key)
30
- 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") }