matchi-rspec 0.1.0 → 1.0.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
- SHA1:
3
- metadata.gz: 3928705929dead23a02fb3126b65e27a795683c6
4
- data.tar.gz: 802f838b1bab030c3e46d694436ad2b20dbbecd0
2
+ SHA256:
3
+ metadata.gz: 004ae961c972f24ee6e2f918873b7f79a3c2bf95ec95e8f001f3c3698a8dee21
4
+ data.tar.gz: 3eef55e7be6d1eede6508fdb5de8af88bdbd479b670517b8858d217906adaf49
5
5
  SHA512:
6
- metadata.gz: 450d591851853762589518d34defe98860c15e4b1f64fa04c058180347d1768a3658cfb59502e865d96c9e1db376222c642f4fec06ceffbfdb37611a2142eb67
7
- data.tar.gz: 5273a945241070bbd1f5963a0893eef9bc2d615d9f219c4923d2272ed5ff56d0dbe430432beb4471376ccbeb20ad182c4560308fb48bf9251c93db143b0f8769
6
+ metadata.gz: 4a848e2e1d874a9dfa5727bc7eb56de41892f89482f0e7d245fc93935fc570b3fdbfca5b9a6e7375d9207db240ec656d3fbf710b2a70d158d51b389f8f3f774c
7
+ data.tar.gz: 2a17ea2f45ced473830f76d0d87694e89418aec280a69275e6785852ccd79086b7f3d36ca30b390bccd97ebe79e720381ebb92b752af8bb0ca84e5d14e3cdfce
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Cyril Wack
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,94 +1,75 @@
1
1
  # Matchi::Rspec
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/matchi-rspec.svg?branch=master)][travis]
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=master)][travis]
4
5
  [![Gem Version](https://badge.fury.io/rb/matchi-rspec.svg)][gem]
5
- [![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=master)][inchpages]
6
7
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
7
8
 
8
- > 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](https://rspec.info/)'s ones.
9
10
 
10
- ## Contact
11
-
12
- * Home page: https://github.com/fixrb/matchi-rspec
13
- * Bugs/issues: https://github.com/fixrb/matchi-rspec/issues
14
- * Support: https://stackoverflow.com/questions/tagged/fixrb
15
-
16
- ## Rubies
11
+ ## Installation
17
12
 
18
- * [MRI](https://www.ruby-lang.org/)
19
- * [Rubinius](http://rubini.us/)
20
- * [JRuby](http://jruby.org/)
13
+ Add this line to your application's Gemfile:
21
14
 
22
- ## Installation
15
+ ```ruby
16
+ gem 'matchi-rspec'
17
+ ```
23
18
 
24
- __Matchi::Rspec__ is cryptographically signed.
19
+ And then execute:
25
20
 
26
- 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
27
22
 
28
- $ gem cert --add <(curl -Ls https://raw.github.com/fixrb/matchi-rspec/master/certs/gem-fixrb-public_cert.pem)
29
- $ gem install matchi-rspec -P HighSecurity
23
+ Or install it yourself as:
30
24
 
31
- The `HighSecurity` trust profile will verify all gems. All of __Matchi::Rspec__'s dependencies are signed.
25
+ $ gem install matchi-rspec
32
26
 
33
27
  ## Usage
34
28
 
35
29
  **Identity** matcher:
36
30
 
37
31
  ```ruby
38
- be = Matchi::Be.new(42)
32
+ be = Matchi::Matcher::Be.new(42)
39
33
  be.matches? { 42 } # => true
40
34
  ```
41
35
 
42
36
  **Type/class** matcher:
43
37
 
44
38
  ```ruby
45
- be_instance_of = Matchi::BeInstanceOf.new(String)
39
+ be_instance_of = Matchi::Matcher::BeInstanceOf.new(String)
46
40
  be_instance_of.matches? { 'foo' } # => true
47
41
  ```
48
42
 
49
43
  **Equivalence** matcher:
50
44
 
51
45
  ```ruby
52
- eq = Matchi::Eq.new('foo')
46
+ eq = Matchi::Matcher::Eq.new('foo')
53
47
  eq.matches? { 'foo' } # => true
54
48
  ```
55
49
 
56
- ## Security
57
-
58
- As a basic form of security __Matchi::Rspec__ provides a set of SHA512 checksums for
59
- every Gem release. These checksums can be found in the `checksum/` directory.
60
- Although these checksums do not prevent malicious users from tampering with a
61
- built Gem they can be used for basic integrity verification purposes.
62
-
63
- The checksum of a file can be checked using the `sha512sum` command. For
64
- example:
50
+ ## Contact
65
51
 
66
- $ sha512sum pkg/matchi-rspec-0.1.0.gem
67
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-rspec-0.1.0.gem
52
+ * Home page: https://github.com/fixrb/matchi-rspec
68
53
 
69
54
  ## Versioning
70
55
 
71
- __Matchi::Rspec__ follows [Semantic Versioning 2.0](http://semver.org/).
72
-
73
- ## Contributing
74
-
75
- 1. [Fork it](https://github.com/fixrb/matchi-rspec/fork)
76
- 2. Create your feature branch (`git checkout -b my-new-feature`)
77
- 3. Commit your changes (`git commit -am 'Add some feature'`)
78
- 4. Push to the branch (`git push origin my-new-feature`)
79
- 5. Create a new Pull Request
56
+ __Matchi::Rspec__ follows [Semantic Versioning 2.0](https://semver.org/).
80
57
 
81
58
  ## License
82
59
 
83
- See `LICENSE.md` file.
84
-
85
- [gem]: https://rubygems.org/gems/matchi-rspec
86
- [travis]: https://travis-ci.org/fixrb/matchi-rspec
87
- [inchpages]: http://inch-ci.org/github/fixrb/matchi-rspec/
88
- [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).
89
61
 
90
62
  ***
91
63
 
92
- 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/master/img/sashite.png"
68
+ alt="Sashite" /></a>
69
+ </p>
93
70
 
94
- [![Sashite](http://www.sashite.com/assets/img/sashite.png)](http://www.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,38 @@
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
+ @expected = expected
19
+ end
20
+
21
+ # @todo For security reasons, instead of comparing actual with expected,
22
+ # we should compare expected with actual. Using something such as:
23
+ # `expected.class_of?(actual)`.
24
+ #
25
+ # @example Is it an instance of string?
26
+ # be_instance_of = Matchi::Matcher::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
@@ -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,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matchi-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Cyril Wack
8
- autorequire:
7
+ - Cyril Kato
8
+ autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
14
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
15
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
16
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
17
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
18
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
19
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
20
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
21
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
22
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
23
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
24
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
25
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
26
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
27
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
28
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
29
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
30
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
- -----END CERTIFICATE-----
33
- date: 2015-11-29 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2021-04-03 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: matchi
@@ -38,122 +16,116 @@ dependencies:
38
16
  requirements:
39
17
  - - "~>"
40
18
  - !ruby/object:Gem::Version
41
- version: 1.0.1
19
+ version: 2.0.0
42
20
  type: :runtime
43
21
  prerelease: false
44
22
  version_requirements: !ruby/object:Gem::Requirement
45
23
  requirements:
46
24
  - - "~>"
47
25
  - !ruby/object:Gem::Version
48
- version: 1.0.1
26
+ version: 2.0.0
49
27
  - !ruby/object:Gem::Dependency
50
28
  name: bundler
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - "~>"
31
+ - - ">="
54
32
  - !ruby/object:Gem::Version
55
- version: '1.10'
33
+ version: '0'
56
34
  type: :development
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
- - - "~>"
38
+ - - ">="
61
39
  - !ruby/object:Gem::Version
62
- version: '1.10'
40
+ version: '0'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: rake
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
- - - "~>"
45
+ - - ">="
68
46
  - !ruby/object:Gem::Version
69
- version: '10.4'
47
+ version: '0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
- - - "~>"
52
+ - - ">="
75
53
  - !ruby/object:Gem::Version
76
- version: '10.4'
54
+ version: '0'
77
55
  - !ruby/object:Gem::Dependency
78
- name: yard
56
+ name: rubocop-performance
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ">="
82
60
  - !ruby/object:Gem::Version
83
- version: '0.8'
61
+ version: '0'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-thread_safety
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
89
74
  - !ruby/object:Gem::Version
90
- version: '0.8'
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'
91
83
  - !ruby/object:Gem::Dependency
92
84
  name: simplecov
93
85
  requirement: !ruby/object:Gem::Requirement
94
86
  requirements:
95
- - - "~>"
87
+ - - ">="
96
88
  - !ruby/object:Gem::Version
97
- version: '0.10'
89
+ version: '0'
98
90
  type: :development
99
91
  prerelease: false
100
92
  version_requirements: !ruby/object:Gem::Requirement
101
93
  requirements:
102
- - - "~>"
94
+ - - ">="
103
95
  - !ruby/object:Gem::Version
104
- version: '0.10'
96
+ version: '0'
105
97
  - !ruby/object:Gem::Dependency
106
- name: rubocop
98
+ name: yard
107
99
  requirement: !ruby/object:Gem::Requirement
108
100
  requirements:
109
- - - "~>"
101
+ - - ">="
110
102
  - !ruby/object:Gem::Version
111
- version: '0.35'
103
+ version: '0'
112
104
  type: :development
113
105
  prerelease: false
114
106
  version_requirements: !ruby/object:Gem::Requirement
115
107
  requirements:
116
- - - "~>"
108
+ - - ">="
117
109
  - !ruby/object:Gem::Version
118
- version: '0.35'
110
+ version: '0'
119
111
  description: Matchi extension gem to provide some RSpec matchers.
120
- email:
121
- - contact@cyril.email
112
+ email: contact@cyril.email
122
113
  executables: []
123
114
  extensions: []
124
115
  extra_rdoc_files: []
125
116
  files:
126
- - ".gitignore"
127
- - ".travis.yml"
128
- - ".yardopts"
129
- - CODE_OF_CONDUCT.md
130
- - Gemfile
131
117
  - LICENSE.md
132
118
  - README.md
133
- - Rakefile
134
- - VERSION.semver
135
- - bin/console
136
- - bin/setup
137
- - certs/gem-fixrb-public_cert.pem
138
- - checksum/matchi-fix-0.1.0.gem.sha512
139
- - checksum/matchi-fix-0.1.1.gem.sha512
140
- - checksum/matchi-fix-0.1.2.gem.sha512
141
- - checksum/matchi-fix-0.1.3.gem.sha512
142
- - checksum/matchi-fix-0.1.4.gem.sha512
143
- - checksum/matchi-rspec-0.0.2.gem.sha512
144
- - checksum/matchi-rspec-0.0.3.gem.sha512
119
+ - lib/matchi/matcher/be.rb
120
+ - lib/matchi/matcher/be_an_instance_of.rb
121
+ - lib/matchi/matcher/be_instance_of.rb
122
+ - lib/matchi/matcher/eq.rb
145
123
  - lib/matchi/rspec.rb
146
- - lib/matchi/rspec/be.rb
147
- - lib/matchi/rspec/be_an_instance_of.rb
148
- - lib/matchi/rspec/be_instance_of.rb
149
- - lib/matchi/rspec/eq.rb
150
- - matchi-fix.gemspec
151
- - pkg_checksum
152
124
  homepage: https://github.com/fixrb/matchi-rspec
153
125
  licenses:
154
126
  - MIT
155
127
  metadata: {}
156
- post_install_message:
128
+ post_install_message:
157
129
  rdoc_options: []
158
130
  require_paths:
159
131
  - lib
@@ -161,17 +133,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
133
  requirements:
162
134
  - - ">="
163
135
  - !ruby/object:Gem::Version
164
- version: '0'
136
+ version: 2.7.0
165
137
  required_rubygems_version: !ruby/object:Gem::Requirement
166
138
  requirements:
167
139
  - - ">="
168
140
  - !ruby/object:Gem::Version
169
141
  version: '0'
170
142
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.4.5.1
173
- signing_key:
143
+ rubygems_version: 3.2.3
144
+ signing_key:
174
145
  specification_version: 4
175
- summary: Extend Matchi matchers with some RSpec's ones.
146
+ summary: Matchi extension gem to provide some RSpec matchers.
176
147
  test_files: []
177
- has_rdoc:
checksums.yaml.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- $(<�Ʌ���w�k��?o�Q�����Z��/k �T=�Ө���$8��䛕����&BH��g��;�z��7����&�C�n����j�1�p���*�^��Qr�7I�A�rӎA��驱�/��ܴ���bK���X��gKg7<���xs�:�����ɠaKc]��NU����N�N�!�$s���,�����:Z�;��TW�#�ֈ�M
2
-  �����V��;���ۼ
data.tar.gz.sig DELETED
Binary file
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,15 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- script: 'bundle exec rake test:coverage --trace'
5
- before_install:
6
- - gem install bundler
7
- rvm:
8
- - 1.9.3
9
- - 2.0
10
- - 2.1
11
- - 2.2
12
- - ruby-head
13
- - jruby
14
- - jruby-head
15
- - rbx-2
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: [:test, :doc_stats, :rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 0.1.0
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,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 Wack']
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.1'
18
-
19
- spec.add_development_dependency 'bundler', '~> 1.10'
20
- spec.add_development_dependency 'rake', '~> 10.4'
21
- spec.add_development_dependency 'yard', '~> 0.8'
22
- spec.add_development_dependency 'simplecov', '~> 0.10'
23
- spec.add_development_dependency 'rubocop', '~> 0.35'
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") }
metadata.gz.sig DELETED
Binary file