ruby-contract 0.1.1
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.
- data/COPYING +56 -0
- data/Manifest +85 -0
- data/README +32 -0
- data/TODO +83 -0
- data/doc/classes/Contract.html +599 -0
- data/doc/classes/Contract/Check.html +229 -0
- data/doc/classes/Contract/Check/All.html +172 -0
- data/doc/classes/Contract/Check/Any.html +172 -0
- data/doc/classes/Contract/Check/Block.html +172 -0
- data/doc/classes/Contract/Check/None.html +173 -0
- data/doc/classes/Contract/Check/Quack.html +172 -0
- data/doc/classes/Contract/ContractError.html +151 -0
- data/doc/classes/Contract/ContractException.html +162 -0
- data/doc/classes/Contract/ContractMismatch.html +134 -0
- data/doc/classes/Kernel.html +256 -0
- data/doc/classes/Method.html +135 -0
- data/doc/classes/MethodSignatureMixin.html +208 -0
- data/doc/classes/Module.html +526 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +14 -0
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +14 -0
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_2.dot +14 -0
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_3.dot +112 -0
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +62 -0
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/f_5.dot +62 -0
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +224 -0
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_6_0.dot +24 -0
- data/doc/dot/f_6_0.png +0 -0
- data/doc/dot/f_6_1.dot +24 -0
- data/doc/dot/f_6_1.png +0 -0
- data/doc/dot/f_7.dot +62 -0
- data/doc/dot/f_7.png +0 -0
- data/doc/files/COPYING.html +168 -0
- data/doc/files/README.html +146 -0
- data/doc/files/TODO.html +240 -0
- data/doc/files/lib/contract/assertions_rb.html +118 -0
- data/doc/files/lib/contract/exception_rb.html +125 -0
- data/doc/files/lib/contract/integration_rb.html +130 -0
- data/doc/files/lib/contract/overrides_rb.html +118 -0
- data/doc/files/lib/contract_rb.html +127 -0
- data/doc/fr_class_index.html +40 -0
- data/doc/fr_file_index.html +34 -0
- data/doc/fr_method_index.html +45 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/contract.rb +146 -0
- data/lib/contract/assertions.rb +42 -0
- data/lib/contract/exception.rb +95 -0
- data/lib/contract/integration.rb +664 -0
- data/lib/contract/overrides.rb +41 -0
- data/setup.rb +1360 -0
- data/test/coverage/_-lib-contract-assertions_rb.html +526 -0
- data/test/coverage/_-lib-contract-exception_rb.html +632 -0
- data/test/coverage/_-lib-contract-integration_rb.html +1450 -0
- data/test/coverage/_-lib-contract-overrides_rb.html +524 -0
- data/test/coverage/_-lib-contract_rb.html +724 -0
- data/test/coverage/__-lib-contract-assertions_rb.html +484 -0
- data/test/coverage/__-lib-contract-exception_rb.html +537 -0
- data/test/coverage/__-lib-contract-integration_rb.html +946 -0
- data/test/coverage/__-lib-contract-overrides_rb.html +483 -0
- data/test/coverage/__-lib-contract_rb.html +583 -0
- data/test/coverage/index.html +93 -0
- data/test/tc_all.rb +8 -0
- data/test/tc_contract.rb +109 -0
- data/test/tc_exception.rb +43 -0
- data/test/tc_integration.rb +357 -0
- metadata +136 -0
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Tue Feb 15 02:19:48 Westeurop�ische Normalzeit 2005
|
data/doc/dot/f_0.dot
ADDED
data/doc/dot/f_0.png
ADDED
Binary file
|
data/doc/dot/f_1.dot
ADDED
data/doc/dot/f_1.png
ADDED
Binary file
|
data/doc/dot/f_2.dot
ADDED
data/doc/dot/f_2.png
ADDED
Binary file
|
data/doc/dot/f_3.dot
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
digraph TopLevel {
|
2
|
+
compound = true
|
3
|
+
bgcolor = lightcyan1
|
4
|
+
fontname = Arial
|
5
|
+
fontsize = 8
|
6
|
+
label = "lib/contract/exception.rb"
|
7
|
+
node [
|
8
|
+
fontname = Arial,
|
9
|
+
fontsize = 8,
|
10
|
+
color = black
|
11
|
+
]
|
12
|
+
|
13
|
+
Contract [
|
14
|
+
fontcolor = black,
|
15
|
+
URL = "classes/Contract.html",
|
16
|
+
shape = ellipse,
|
17
|
+
color = palegoldenrod,
|
18
|
+
style = filled,
|
19
|
+
label = "Contract"
|
20
|
+
]
|
21
|
+
|
22
|
+
Contract__ContractError [
|
23
|
+
fontcolor = black,
|
24
|
+
URL = "classes/Contract/ContractError.html",
|
25
|
+
shape = ellipse,
|
26
|
+
color = palegoldenrod,
|
27
|
+
style = filled,
|
28
|
+
label = "Contract::ContractError"
|
29
|
+
]
|
30
|
+
|
31
|
+
Contract__ContractMismatch [
|
32
|
+
fontcolor = black,
|
33
|
+
URL = "classes/Contract/ContractMismatch.html",
|
34
|
+
shape = ellipse,
|
35
|
+
color = palegoldenrod,
|
36
|
+
style = filled,
|
37
|
+
label = "Contract::ContractMismatch"
|
38
|
+
]
|
39
|
+
|
40
|
+
Test__Unit__TestCase [
|
41
|
+
URL = none,
|
42
|
+
label = "Test::Unit::TestCase"
|
43
|
+
]
|
44
|
+
|
45
|
+
Test__Unit__TestCase -> Contract [
|
46
|
+
|
47
|
+
]
|
48
|
+
|
49
|
+
Contract__ContractException [
|
50
|
+
URL = "classes/Contract/ContractException.html",
|
51
|
+
shape = box,
|
52
|
+
label = "Contract::ContractException"
|
53
|
+
]
|
54
|
+
|
55
|
+
Contract__ContractException -> Contract__ContractError [
|
56
|
+
|
57
|
+
]
|
58
|
+
|
59
|
+
StandardError [
|
60
|
+
URL = none,
|
61
|
+
label = "StandardError"
|
62
|
+
]
|
63
|
+
|
64
|
+
StandardError -> Contract__ContractError [
|
65
|
+
|
66
|
+
]
|
67
|
+
|
68
|
+
Contract__ContractException -> Contract__ContractMismatch [
|
69
|
+
|
70
|
+
]
|
71
|
+
|
72
|
+
TypeError [
|
73
|
+
URL = none,
|
74
|
+
label = "TypeError"
|
75
|
+
]
|
76
|
+
|
77
|
+
TypeError -> Contract__ContractMismatch [
|
78
|
+
|
79
|
+
]
|
80
|
+
|
81
|
+
subgraph cluster_Contract__ContractException {
|
82
|
+
fillcolor = palegreen3
|
83
|
+
URL = "classes/Contract/ContractException.html"
|
84
|
+
fontname = Arial
|
85
|
+
color = blue
|
86
|
+
label = "Contract::ContractException"
|
87
|
+
style = filled
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
subgraph cluster_Contract__Check {
|
92
|
+
fillcolor = palegreen3
|
93
|
+
URL = "classes/Contract/Check.html"
|
94
|
+
fontname = Arial
|
95
|
+
color = blue
|
96
|
+
label = "Contract::Check"
|
97
|
+
style = filled
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
subgraph cluster_Contract__SuiteMixin {
|
102
|
+
fillcolor = palegreen3
|
103
|
+
URL = "classes/Contract/SuiteMixin.html"
|
104
|
+
fontname = Arial
|
105
|
+
color = blue
|
106
|
+
label = "Contract::SuiteMixin"
|
107
|
+
style = filled
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
}
|
112
|
+
|
data/doc/dot/f_3.png
ADDED
Binary file
|
data/doc/dot/f_4.dot
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
digraph TopLevel {
|
2
|
+
compound = true
|
3
|
+
bgcolor = lightcyan1
|
4
|
+
fontname = Arial
|
5
|
+
fontsize = 8
|
6
|
+
label = "lib/contract/overrides.rb"
|
7
|
+
node [
|
8
|
+
fontname = Arial,
|
9
|
+
fontsize = 8,
|
10
|
+
color = black
|
11
|
+
]
|
12
|
+
|
13
|
+
Contract [
|
14
|
+
fontcolor = black,
|
15
|
+
URL = "classes/Contract.html",
|
16
|
+
shape = ellipse,
|
17
|
+
color = palegoldenrod,
|
18
|
+
style = filled,
|
19
|
+
label = "Contract"
|
20
|
+
]
|
21
|
+
|
22
|
+
Test__Unit__TestCase [
|
23
|
+
URL = none,
|
24
|
+
label = "Test::Unit::TestCase"
|
25
|
+
]
|
26
|
+
|
27
|
+
Test__Unit__TestCase -> Contract [
|
28
|
+
|
29
|
+
]
|
30
|
+
|
31
|
+
subgraph cluster_Contract__ContractException {
|
32
|
+
fillcolor = palegreen3
|
33
|
+
URL = "classes/Contract/ContractException.html"
|
34
|
+
fontname = Arial
|
35
|
+
color = blue
|
36
|
+
label = "Contract::ContractException"
|
37
|
+
style = filled
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
subgraph cluster_Contract__Check {
|
42
|
+
fillcolor = palegreen3
|
43
|
+
URL = "classes/Contract/Check.html"
|
44
|
+
fontname = Arial
|
45
|
+
color = blue
|
46
|
+
label = "Contract::Check"
|
47
|
+
style = filled
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
subgraph cluster_Contract__SuiteMixin {
|
52
|
+
fillcolor = palegreen3
|
53
|
+
URL = "classes/Contract/SuiteMixin.html"
|
54
|
+
fontname = Arial
|
55
|
+
color = blue
|
56
|
+
label = "Contract::SuiteMixin"
|
57
|
+
style = filled
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
|
data/doc/dot/f_4.png
ADDED
Binary file
|
data/doc/dot/f_5.dot
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
digraph TopLevel {
|
2
|
+
compound = true
|
3
|
+
bgcolor = lightcyan1
|
4
|
+
fontname = Arial
|
5
|
+
fontsize = 8
|
6
|
+
label = "lib/contract/assertions.rb"
|
7
|
+
node [
|
8
|
+
fontname = Arial,
|
9
|
+
fontsize = 8,
|
10
|
+
color = black
|
11
|
+
]
|
12
|
+
|
13
|
+
Contract [
|
14
|
+
fontcolor = black,
|
15
|
+
URL = "classes/Contract.html",
|
16
|
+
shape = ellipse,
|
17
|
+
color = palegoldenrod,
|
18
|
+
style = filled,
|
19
|
+
label = "Contract"
|
20
|
+
]
|
21
|
+
|
22
|
+
Test__Unit__TestCase [
|
23
|
+
URL = none,
|
24
|
+
label = "Test::Unit::TestCase"
|
25
|
+
]
|
26
|
+
|
27
|
+
Test__Unit__TestCase -> Contract [
|
28
|
+
|
29
|
+
]
|
30
|
+
|
31
|
+
subgraph cluster_Contract__ContractException {
|
32
|
+
fillcolor = palegreen3
|
33
|
+
URL = "classes/Contract/ContractException.html"
|
34
|
+
fontname = Arial
|
35
|
+
color = blue
|
36
|
+
label = "Contract::ContractException"
|
37
|
+
style = filled
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
subgraph cluster_Contract__Check {
|
42
|
+
fillcolor = palegreen3
|
43
|
+
URL = "classes/Contract/Check.html"
|
44
|
+
fontname = Arial
|
45
|
+
color = blue
|
46
|
+
label = "Contract::Check"
|
47
|
+
style = filled
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
subgraph cluster_Contract__SuiteMixin {
|
52
|
+
fillcolor = palegreen3
|
53
|
+
URL = "classes/Contract/SuiteMixin.html"
|
54
|
+
fontname = Arial
|
55
|
+
color = blue
|
56
|
+
label = "Contract::SuiteMixin"
|
57
|
+
style = filled
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
|
data/doc/dot/f_5.png
ADDED
Binary file
|
data/doc/dot/f_6.dot
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
digraph TopLevel {
|
2
|
+
compound = true
|
3
|
+
bgcolor = lightcyan1
|
4
|
+
fontname = Arial
|
5
|
+
fontsize = 8
|
6
|
+
label = "lib/contract/integration.rb"
|
7
|
+
node [
|
8
|
+
fontname = Arial,
|
9
|
+
fontsize = 8,
|
10
|
+
color = black
|
11
|
+
]
|
12
|
+
|
13
|
+
subgraph cluster_MethodSignatureMixin {
|
14
|
+
fillcolor = palegreen1
|
15
|
+
URL = "classes/MethodSignatureMixin.html"
|
16
|
+
fontname = Arial
|
17
|
+
color = blue
|
18
|
+
label = "MethodSignatureMixin"
|
19
|
+
style = filled
|
20
|
+
MethodSignatureMixin [
|
21
|
+
shape = plaintext,
|
22
|
+
height = 0.01,
|
23
|
+
width = 0.75,
|
24
|
+
label = ""
|
25
|
+
]
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
subgraph cluster_Kernel {
|
30
|
+
fillcolor = palegreen1
|
31
|
+
URL = "classes/Kernel.html"
|
32
|
+
fontname = Arial
|
33
|
+
color = blue
|
34
|
+
label = "Kernel"
|
35
|
+
style = filled
|
36
|
+
Kernel [
|
37
|
+
shape = plaintext,
|
38
|
+
height = 0.01,
|
39
|
+
width = 0.75,
|
40
|
+
label = ""
|
41
|
+
]
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
Contract [
|
46
|
+
fontcolor = black,
|
47
|
+
URL = "classes/Contract.html",
|
48
|
+
shape = ellipse,
|
49
|
+
color = palegoldenrod,
|
50
|
+
style = filled,
|
51
|
+
label = "Contract"
|
52
|
+
]
|
53
|
+
|
54
|
+
Method [
|
55
|
+
fontcolor = black,
|
56
|
+
URL = "classes/Method.html",
|
57
|
+
shape = ellipse,
|
58
|
+
color = palegoldenrod,
|
59
|
+
style = filled,
|
60
|
+
label = "Method"
|
61
|
+
]
|
62
|
+
|
63
|
+
Module [
|
64
|
+
fontcolor = black,
|
65
|
+
URL = "classes/Module.html",
|
66
|
+
shape = ellipse,
|
67
|
+
color = palegoldenrod,
|
68
|
+
style = filled,
|
69
|
+
label = "Module"
|
70
|
+
]
|
71
|
+
|
72
|
+
UnboundMethod [
|
73
|
+
fontcolor = black,
|
74
|
+
URL = "classes/UnboundMethod.html",
|
75
|
+
shape = ellipse,
|
76
|
+
color = palegoldenrod,
|
77
|
+
style = filled,
|
78
|
+
label = "UnboundMethod"
|
79
|
+
]
|
80
|
+
|
81
|
+
Contract__Check__Any [
|
82
|
+
fontcolor = black,
|
83
|
+
URL = "classes/Contract/Check/Any.html",
|
84
|
+
shape = ellipse,
|
85
|
+
color = palegoldenrod,
|
86
|
+
style = filled,
|
87
|
+
label = "Contract::Check::Any"
|
88
|
+
]
|
89
|
+
|
90
|
+
Contract__Check__All [
|
91
|
+
fontcolor = black,
|
92
|
+
URL = "classes/Contract/Check/All.html",
|
93
|
+
shape = ellipse,
|
94
|
+
color = palegoldenrod,
|
95
|
+
style = filled,
|
96
|
+
label = "Contract::Check::All"
|
97
|
+
]
|
98
|
+
|
99
|
+
Contract__Check__None [
|
100
|
+
fontcolor = black,
|
101
|
+
URL = "classes/Contract/Check/None.html",
|
102
|
+
shape = ellipse,
|
103
|
+
color = palegoldenrod,
|
104
|
+
style = filled,
|
105
|
+
label = "Contract::Check::None"
|
106
|
+
]
|
107
|
+
|
108
|
+
Contract__Check__Block [
|
109
|
+
fontcolor = black,
|
110
|
+
URL = "classes/Contract/Check/Block.html",
|
111
|
+
shape = ellipse,
|
112
|
+
color = palegoldenrod,
|
113
|
+
style = filled,
|
114
|
+
label = "Contract::Check::Block"
|
115
|
+
]
|
116
|
+
|
117
|
+
Contract__Check__Base [
|
118
|
+
fontcolor = black,
|
119
|
+
URL = "classes/Contract/Check/Base.html",
|
120
|
+
shape = ellipse,
|
121
|
+
color = palegoldenrod,
|
122
|
+
style = filled,
|
123
|
+
label = "Contract::Check::Base"
|
124
|
+
]
|
125
|
+
|
126
|
+
Contract__Check__Quack [
|
127
|
+
fontcolor = black,
|
128
|
+
URL = "classes/Contract/Check/Quack.html",
|
129
|
+
shape = ellipse,
|
130
|
+
color = palegoldenrod,
|
131
|
+
style = filled,
|
132
|
+
label = "Contract::Check::Quack"
|
133
|
+
]
|
134
|
+
|
135
|
+
Test__Unit__TestCase [
|
136
|
+
URL = none,
|
137
|
+
label = "Test::Unit::TestCase"
|
138
|
+
]
|
139
|
+
|
140
|
+
Test__Unit__TestCase -> Contract [
|
141
|
+
|
142
|
+
]
|
143
|
+
|
144
|
+
MethodSignatureMixin -> Method [
|
145
|
+
ltail = cluster_MethodSignatureMixin
|
146
|
+
]
|
147
|
+
|
148
|
+
Contract__Check__Base [
|
149
|
+
URL = none,
|
150
|
+
label = "Contract::Check::Base"
|
151
|
+
]
|
152
|
+
|
153
|
+
Contract__Check__Base -> Contract__Check__Any [
|
154
|
+
|
155
|
+
]
|
156
|
+
|
157
|
+
Contract__Check__Base [
|
158
|
+
URL = "classes/Contract/Check/Base.html",
|
159
|
+
label = "Contract::Check::Base"
|
160
|
+
]
|
161
|
+
|
162
|
+
Contract__Check__Base -> Contract__Check__All [
|
163
|
+
|
164
|
+
]
|
165
|
+
|
166
|
+
Contract__Check__Base [
|
167
|
+
URL = "classes/Contract/Check/Base.html",
|
168
|
+
label = "Contract::Check::Base"
|
169
|
+
]
|
170
|
+
|
171
|
+
Contract__Check__Base -> Contract__Check__None [
|
172
|
+
|
173
|
+
]
|
174
|
+
|
175
|
+
Contract__Check__Base [
|
176
|
+
URL = "classes/Contract/Check/Base.html",
|
177
|
+
label = "Contract::Check::Base"
|
178
|
+
]
|
179
|
+
|
180
|
+
Contract__Check__Base -> Contract__Check__Block [
|
181
|
+
|
182
|
+
]
|
183
|
+
|
184
|
+
Contract__Check__Base [
|
185
|
+
URL = "classes/Contract/Check/Base.html",
|
186
|
+
label = "Contract::Check::Base"
|
187
|
+
]
|
188
|
+
|
189
|
+
Contract__Check__Base -> Contract__Check__Quack [
|
190
|
+
|
191
|
+
]
|
192
|
+
|
193
|
+
subgraph cluster_Contract__ContractException {
|
194
|
+
fillcolor = palegreen3
|
195
|
+
URL = "classes/Contract/ContractException.html"
|
196
|
+
fontname = Arial
|
197
|
+
color = blue
|
198
|
+
label = "Contract::ContractException"
|
199
|
+
style = filled
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
subgraph cluster_Contract__Check {
|
204
|
+
fillcolor = palegreen3
|
205
|
+
URL = "classes/Contract/Check.html"
|
206
|
+
fontname = Arial
|
207
|
+
color = blue
|
208
|
+
label = "Contract::Check"
|
209
|
+
style = filled
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
subgraph cluster_Contract__SuiteMixin {
|
214
|
+
fillcolor = palegreen3
|
215
|
+
URL = "classes/Contract/SuiteMixin.html"
|
216
|
+
fontname = Arial
|
217
|
+
color = blue
|
218
|
+
label = "Contract::SuiteMixin"
|
219
|
+
style = filled
|
220
|
+
|
221
|
+
}
|
222
|
+
|
223
|
+
}
|
224
|
+
|