spectus 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -4
- data/LICENSE.md +1 -1
- data/README.md +6 -2
- data/Rakefile +1 -1
- data/VERSION.semver +1 -1
- data/checksum/spectus-3.0.5.gem.sha512 +1 -0
- data/lib/spectus/requirement_level/base.rb +4 -4
- data/spectus.gemspec +9 -9
- metadata +22 -43
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1df7f54d9d8df90f55dbbe97bb06970be7460c6d
|
4
|
+
data.tar.gz: 3c00fb807ca789c34be1a6fb6688b4f0d54a0a35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2902b73d562bc9531cdb5eb650b54c938728f4e4c61311b91eeed24a2f8dd2497e334b5d869ce08b69cf83d02ac53572c297c51b5079d33b19305ab2a1007de5
|
7
|
+
data.tar.gz: d49b1d11fb444f1e3599f8fb59d8b6531644a3a7c57c06890f189b73fd83f27807e964711f18ac33962a15c59903117daaf07e2061531fb960e68bdb0f0f3565
|
data/.travis.yml
CHANGED
@@ -1,14 +1,29 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
3
|
cache: bundler
|
4
|
-
script: 'bundle exec rake test:coverage --trace'
|
5
4
|
before_install:
|
6
5
|
- gem install bundler
|
6
|
+
script:
|
7
|
+
- bundle exec rubocop
|
8
|
+
- bundle exec rake test
|
7
9
|
rvm:
|
8
|
-
- 1.9.3
|
9
10
|
- 2.0
|
10
11
|
- 2.1
|
11
12
|
- 2.2
|
12
|
-
-
|
13
|
+
- 2.3.3
|
14
|
+
- 2.4.0
|
15
|
+
- ruby-head
|
13
16
|
- jruby-head
|
14
|
-
- rbx-
|
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/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Spectus
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/fixrb/spectus.svg?branch=master)][travis]
|
4
|
+
[![Code Climate](https://codeclimate.com/github/fixrb/spectus/badges/gpa.svg)][codeclimate]
|
5
|
+
[![Dependency Status](https://gemnasium.com/fixrb/spectus.svg)][gemnasium]
|
4
6
|
[![Gem Version](https://badge.fury.io/rb/spectus.svg)][gem]
|
5
7
|
[![Inline docs](http://inch-ci.org/github/fixrb/spectus.svg?branch=master)][inchpages]
|
6
8
|
[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
|
@@ -182,11 +184,13 @@ See `LICENSE.md` file.
|
|
182
184
|
|
183
185
|
[gem]: https://rubygems.org/gems/spectus
|
184
186
|
[travis]: https://travis-ci.org/fixrb/spectus
|
185
|
-
[
|
187
|
+
[codeclimate]: https://codeclimate.com/github/fixrb/spectus
|
188
|
+
[gemnasium]: https://gemnasium.com/fixrb/spectus
|
189
|
+
[inchpages]: http://inch-ci.org/github/fixrb/spectus
|
186
190
|
[rubydoc]: http://rubydoc.info/gems/spectus/frames
|
187
191
|
|
188
192
|
***
|
189
193
|
|
190
194
|
This project is sponsored by:
|
191
195
|
|
192
|
-
[![Sashite](http://
|
196
|
+
[![Sashite](http://sashite.com/img/sashite.png)](http://sashite.com/)
|
data/Rakefile
CHANGED
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.6
|
@@ -0,0 +1 @@
|
|
1
|
+
b1cf82dc5b578e2adb29623bb4782f17b636af603b784bcd90bda8fb3dd5e57e94424b9cb2fb6ab7029d31c7bda84cda0c11e527539651ffe302d6b44dcf8d83
|
@@ -50,18 +50,18 @@ module Spectus
|
|
50
50
|
#
|
51
51
|
# @return [Result::Pass] Pass the spec.
|
52
52
|
def pass!(state)
|
53
|
-
|
53
|
+
r = Report.new(matcher, negate?, state, true)
|
54
54
|
|
55
|
-
Result::Pass.new(
|
55
|
+
Result::Pass.new(r, *result_signature(state))
|
56
56
|
end
|
57
57
|
|
58
58
|
# @param state [Sandbox] The sandbox that tested the code.
|
59
59
|
#
|
60
60
|
# @raise [Result::Fail] Fail the spec.
|
61
61
|
def fail!(state)
|
62
|
-
|
62
|
+
r = Report.new(matcher, negate?, state, false)
|
63
63
|
|
64
|
-
|
64
|
+
raise Result::Fail.new(r, *result_signature(state)), r, caller[2..-1]
|
65
65
|
end
|
66
66
|
|
67
67
|
# @param state [Sandbox] The sandbox that tested the code.
|
data/spectus.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'spectus'
|
3
3
|
spec.version = File.read('VERSION.semver').chomp
|
4
|
-
spec.authors = ['Cyril
|
4
|
+
spec.authors = ['Cyril Kato']
|
5
5
|
spec.email = ['contact@cyril.email']
|
6
6
|
|
7
7
|
spec.summary = 'Expectation library with RFC 2119 keywords.'
|
@@ -14,15 +14,15 @@ 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 'aw', '~> 0.1.
|
18
|
-
spec.add_dependency 'defi', '~> 1.1.
|
19
|
-
spec.add_dependency 'matchi', '~> 1.0.
|
17
|
+
spec.add_dependency 'aw', '~> 0.1.1'
|
18
|
+
spec.add_dependency 'defi', '~> 1.1.1'
|
19
|
+
spec.add_dependency 'matchi', '~> 1.0.2'
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
22
|
-
spec.add_development_dependency 'rake', '~>
|
23
|
-
spec.add_development_dependency 'yard', '~> 0.
|
24
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
25
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
22
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
23
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
24
|
+
spec.add_development_dependency 'simplecov', '~> 0.14'
|
25
|
+
spec.add_development_dependency 'rubocop', '~> 0.48'
|
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,36 +1,15 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Cyril
|
7
|
+
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
|
-
-
|
12
|
-
|
13
|
-
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
|
14
|
-
YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
|
15
|
-
bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
|
16
|
-
bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
|
17
|
-
YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA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|
+
- certs/gem-fixrb-public_cert.pem
|
12
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
34
13
|
dependencies:
|
35
14
|
- !ruby/object:Gem::Dependency
|
36
15
|
name: aw
|
@@ -38,112 +17,112 @@ dependencies:
|
|
38
17
|
requirements:
|
39
18
|
- - "~>"
|
40
19
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.1.
|
20
|
+
version: 0.1.1
|
42
21
|
type: :runtime
|
43
22
|
prerelease: false
|
44
23
|
version_requirements: !ruby/object:Gem::Requirement
|
45
24
|
requirements:
|
46
25
|
- - "~>"
|
47
26
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.1.
|
27
|
+
version: 0.1.1
|
49
28
|
- !ruby/object:Gem::Dependency
|
50
29
|
name: defi
|
51
30
|
requirement: !ruby/object:Gem::Requirement
|
52
31
|
requirements:
|
53
32
|
- - "~>"
|
54
33
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.1.
|
34
|
+
version: 1.1.1
|
56
35
|
type: :runtime
|
57
36
|
prerelease: false
|
58
37
|
version_requirements: !ruby/object:Gem::Requirement
|
59
38
|
requirements:
|
60
39
|
- - "~>"
|
61
40
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.1.
|
41
|
+
version: 1.1.1
|
63
42
|
- !ruby/object:Gem::Dependency
|
64
43
|
name: matchi
|
65
44
|
requirement: !ruby/object:Gem::Requirement
|
66
45
|
requirements:
|
67
46
|
- - "~>"
|
68
47
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.0.
|
48
|
+
version: 1.0.2
|
70
49
|
type: :runtime
|
71
50
|
prerelease: false
|
72
51
|
version_requirements: !ruby/object:Gem::Requirement
|
73
52
|
requirements:
|
74
53
|
- - "~>"
|
75
54
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.0.
|
55
|
+
version: 1.0.2
|
77
56
|
- !ruby/object:Gem::Dependency
|
78
57
|
name: bundler
|
79
58
|
requirement: !ruby/object:Gem::Requirement
|
80
59
|
requirements:
|
81
60
|
- - "~>"
|
82
61
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
62
|
+
version: '1.14'
|
84
63
|
type: :development
|
85
64
|
prerelease: false
|
86
65
|
version_requirements: !ruby/object:Gem::Requirement
|
87
66
|
requirements:
|
88
67
|
- - "~>"
|
89
68
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
69
|
+
version: '1.14'
|
91
70
|
- !ruby/object:Gem::Dependency
|
92
71
|
name: rake
|
93
72
|
requirement: !ruby/object:Gem::Requirement
|
94
73
|
requirements:
|
95
74
|
- - "~>"
|
96
75
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
76
|
+
version: '12.0'
|
98
77
|
type: :development
|
99
78
|
prerelease: false
|
100
79
|
version_requirements: !ruby/object:Gem::Requirement
|
101
80
|
requirements:
|
102
81
|
- - "~>"
|
103
82
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
83
|
+
version: '12.0'
|
105
84
|
- !ruby/object:Gem::Dependency
|
106
85
|
name: yard
|
107
86
|
requirement: !ruby/object:Gem::Requirement
|
108
87
|
requirements:
|
109
88
|
- - "~>"
|
110
89
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0.
|
90
|
+
version: '0.9'
|
112
91
|
type: :development
|
113
92
|
prerelease: false
|
114
93
|
version_requirements: !ruby/object:Gem::Requirement
|
115
94
|
requirements:
|
116
95
|
- - "~>"
|
117
96
|
- !ruby/object:Gem::Version
|
118
|
-
version: '0.
|
97
|
+
version: '0.9'
|
119
98
|
- !ruby/object:Gem::Dependency
|
120
99
|
name: simplecov
|
121
100
|
requirement: !ruby/object:Gem::Requirement
|
122
101
|
requirements:
|
123
102
|
- - "~>"
|
124
103
|
- !ruby/object:Gem::Version
|
125
|
-
version: '0.
|
104
|
+
version: '0.14'
|
126
105
|
type: :development
|
127
106
|
prerelease: false
|
128
107
|
version_requirements: !ruby/object:Gem::Requirement
|
129
108
|
requirements:
|
130
109
|
- - "~>"
|
131
110
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0.
|
111
|
+
version: '0.14'
|
133
112
|
- !ruby/object:Gem::Dependency
|
134
113
|
name: rubocop
|
135
114
|
requirement: !ruby/object:Gem::Requirement
|
136
115
|
requirements:
|
137
116
|
- - "~>"
|
138
117
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0.
|
118
|
+
version: '0.48'
|
140
119
|
type: :development
|
141
120
|
prerelease: false
|
142
121
|
version_requirements: !ruby/object:Gem::Requirement
|
143
122
|
requirements:
|
144
123
|
- - "~>"
|
145
124
|
- !ruby/object:Gem::Version
|
146
|
-
version: '0.
|
125
|
+
version: '0.48'
|
147
126
|
description: Expectation library with RFC 2119's requirement levels.
|
148
127
|
email:
|
149
128
|
- contact@cyril.email
|
@@ -191,6 +170,7 @@ files:
|
|
191
170
|
- checksum/spectus-3.0.1.gem.sha512
|
192
171
|
- checksum/spectus-3.0.2.gem.sha512
|
193
172
|
- checksum/spectus-3.0.3.gem.sha512
|
173
|
+
- checksum/spectus-3.0.5.gem.sha512
|
194
174
|
- lib/spectus.rb
|
195
175
|
- lib/spectus/expectation_target.rb
|
196
176
|
- lib/spectus/matchers.rb
|
@@ -225,9 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
205
|
version: '0'
|
226
206
|
requirements: []
|
227
207
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.6.11
|
229
209
|
signing_key:
|
230
210
|
specification_version: 4
|
231
211
|
summary: Expectation library with RFC 2119 keywords.
|
232
212
|
test_files: []
|
233
|
-
has_rdoc:
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED