spectus 3.0.7 → 3.0.8
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
- data/.rubocop_todo.yml +27 -2
- data/.travis.yml +1 -1
- data/LICENSE.md +1 -1
- data/README.md +6 -11
- data/VERSION.semver +1 -1
- data/checksum/spectus-3.0.7.gem.sha512 +1 -0
- data/lib/spectus/result/base.rb +10 -10
- data/lib/spectus/sandbox.rb +3 -5
- data/spectus.gemspec +5 -9
- metadata +14 -15
- data/certs/gem-fixrb-public_cert.pem +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4680ca6174e82ced6177a957f337763e69812cbe718e09b4ebe1d1dd5957d30
|
4
|
+
data.tar.gz: b25fdec37987ac8a833b69d06c93bbfa9077b3407d5998770b93c1c4e49e68ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d89aeb73fc7f1bf7768da1f0f387b2b93e87c26b9344888a4e8be15008d924e481330975cc5db75a0d7d002d5ab9daea0532f9b7153868299077c016d73aff47
|
7
|
+
data.tar.gz: d5467399620b2639a6d8e714043651f73629c26cd7358b9f7767f12ca0fc2faf8b9b490a1a5e712e9a2f1bc0af393333f4590912589d32457b2b4d9075daa8a5
|
data/.rubocop_todo.yml
CHANGED
@@ -1,13 +1,30 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2019-04-12 19:56:15 +0200 using RuboCop version 0.67.2.
|
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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
+
# Offense count: 220
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
12
|
+
# SupportedHashRocketStyles: key, separator, table
|
13
|
+
# SupportedColonStyles: key, separator, table
|
14
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
15
|
+
Layout/AlignHash:
|
16
|
+
Exclude:
|
17
|
+
- 'test/level/test_high_fail.rb'
|
18
|
+
- 'test/level/test_high_pass.rb'
|
19
|
+
- 'test/level/test_low_fail.rb'
|
20
|
+
- 'test/level/test_low_pass.rb'
|
21
|
+
- 'test/level/test_medium_fail.rb'
|
22
|
+
- 'test/level/test_medium_pass.rb'
|
23
|
+
- 'test/test_with_isolation.rb'
|
24
|
+
- 'test/test_without_isolation.rb'
|
25
|
+
|
9
26
|
# Offense count: 2
|
10
|
-
# Configuration parameters: CountComments.
|
27
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
11
28
|
Metrics/MethodLength:
|
12
29
|
Max: 12
|
13
30
|
|
@@ -16,6 +33,14 @@ Metrics/MethodLength:
|
|
16
33
|
Metrics/ParameterLists:
|
17
34
|
Max: 10
|
18
35
|
|
36
|
+
# Offense count: 3
|
37
|
+
# Configuration parameters: PreferredName.
|
38
|
+
Naming/RescuedExceptionsVariableName:
|
39
|
+
Exclude:
|
40
|
+
- 'test/level/test_high_fail.rb'
|
41
|
+
- 'test/level/test_low_fail.rb'
|
42
|
+
- 'test/level/test_medium_fail.rb'
|
43
|
+
|
19
44
|
# Offense count: 8
|
20
45
|
Style/MixinUsage:
|
21
46
|
Exclude:
|
data/.travis.yml
CHANGED
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -22,16 +22,7 @@
|
|
22
22
|
|
23
23
|
## Installation
|
24
24
|
|
25
|
-
|
26
|
-
|
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:
|
28
|
-
|
29
|
-
$ gem cert --add <(curl -Ls https://raw.github.com/fixrb/spectus/master/certs/gem-fixrb-public_cert.pem)
|
30
|
-
$ gem install spectus -P HighSecurity
|
31
|
-
|
32
|
-
The `HighSecurity` trust profile will verify all gems. All of __Spectus__'s dependencies are signed.
|
33
|
-
|
34
|
-
Or add this line to your application's Gemfile:
|
25
|
+
Add this line to your application's Gemfile:
|
35
26
|
|
36
27
|
```ruby
|
37
28
|
gem 'spectus'
|
@@ -41,6 +32,10 @@ And then execute:
|
|
41
32
|
|
42
33
|
$ bundle
|
43
34
|
|
35
|
+
Or install it yourself as:
|
36
|
+
|
37
|
+
$ gem install spectus
|
38
|
+
|
44
39
|
## Expectation
|
45
40
|
|
46
41
|
An expectation is an assertion that is either `true` or `false`.
|
@@ -192,4 +187,4 @@ See `LICENSE.md` file.
|
|
192
187
|
|
193
188
|
This project is sponsored by:
|
194
189
|
|
195
|
-
[](https://sashite.com/)
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.8
|
@@ -0,0 +1 @@
|
|
1
|
+
aacb5399f7e63d5c18bd5978b79b75a3dab09daffa5c826144e0e2a61dca94dbd172992676622a2c048023253868a4c658a1c742042e3df1089e1c5dff19b964
|
data/lib/spectus/result/base.rb
CHANGED
@@ -95,16 +95,16 @@ module Spectus
|
|
95
95
|
# @return [Hash] The properties of the result.
|
96
96
|
def to_h
|
97
97
|
{
|
98
|
-
subject:
|
99
|
-
challenge:
|
100
|
-
actual:
|
101
|
-
expected:
|
102
|
-
got:
|
103
|
-
error:
|
104
|
-
level:
|
105
|
-
negate:
|
106
|
-
valid:
|
107
|
-
result:
|
98
|
+
subject: subject,
|
99
|
+
challenge: challenge.to_h,
|
100
|
+
actual: actual,
|
101
|
+
expected: expected.to_h,
|
102
|
+
got: got,
|
103
|
+
error: error,
|
104
|
+
level: level,
|
105
|
+
negate: negate?,
|
106
|
+
valid: valid?,
|
107
|
+
result: result?
|
108
108
|
}
|
109
109
|
end
|
110
110
|
end
|
data/lib/spectus/sandbox.rb
CHANGED
data/spectus.gemspec
CHANGED
@@ -16,17 +16,13 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency 'aw', '~> 0.1.
|
20
|
-
spec.add_dependency 'defi', '~> 1.1.
|
21
|
-
spec.add_dependency 'matchi', '~> 1.0.
|
19
|
+
spec.add_dependency 'aw', '~> 0.1.6'
|
20
|
+
spec.add_dependency 'defi', '~> 1.1.5'
|
21
|
+
spec.add_dependency 'matchi', '~> 1.0.4'
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '~>
|
23
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
24
24
|
spec.add_development_dependency 'rake', '~> 12.3'
|
25
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
25
|
+
spec.add_development_dependency 'rubocop', '~> 0.67'
|
26
26
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
27
27
|
spec.add_development_dependency 'yard', '~> 0.9'
|
28
|
-
|
29
|
-
spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
|
30
|
-
private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
|
31
|
-
spec.signing_key = private_key if File.exist?(private_key)
|
32
28
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
12
|
-
date: 2018-08-26 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: aw
|
@@ -17,56 +16,56 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.1.
|
19
|
+
version: 0.1.6
|
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: 0.1.
|
26
|
+
version: 0.1.6
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: defi
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
31
|
- - "~>"
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.1.
|
33
|
+
version: 1.1.5
|
35
34
|
type: :runtime
|
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.1.
|
40
|
+
version: 1.1.5
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: matchi
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
45
|
- - "~>"
|
47
46
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.0.
|
47
|
+
version: 1.0.4
|
49
48
|
type: :runtime
|
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: 1.0.
|
54
|
+
version: 1.0.4
|
56
55
|
- !ruby/object:Gem::Dependency
|
57
56
|
name: bundler
|
58
57
|
requirement: !ruby/object:Gem::Requirement
|
59
58
|
requirements:
|
60
59
|
- - "~>"
|
61
60
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
61
|
+
version: '2.0'
|
63
62
|
type: :development
|
64
63
|
prerelease: false
|
65
64
|
version_requirements: !ruby/object:Gem::Requirement
|
66
65
|
requirements:
|
67
66
|
- - "~>"
|
68
67
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
68
|
+
version: '2.0'
|
70
69
|
- !ruby/object:Gem::Dependency
|
71
70
|
name: rake
|
72
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,14 +86,14 @@ dependencies:
|
|
87
86
|
requirements:
|
88
87
|
- - "~>"
|
89
88
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0.
|
89
|
+
version: '0.67'
|
91
90
|
type: :development
|
92
91
|
prerelease: false
|
93
92
|
version_requirements: !ruby/object:Gem::Requirement
|
94
93
|
requirements:
|
95
94
|
- - "~>"
|
96
95
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0.
|
96
|
+
version: '0.67'
|
98
97
|
- !ruby/object:Gem::Dependency
|
99
98
|
name: simplecov
|
100
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +142,6 @@ files:
|
|
143
142
|
- VERSION.semver
|
144
143
|
- bin/console
|
145
144
|
- bin/setup
|
146
|
-
- certs/gem-fixrb-public_cert.pem
|
147
145
|
- checksum/spectus-2.0.0.gem.sha512
|
148
146
|
- checksum/spectus-2.0.1.gem.sha512
|
149
147
|
- checksum/spectus-2.0.2.gem.sha512
|
@@ -172,6 +170,7 @@ files:
|
|
172
170
|
- checksum/spectus-3.0.3.gem.sha512
|
173
171
|
- checksum/spectus-3.0.5.gem.sha512
|
174
172
|
- checksum/spectus-3.0.6.gem.sha512
|
173
|
+
- checksum/spectus-3.0.7.gem.sha512
|
175
174
|
- lib/spectus.rb
|
176
175
|
- lib/spectus/expectation_target.rb
|
177
176
|
- lib/spectus/matchers.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDA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