spectus 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.rubocop_todo.yml +1 -1
- data/VERSION.semver +1 -1
- data/lib/spectus/matchers.rb +6 -4
- data/lib/spectus/result/base.rb +1 -1
- data/spectus.gemspec +2 -2
- metadata +5 -5
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c3716f6ecf160770dd681440cc6c4dd2d12169
|
4
|
+
data.tar.gz: 457c23b98001c0ce50f6b01a5fddb2d850c21c52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d8b8d0dacfb26cc773205414c34d68cceb18ffca64293c55a81d38fd0dfd4984d4ad48cec7b92b94be7cbdd826037fa7423ee0957f5acef8f9fb2c799e99f7
|
7
|
+
data.tar.gz: 88e303942a218c8b4d71e7da8b73c3a6a558f6fe83c82761aca1addc6c59005f983bbe9b474edb40f1c65106dd040b076b8d5adf2f6081810964b6dcc12ce9ef
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2015-
|
3
|
+
# on 2015-11-26 23:14:37 +0100 using RuboCop version 0.35.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.5
|
data/lib/spectus/matchers.rb
CHANGED
@@ -6,7 +6,7 @@ module Spectus
|
|
6
6
|
# @api public
|
7
7
|
#
|
8
8
|
module Matchers
|
9
|
-
Matchi.constants.each do |const|
|
9
|
+
Matchi::Matchers.constants.each do |const|
|
10
10
|
name = const
|
11
11
|
.to_s
|
12
12
|
.gsub(/::/, '/')
|
@@ -16,14 +16,16 @@ module Spectus
|
|
16
16
|
|
17
17
|
# Define a method for the given matcher.
|
18
18
|
#
|
19
|
-
# @example Given the `Matchi::Equal` matcher, its
|
19
|
+
# @example Given the `Matchi::Matchers::Equal::Matcher` matcher, its
|
20
|
+
# method would be:
|
21
|
+
#
|
20
22
|
# def equal(expected)
|
21
|
-
# Matchi::Equal.new(expected)
|
23
|
+
# Matchi::Matchers::Equal::Matcher.new(expected)
|
22
24
|
# end
|
23
25
|
#
|
24
26
|
# @return [#matches?] The matcher.
|
25
27
|
define_method name do |*args|
|
26
|
-
Matchi.const_get(const).new(*args)
|
28
|
+
Matchi::Matchers.const_get(const)::Matcher.new(*args)
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
data/lib/spectus/result/base.rb
CHANGED
@@ -22,7 +22,7 @@ module Spectus
|
|
22
22
|
# @param negate [Boolean] Evaluate to a negative assertion.
|
23
23
|
# @param valid [Boolean] Report if the test was true or false.
|
24
24
|
def initialize(message, subject, challenge, actual, expected, got, error,
|
25
|
-
|
25
|
+
level, negate, valid)
|
26
26
|
|
27
27
|
@message = message.to_s
|
28
28
|
@subject = subject
|
data/spectus.gemspec
CHANGED
@@ -16,13 +16,13 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.add_dependency 'aw', '~> 0.1.0'
|
18
18
|
spec.add_dependency 'defi', '~> 1.1.0'
|
19
|
-
spec.add_dependency 'matchi', '~> 0.1
|
19
|
+
spec.add_dependency 'matchi', '~> 1.0.1'
|
20
20
|
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.4'
|
23
23
|
spec.add_development_dependency 'yard', '~> 0.8'
|
24
24
|
spec.add_development_dependency 'simplecov', '~> 0.10'
|
25
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
25
|
+
spec.add_development_dependency 'rubocop', '~> 0.35'
|
26
26
|
|
27
27
|
spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
|
28
28
|
private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.1
|
69
|
+
version: 1.0.1
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.1
|
76
|
+
version: 1.0.1
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: bundler
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,14 +136,14 @@ dependencies:
|
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0.
|
139
|
+
version: '0.35'
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '0.
|
146
|
+
version: '0.35'
|
147
147
|
description: Expectation library with RFC 2119's requirement levels.
|
148
148
|
email:
|
149
149
|
- contact@cyril.email
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�붟����WmS˄����;m2�E�&�"�4j|n3!�r�`l��P���z��ins#5�6*���O�Y�)�<X�0�?�t^�jm��$���ֻ�)*��Gf�z#��2ԣ�S����'����B����i��
|
1
|
+
b(>�ޙ�/wk�(���3�]Ԭe�eʹ�II1���J��f������`�
|
2
|
+
r\Y�7Fb;�s�??ݯZ��x�)M�R�ߛ��K� "��������=��F\裏M���|ȶֻ���w��_��<�N�8Եnh]�����bC�2�����݁�'0vcG�2����ϥeM������C��������<5ޜ�#�m��CbiO��rJ���Ќ�;
|