fix-expect 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 -2
- data/README.md +16 -0
- data/VERSION.semver +1 -1
- data/fix-expect.gemspec +1 -1
- data/lib/fix/it.rb +9 -0
- metadata +4 -4
- 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: 002511157d852a72d28d172b8306b03595276779
|
4
|
+
data.tar.gz: afc081ea9d0e7b03b9a06b138c6607b1ad3663e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63ac5cbf28a0f02c2bf2d31e591bba14133acd8d256582aac5b6e177a2b31dd4e3b4c53a09cdc0c59049c0bb94fa47c99cb9ed6601f43a97ee2a99441134a593
|
7
|
+
data.tar.gz: ccfdf0da173fc523c8c07c30e11e71f303774f73b4cb1f548b789f654d72099a10430ba34d88bede35e8bfa8427962112a1349df7f2eb0bbe16d606cf030c61b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
)�"�7��O'��2H^�~��GaB�Y��F�@��
|
2
|
+
up����<H{ـڽ�����Q���b
|
3
|
+
�Ic8�$�^6�o&�����V
|
4
|
+
B.Eme[���f<��ޛu%�cb�G����������A��2(v-P�Th��x�^�pe�Nj<!��ϖ���V��C�����Z�R�-4�`+����W|uL���"U��J(
|
data/README.md
CHANGED
@@ -83,6 +83,22 @@ end
|
|
83
83
|
|
84
84
|
However, the tree of challenges remains the same.
|
85
85
|
|
86
|
+
For convenience, the `is_expected` method is also provided:
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
Fix.describe -6 * 7 do
|
90
|
+
on :abs do
|
91
|
+
# test against the described front object:
|
92
|
+
it { is_expected.to Equal: 42 }
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# .
|
97
|
+
#
|
98
|
+
# Ran 1 tests in 0.000193 seconds
|
99
|
+
# 100% compliant - 0 infos, 0 failures, 0 errors
|
100
|
+
```
|
101
|
+
|
86
102
|
## Security
|
87
103
|
|
88
104
|
As a basic form of security __Fix::Expect__ provides a set of SHA512 checksums for
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/fix-expect.gemspec
CHANGED
@@ -14,7 +14,7 @@ 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 'fix', '~> 0.15.
|
17
|
+
spec.add_dependency 'fix', '~> 0.15.1'
|
18
18
|
|
19
19
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
20
20
|
spec.add_development_dependency 'rake', '~> 10.4'
|
data/lib/fix/it.rb
CHANGED
@@ -23,5 +23,14 @@ module Fix
|
|
23
23
|
def expect_block(&block)
|
24
24
|
Expect.new(block, *([block_challenge] + challenges))
|
25
25
|
end
|
26
|
+
|
27
|
+
# rubocop:disable PredicateName
|
28
|
+
|
29
|
+
# Create a new expection target given the subject.
|
30
|
+
#
|
31
|
+
# @return [Expect] An expect instance.
|
32
|
+
def is_expected
|
33
|
+
Expect.new(subject, *challenges)
|
34
|
+
end
|
26
35
|
end
|
27
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fix-expect
|
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
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
|
31
31
|
0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-10-
|
33
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: fix
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.15.
|
41
|
+
version: 0.15.1
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.15.
|
48
|
+
version: 0.15.1
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: bundler
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|