fix 0.1.0 → 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 +0 -0
- data.tar.gz.sig +4 -0
- data/VERSION.semver +1 -1
- data/fix.gemspec +7 -1
- data/fix.pem +21 -0
- data/lib/fix/expectation.rb +17 -9
- data/lib/fix/expectation_low.rb +0 -11
- data/lib/fix/expectation_medium.rb +2 -2
- metadata +28 -5
- 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: f19dfa7434852c7c1d926d17e866c7c2deca0409
|
4
|
+
data.tar.gz: c1a32d2eaec17157c061936e473231f5da7e8090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94436f147c902c8e170e3c7897b158bff5bab6c49af1365678559621833e8e548f2931b9e0c798a6d056a649c35145012eca97afc2f4bdcbf7498ca29b7a777d
|
7
|
+
data.tar.gz: 25921c2ae0b3a8904c5d5d74d36df83adc14f26b7ee8873c94019be00f79bc4d6a607976724b7557ec74897c1c2ea5d8cac9ef39fb259491b477d94c39ecb598
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/fix.gemspec
CHANGED
@@ -13,10 +13,16 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.require_paths = ['lib']
|
14
14
|
spec.required_ruby_version = '>= 2.0.0'
|
15
15
|
|
16
|
-
spec.add_dependency 'spectus', '~> 1.0.0
|
16
|
+
spec.add_dependency 'spectus', '~> 1.0.0'
|
17
17
|
|
18
18
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
19
19
|
spec.add_development_dependency 'rake', '~> 10.0'
|
20
20
|
spec.add_development_dependency 'yard', '~> 0.8'
|
21
21
|
spec.add_development_dependency 'coveralls', '~> 0.7'
|
22
|
+
|
23
|
+
private_key = File.expand_path '~/.gemcert/fix-gem-private_key.pem'
|
24
|
+
if File.exist? private_key
|
25
|
+
spec.signing_key = private_key
|
26
|
+
spec.cert_chain = ['fix.pem']
|
27
|
+
end
|
22
28
|
end
|
data/fix.pem
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ4wDAYDVQQDDAVjeXJp
|
3
|
+
bDEXMBUGCgmSJomT8ixkARkWB3Nhc2hpdGUxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
4
|
+
HhcNMTQwOTI1MDIxOTAyWhcNMTUwOTI1MDIxOTAyWjA+MQ4wDAYDVQQDDAVjeXJp
|
5
|
+
bDEXMBUGCgmSJomT8ixkARkWB3Nhc2hpdGUxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
6
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPYsWcEEGdFZcfVry3SdxR
|
7
|
+
7oSoz2BMX2OCR8D78QvCVyyhKoCz2bxr+Poyo2wFXYaDEYlz0gQVQDUbUxhkfm6l
|
8
|
+
VcvqU5ue/Dm0V4OwefR2IM85hmQ9AuK/ABmDeaE6RANkrp275RcIC2F/oP84K6fR
|
9
|
+
pkfIaWfLxddmglN/V8IS1PW2UznNyIKqUCFy+93V1BiyUfuLy8wH/Rp3uq9YFdP6
|
10
|
+
xv5855UgYodgzbb1gXByAzJp5fHu0s4v8k17r87J6LkGSOcW1SyiVvPlQhoK55Pn
|
11
|
+
jEh1yL+XVEFw0u92U8w/GxbSSQYz7rtyY3XWfoiYhaZ+uuhYEX+eTIJeMWoFts5/
|
12
|
+
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSYpzQ0
|
13
|
+
tQv2F4fToKtCIf9+sKI4jDAcBgNVHREEFTATgRFjeXJpbEBzYXNoaXRlLmNvbTAc
|
14
|
+
BgNVHRIEFTATgRFjeXJpbEBzYXNoaXRlLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
|
15
|
+
WbULtVz0NbH1G4Gs8/yMAUR6d2veJbjSlslAbNc2DE6gGIDcYzlOPbtXSQuzjFLY
|
16
|
+
GfR/YBqtDeSMRvYOuizlzMljKEi0W5fTHjKFh23kOatYMHlScrFD5r0tyUajaC4W
|
17
|
+
0STuwSsx/v6ldHSJvoNHslL+JRFPB//p6KqM+Kmp3hNCVFZFb3wXcF5zfaP6rJTy
|
18
|
+
J6qnMlPGBz1g5YuN/DWkSIVQKBeATp5QKQWFCp6J7//0OQ9a0Gcl4ndaygvQKmF9
|
19
|
+
sQCgS9KCAyZ+aWNO1bUJcE3Bx1XXkMO3JEyVR1CoEcexg5Ci03/lAm7lL84DmlKR
|
20
|
+
3I7UWtomapPFbzC0J/5jzQ==
|
21
|
+
-----END CERTIFICATE-----
|
data/lib/fix/expectation.rb
CHANGED
@@ -17,17 +17,25 @@ module Fix
|
|
17
17
|
|
18
18
|
private
|
19
19
|
|
20
|
-
def pass?
|
21
|
-
|
20
|
+
def pass? result, _subject = nil
|
21
|
+
result.equal? true
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
24
|
+
def exception result
|
25
|
+
result unless [ true, false ].include? result
|
26
|
+
end
|
27
|
+
|
28
|
+
def negated?
|
29
|
+
!@positive
|
30
|
+
end
|
31
|
+
|
32
|
+
def presenter result, got, subject = nil
|
25
33
|
{
|
26
|
-
pass: pass?(
|
27
|
-
negated:
|
28
|
-
matcher:
|
29
|
-
expected:
|
30
|
-
exception:
|
34
|
+
pass: pass?(result, subject),
|
35
|
+
negated: negated?,
|
36
|
+
matcher: @matcher,
|
37
|
+
expected: @expected,
|
38
|
+
exception: exception(result),
|
31
39
|
got: got
|
32
40
|
}
|
33
41
|
end
|
@@ -42,7 +50,7 @@ module Fix
|
|
42
50
|
end
|
43
51
|
|
44
52
|
def target
|
45
|
-
|
53
|
+
negated? ? :not_to : :to
|
46
54
|
end
|
47
55
|
end
|
48
56
|
end
|
data/lib/fix/expectation_low.rb
CHANGED
@@ -29,16 +29,5 @@ module Fix
|
|
29
29
|
def level
|
30
30
|
3
|
31
31
|
end
|
32
|
-
|
33
|
-
def presenter report, got, subject
|
34
|
-
{
|
35
|
-
pass: pass?(report, subject),
|
36
|
-
negated: report.negated,
|
37
|
-
matcher: report.matcher,
|
38
|
-
expected: report.expected,
|
39
|
-
exception: report.exception,
|
40
|
-
got: got
|
41
|
-
}
|
42
|
-
end
|
43
32
|
end
|
44
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 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
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ4wDAYDVQQDDAVjeXJp
|
14
|
+
bDEXMBUGCgmSJomT8ixkARkWB3Nhc2hpdGUxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
15
|
+
HhcNMTQwOTI1MDIxOTAyWhcNMTUwOTI1MDIxOTAyWjA+MQ4wDAYDVQQDDAVjeXJp
|
16
|
+
bDEXMBUGCgmSJomT8ixkARkWB3Nhc2hpdGUxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
17
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPYsWcEEGdFZcfVry3SdxR
|
18
|
+
7oSoz2BMX2OCR8D78QvCVyyhKoCz2bxr+Poyo2wFXYaDEYlz0gQVQDUbUxhkfm6l
|
19
|
+
VcvqU5ue/Dm0V4OwefR2IM85hmQ9AuK/ABmDeaE6RANkrp275RcIC2F/oP84K6fR
|
20
|
+
pkfIaWfLxddmglN/V8IS1PW2UznNyIKqUCFy+93V1BiyUfuLy8wH/Rp3uq9YFdP6
|
21
|
+
xv5855UgYodgzbb1gXByAzJp5fHu0s4v8k17r87J6LkGSOcW1SyiVvPlQhoK55Pn
|
22
|
+
jEh1yL+XVEFw0u92U8w/GxbSSQYz7rtyY3XWfoiYhaZ+uuhYEX+eTIJeMWoFts5/
|
23
|
+
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSYpzQ0
|
24
|
+
tQv2F4fToKtCIf9+sKI4jDAcBgNVHREEFTATgRFjeXJpbEBzYXNoaXRlLmNvbTAc
|
25
|
+
BgNVHRIEFTATgRFjeXJpbEBzYXNoaXRlLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
WbULtVz0NbH1G4Gs8/yMAUR6d2veJbjSlslAbNc2DE6gGIDcYzlOPbtXSQuzjFLY
|
27
|
+
GfR/YBqtDeSMRvYOuizlzMljKEi0W5fTHjKFh23kOatYMHlScrFD5r0tyUajaC4W
|
28
|
+
0STuwSsx/v6ldHSJvoNHslL+JRFPB//p6KqM+Kmp3hNCVFZFb3wXcF5zfaP6rJTy
|
29
|
+
J6qnMlPGBz1g5YuN/DWkSIVQKBeATp5QKQWFCp6J7//0OQ9a0Gcl4ndaygvQKmF9
|
30
|
+
sQCgS9KCAyZ+aWNO1bUJcE3Bx1XXkMO3JEyVR1CoEcexg5Ci03/lAm7lL84DmlKR
|
31
|
+
3I7UWtomapPFbzC0J/5jzQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: spectus
|
@@ -16,14 +38,14 @@ dependencies:
|
|
16
38
|
requirements:
|
17
39
|
- - "~>"
|
18
40
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0
|
41
|
+
version: 1.0.0
|
20
42
|
type: :runtime
|
21
43
|
prerelease: false
|
22
44
|
version_requirements: !ruby/object:Gem::Requirement
|
23
45
|
requirements:
|
24
46
|
- - "~>"
|
25
47
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0
|
48
|
+
version: 1.0.0
|
27
49
|
- !ruby/object:Gem::Dependency
|
28
50
|
name: bundler
|
29
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +123,7 @@ files:
|
|
101
123
|
- example/duck/spec.rb
|
102
124
|
- example/duck/test.rb
|
103
125
|
- fix.gemspec
|
126
|
+
- fix.pem
|
104
127
|
- lib/fix.rb
|
105
128
|
- lib/fix/dsl.rb
|
106
129
|
- lib/fix/expectation.rb
|
metadata.gz.sig
ADDED
Binary file
|