matchi-fix 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data/README.md +1 -1
- data/VERSION.semver +1 -1
- data/lib/matchi/fix.rb +16 -1
- data/matchi-fix.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f49fb93bcce49fb17f5548e300a0dbee5dc14d9
|
4
|
+
data.tar.gz: 23e437889ebe467e9e06565449d12052f8206eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c0d0bf1ec509d31c018216d6a351baf5c37be9b4ed8ebb1a53cce0bd678cb7c74609958d3eb20a555954636f36e2c2c1fe8d6cf8e5cbaa1e4800ac4cbc67fb7
|
7
|
+
data.tar.gz: 964fc002d9f1453a586c07673a60078043893930ff9a50a66767d43ff86b3e9a86ad61caaa7461c14142b515fd6a693ceb88c7d69c7ebcf5431e95a3566c3438
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
��(oR�"�t<��+��O�S���Ux�����̿����9k��/�TK���H*n踤q�D""O
|
1
|
+
�A2���*��L4�J�{�*e��1�'�(9�p׀>�Mܾ�dQ����8,y��H"zY� �U�J��9cki�v�?�1� $*���Q��|�N�7��)_�gpu�;��ov1����@=�_��I�Q�1�$|a�A�%[oy����˫�\5��"��5��=)=z��ݓ�kx�t�C@R���R㗴��Cd��w�w�E��}V0!Հy������2%���ɫ'oj������<;�UE}gJO�P
|
data/README.md
CHANGED
@@ -35,7 +35,7 @@ The `HighSecurity` trust profile will verify all gems. All of __Matchi::Fix__'s
|
|
35
35
|
```ruby
|
36
36
|
require 'matchi/fix'
|
37
37
|
|
38
|
-
fix = Matchi.
|
38
|
+
fix = Matchi::Fix.new(proc { it { MUST equal 42 } }) # => #<Matchi::Fix:0x007fe4ba2cc530 @expected=#<Proc:0x007fe4ba2cc558@(irb):3>>
|
39
39
|
fix.matches? { 6 * 7 } # => true
|
40
40
|
```
|
41
41
|
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/matchi/fix.rb
CHANGED
@@ -20,7 +20,7 @@ module Matchi
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# @example Is it equal to 42?
|
23
|
-
# fix = Matchi::Fix.new(proc { it { MUST
|
23
|
+
# fix = Matchi::Fix.new(proc { it { MUST equal 42 } })
|
24
24
|
# fix.matches? { 6 * 7 } # => true
|
25
25
|
#
|
26
26
|
# @api public
|
@@ -33,5 +33,20 @@ module Matchi
|
|
33
33
|
rescue SystemExit => e
|
34
34
|
e.success?
|
35
35
|
end
|
36
|
+
|
37
|
+
# Returns a string representing the matcher.
|
38
|
+
#
|
39
|
+
# @return [String] A string representing the matcher.
|
40
|
+
def to_s
|
41
|
+
"fix #{@expected.inspect}"
|
42
|
+
end
|
43
|
+
|
44
|
+
# Returns a hash of one key-value pair with a key corresponding to the
|
45
|
+
# matcher and a value corresponding to its initialize parameters.
|
46
|
+
#
|
47
|
+
# @return [Hash] A hash of one key-value pair.
|
48
|
+
def to_h
|
49
|
+
{ Fix: [@expected] }
|
50
|
+
end
|
36
51
|
end
|
37
52
|
end
|
data/matchi-fix.gemspec
CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
15
15
|
spec.require_paths = ['lib']
|
16
16
|
|
17
|
-
spec.add_dependency 'matchi', '~> 0.
|
18
|
-
spec.add_dependency 'fix', '~> 0.
|
17
|
+
spec.add_dependency 'matchi', '~> 0.1.2'
|
18
|
+
spec.add_dependency 'fix', '~> 0.16.0'
|
19
19
|
|
20
20
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
21
21
|
spec.add_development_dependency 'rake', '~> 10.4'
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matchi-fix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
|
31
31
|
0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-10-
|
33
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: matchi
|
@@ -38,28 +38,28 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 0.1.2
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 0.1.2
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: fix
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.16.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 0.16.0
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: bundler
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.4.5
|
180
|
+
rubygems_version: 2.4.5
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Fix expectation matcher.
|
metadata.gz.sig
CHANGED
Binary file
|