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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74b5daa559c487d3ea7737a0fd4f58233759c7e2
4
- data.tar.gz: 5991787e6e0961b202c12ea2574758cf17bf2755
3
+ metadata.gz: f19dfa7434852c7c1d926d17e866c7c2deca0409
4
+ data.tar.gz: c1a32d2eaec17157c061936e473231f5da7e8090
5
5
  SHA512:
6
- metadata.gz: 6902d25e683dd69f5a516a9a8b3b22a20695d0c168bd2acc1b76a65b509f4d08d5b690553452025ee925d395ad8b694211b8cfecbd024e3b06afd1362b7e16a6
7
- data.tar.gz: 2bb3e3b8b59bff07f4092493d95d45c2b4ff590420b33adac42bf913346dcba4c3e6edafa6a67dac4b1bf0e11afad0342b37caf40015a1ff9c2abc188d3aa4d9
6
+ metadata.gz: 94436f147c902c8e170e3c7897b158bff5bab6c49af1365678559621833e8e548f2931b9e0c798a6d056a649c35145012eca97afc2f4bdcbf7498ca29b7a777d
7
+ data.tar.gz: 25921c2ae0b3a8904c5d5d74d36df83adc14f26b7ee8873c94019be00f79bc4d6a607976724b7557ec74897c1c2ea5d8cac9ef39fb259491b477d94c39ecb598
Binary file
@@ -0,0 +1,4 @@
1
+ ����=�7M�z���w�r'��hقq�/�:�i}��7�������XK*i|膦���
2
+ F; ߤhA�j������2f���sX4�`�4ժ׌,p8�E4l��SO���d�aټ"e�u���¿�%�����P���3�e
3
+ ��ـ��D1ܴ&�ί?̮$[f�U�E��G m2Ùk�=�9E���Qy�&��I
4
+ ����4������~����
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -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.pre'
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-----
@@ -17,17 +17,25 @@ module Fix
17
17
 
18
18
  private
19
19
 
20
- def pass? report
21
- report.pass?
20
+ def pass? result, _subject = nil
21
+ result.equal? true
22
22
  end
23
23
 
24
- def presenter report, got
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?(report),
27
- negated: report.negated,
28
- matcher: report.matcher,
29
- expected: report.expected,
30
- exception: report.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
- @positive ? :to : :not_to
53
+ negated? ? :not_to : :to
46
54
  end
47
55
  end
48
56
  end
@@ -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
@@ -18,8 +18,8 @@ module Fix
18
18
 
19
19
  private
20
20
 
21
- def pass? report
22
- report.pass? || report.exception.nil?
21
+ def pass? report, _subject
22
+ super || report.exception.nil?
23
23
  end
24
24
 
25
25
  def level
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.1.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
- date: 2014-09-24 00:00:00.000000000 Z
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.pre
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.pre
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
Binary file