quarry 0.3.0
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/CHANGES +6 -0
- data/COPYING +344 -0
- data/MANIFEST +151 -0
- data/METADATA +22 -0
- data/NEWS +8 -0
- data/README +75 -0
- data/VERSION +1 -0
- data/bin/rubybreak +3 -0
- data/bin/xact-ruby +6 -0
- data/demo/spec/demo_check.rb +21 -0
- data/demo/spec/demo_outline.rb +25 -0
- data/demo/test/demo_run.rb +21 -0
- data/doc/manual.html2 +1416 -0
- data/doc/rdoc/classes/Assertion.html +101 -0
- data/doc/rdoc/classes/Assertion/False.html +132 -0
- data/doc/rdoc/classes/Assertion/True.html +137 -0
- data/doc/rdoc/classes/Kernel.html +86 -0
- data/doc/rdoc/classes/Method.html +137 -0
- data/doc/rdoc/classes/Module.html +165 -0
- data/doc/rdoc/classes/Object.html +154 -0
- data/doc/rdoc/classes/Quarry.html +177 -0
- data/doc/rdoc/classes/Quarry/Design.html +170 -0
- data/doc/rdoc/classes/Quarry/Design/Specification.html +265 -0
- data/doc/rdoc/classes/Quarry/Design/Specification/Context.html +174 -0
- data/doc/rdoc/classes/Quarry/MethodProbe.html +267 -0
- data/doc/rdoc/classes/Quarry/Mock.html +89 -0
- data/doc/rdoc/classes/Quarry/Mock/Object.html +276 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/CHANGES.html +100 -0
- data/doc/rdoc/files/COPYING.html +457 -0
- data/doc/rdoc/files/MANIFEST.html +630 -0
- data/doc/rdoc/files/METADATA.html +92 -0
- data/doc/rdoc/files/NEWS.html +99 -0
- data/doc/rdoc/files/README.html +171 -0
- data/doc/rdoc/files/VERSION.html +96 -0
- data/doc/rdoc/files/bin/rubybreak.html +96 -0
- data/doc/rdoc/files/bin/xact-ruby.html +92 -0
- data/doc/rdoc/files/lib/quarry/assert/must_rb.html +96 -0
- data/doc/rdoc/files/lib/quarry/assert/should_rb.html +96 -0
- data/doc/rdoc/files/lib/quarry/assertion_rb.html +96 -0
- data/doc/rdoc/files/lib/quarry/breakout_rb.html +144 -0
- data/doc/rdoc/files/lib/quarry/design/spec_rb.html +100 -0
- data/doc/rdoc/files/lib/quarry/document_rb.html +92 -0
- data/doc/rdoc/files/lib/quarry/loadmonitor_rb.html +92 -0
- data/doc/rdoc/files/lib/quarry/methodprobe_rb.html +111 -0
- data/doc/rdoc/files/lib/quarry/mock/object_rb.html +123 -0
- data/doc/rdoc/files/lib/quarry/mockery_rb.html +115 -0
- data/doc/rdoc/fr_class_index.html +60 -0
- data/doc/rdoc/fr_file_index.html +65 -0
- data/doc/rdoc/fr_method_index.html +77 -0
- data/doc/rdoc/index.html +26 -0
- data/doc/rdoc/rdoc-style.css +175 -0
- data/doc/ri/Assertion/False/assert-i.yaml +10 -0
- data/doc/ri/Assertion/False/cdesc-False.yaml +19 -0
- data/doc/ri/Assertion/False/message-i.yaml +10 -0
- data/doc/ri/Assertion/True/assert-i.yaml +11 -0
- data/doc/ri/Assertion/True/cdesc-True.yaml +24 -0
- data/doc/ri/Assertion/True/message-c.yaml +11 -0
- data/doc/ri/Assertion/True/message-i.yaml +11 -0
- data/doc/ri/Assertion/True/method_missing-i.yaml +11 -0
- data/doc/ri/Assertion/True/new-c.yaml +11 -0
- data/doc/ri/Assertion/cdesc-Assertion.yaml +17 -0
- data/doc/ri/Kernel/cdesc-Kernel.yaml +15 -0
- data/doc/ri/Method/cdesc-Method.yaml +18 -0
- data/doc/ri/Method/migration-i.yaml +12 -0
- data/doc/ri/Method/signature-i.yaml +12 -0
- data/doc/ri/Module/cdesc-Module.yaml +21 -0
- data/doc/ri/Module/doc-i.yaml +16 -0
- data/doc/ri/Module/method_added-i.yaml +10 -0
- data/doc/ri/Object/assert%21-i.yaml +14 -0
- data/doc/ri/Object/assert-i.yaml +14 -0
- data/doc/ri/Object/cdesc-Object.yaml +20 -0
- data/doc/ri/Quarry/Design/Specification/Context/after-i.yaml +10 -0
- data/doc/ri/Quarry/Design/Specification/Context/before-i.yaml +10 -0
- data/doc/ri/Quarry/Design/Specification/Context/cdesc-Context.yaml +24 -0
- data/doc/ri/Quarry/Design/Specification/Context/method_missing-i.yaml +10 -0
- data/doc/ri/Quarry/Design/Specification/Context/specifications-i.yaml +10 -0
- data/doc/ri/Quarry/Design/Specification/cdesc-Specification.yaml +44 -0
- data/doc/ri/Quarry/Design/Specification/check-i.yaml +12 -0
- data/doc/ri/Quarry/Design/Specification/new-c.yaml +12 -0
- data/doc/ri/Quarry/Design/Specification/outline-i.yaml +12 -0
- data/doc/ri/Quarry/Design/cdesc-Design.yaml +22 -0
- data/doc/ri/Quarry/Design/check-c.yaml +12 -0
- data/doc/ri/Quarry/Design/outline-c.yaml +10 -0
- data/doc/ri/Quarry/Design/specification-c.yaml +10 -0
- data/doc/ri/Quarry/Design/specifications-c.yaml +10 -0
- data/doc/ri/Quarry/MethodProbe/cdesc-MethodProbe.yaml +46 -0
- data/doc/ri/Quarry/MethodProbe/duckcall-c.yaml +10 -0
- data/doc/ri/Quarry/MethodProbe/initialize_copy-i.yaml +10 -0
- data/doc/ri/Quarry/MethodProbe/method_missing-i.yaml +10 -0
- data/doc/ri/Quarry/MethodProbe/new-c.yaml +10 -0
- data/doc/ri/Quarry/Mock/Object/cdesc-Object.yaml +52 -0
- data/doc/ri/Quarry/Mock/Object/echo-c.yaml +12 -0
- data/doc/ri/Quarry/Mock/Object/keys-c.yaml +12 -0
- data/doc/ri/Quarry/Mock/Object/mock-c.yaml +12 -0
- data/doc/ri/Quarry/Mock/Object/mocks-c.yaml +10 -0
- data/doc/ri/Quarry/Mock/Object/spin-c.yaml +12 -0
- data/doc/ri/Quarry/Mock/cdesc-Mock.yaml +15 -0
- data/doc/ri/Quarry/Mockery-i.yaml +12 -0
- data/doc/ri/Quarry/cdesc-Quarry.yaml +17 -0
- data/doc/ri/created.rid +1 -0
- data/lib/quarry/assert/must.rb +8 -0
- data/lib/quarry/assert/should.rb +9 -0
- data/lib/quarry/assertion.rb +95 -0
- data/lib/quarry/breakout.rb +45 -0
- data/lib/quarry/design/spec.rb +197 -0
- data/lib/quarry/document.rb +35 -0
- data/lib/quarry/loadmonitor.rb +14 -0
- data/lib/quarry/methodprobe.rb +216 -0
- data/lib/quarry/mock/object.rb +169 -0
- data/lib/quarry/mockery.rb +85 -0
- metadata +214 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
a {
|
|
2
|
+
color: #00F;
|
|
3
|
+
text-decoration: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
a:hover {
|
|
7
|
+
color: #77F;
|
|
8
|
+
text-decoration: underline;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body, td, p {
|
|
12
|
+
font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
|
|
13
|
+
background: #FFF;
|
|
14
|
+
color: #000;
|
|
15
|
+
margin: 0px;
|
|
16
|
+
font-size: small;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#content {
|
|
20
|
+
margin: 2em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#description p {
|
|
24
|
+
margin-bottom: 0.5em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sectiontitle {
|
|
28
|
+
margin-top: 1em;
|
|
29
|
+
margin-bottom: 1em;
|
|
30
|
+
padding: 0.5em;
|
|
31
|
+
padding-left: 2em;
|
|
32
|
+
background: #005;
|
|
33
|
+
color: #FFF;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
border: 1px dotted black;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.attr-rw {
|
|
39
|
+
padding-left: 1em;
|
|
40
|
+
padding-right: 1em;
|
|
41
|
+
text-align: center;
|
|
42
|
+
color: #055;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.attr-name {
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.attr-desc {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.attr-value {
|
|
53
|
+
font-family: monospace;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.file-title-prefix {
|
|
57
|
+
font-size: large;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.file-title {
|
|
61
|
+
font-size: large;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
background: #005;
|
|
64
|
+
color: #FFF;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.banner {
|
|
68
|
+
background: #005;
|
|
69
|
+
color: #FFF;
|
|
70
|
+
border: 1px solid black;
|
|
71
|
+
padding: 1em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.banner td {
|
|
75
|
+
background: transparent;
|
|
76
|
+
color: #FFF;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
h1 a, h2 a, .sectiontitle a, .banner a {
|
|
80
|
+
color: #FF0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
|
|
84
|
+
color: #FF7;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dyn-source {
|
|
88
|
+
display: none;
|
|
89
|
+
background: #FFE;
|
|
90
|
+
color: #000;
|
|
91
|
+
border: 1px dotted black;
|
|
92
|
+
margin: 0.5em 2em 0.5em 2em;
|
|
93
|
+
padding: 0.5em;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.dyn-source .cmt {
|
|
97
|
+
color: #00F;
|
|
98
|
+
font-style: italic;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dyn-source .kw {
|
|
102
|
+
color: #070;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.method {
|
|
107
|
+
margin-left: 1em;
|
|
108
|
+
margin-right: 1em;
|
|
109
|
+
margin-bottom: 1em;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.description pre {
|
|
113
|
+
padding: 0.5em;
|
|
114
|
+
border: 1px dotted black;
|
|
115
|
+
background: #FFE;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.method .title {
|
|
119
|
+
font-family: monospace;
|
|
120
|
+
font-size: large;
|
|
121
|
+
border-bottom: 1px dashed black;
|
|
122
|
+
margin-bottom: 0.3em;
|
|
123
|
+
padding-bottom: 0.1em;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.method .description, .method .sourcecode {
|
|
127
|
+
margin-left: 1em;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.description p, .sourcecode p {
|
|
131
|
+
margin-bottom: 0.5em;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.method .sourcecode p.source-link {
|
|
135
|
+
text-indent: 0em;
|
|
136
|
+
margin-top: 0.5em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.method .aka {
|
|
140
|
+
margin-top: 0.3em;
|
|
141
|
+
margin-left: 1em;
|
|
142
|
+
font-style: italic;
|
|
143
|
+
text-indent: 2em;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
h1 {
|
|
147
|
+
padding: 1em;
|
|
148
|
+
border: 1px solid black;
|
|
149
|
+
font-size: x-large;
|
|
150
|
+
font-weight: bold;
|
|
151
|
+
color: #FFF;
|
|
152
|
+
background: #007;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
h2 {
|
|
156
|
+
padding: 0.5em 1em 0.5em 1em;
|
|
157
|
+
border: 1px solid black;
|
|
158
|
+
font-size: large;
|
|
159
|
+
font-weight: bold;
|
|
160
|
+
color: #FFF;
|
|
161
|
+
background: #009;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
h3, h4, h5, h6 {
|
|
165
|
+
padding: 0.2em 1em 0.2em 1em;
|
|
166
|
+
border: 1px dashed black;
|
|
167
|
+
color: #000;
|
|
168
|
+
background: #AAF;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.sourcecode > pre {
|
|
172
|
+
padding: 0.5em;
|
|
173
|
+
border: 1px dotted black;
|
|
174
|
+
background: #FFE;
|
|
175
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
--- !ruby/object:RI::ClassDescription
|
|
2
|
+
attributes: []
|
|
3
|
+
|
|
4
|
+
class_methods: []
|
|
5
|
+
|
|
6
|
+
comment: []
|
|
7
|
+
|
|
8
|
+
constants: []
|
|
9
|
+
|
|
10
|
+
full_name: Assertion::False
|
|
11
|
+
includes: []
|
|
12
|
+
|
|
13
|
+
instance_methods:
|
|
14
|
+
- !ruby/object:RI::MethodSummary
|
|
15
|
+
name: assert
|
|
16
|
+
- !ruby/object:RI::MethodSummary
|
|
17
|
+
name: message
|
|
18
|
+
name: "False"
|
|
19
|
+
superclass: "True"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
--- !ruby/object:RI::ClassDescription
|
|
2
|
+
attributes: []
|
|
3
|
+
|
|
4
|
+
class_methods:
|
|
5
|
+
- !ruby/object:RI::MethodSummary
|
|
6
|
+
name: message
|
|
7
|
+
- !ruby/object:RI::MethodSummary
|
|
8
|
+
name: new
|
|
9
|
+
comment: []
|
|
10
|
+
|
|
11
|
+
constants: []
|
|
12
|
+
|
|
13
|
+
full_name: Assertion::True
|
|
14
|
+
includes: []
|
|
15
|
+
|
|
16
|
+
instance_methods:
|
|
17
|
+
- !ruby/object:RI::MethodSummary
|
|
18
|
+
name: assert
|
|
19
|
+
- !ruby/object:RI::MethodSummary
|
|
20
|
+
name: message
|
|
21
|
+
- !ruby/object:RI::MethodSummary
|
|
22
|
+
name: method_missing
|
|
23
|
+
name: "True"
|
|
24
|
+
superclass: Object
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
--- !ruby/object:RI::ClassDescription
|
|
2
|
+
attributes: []
|
|
3
|
+
|
|
4
|
+
class_methods: []
|
|
5
|
+
|
|
6
|
+
comment:
|
|
7
|
+
- !ruby/struct:SM::Flow::P
|
|
8
|
+
body: Assertion object is a special subclass of Exception, used to raise assertion errors.
|
|
9
|
+
constants: []
|
|
10
|
+
|
|
11
|
+
full_name: Assertion
|
|
12
|
+
includes: []
|
|
13
|
+
|
|
14
|
+
instance_methods: []
|
|
15
|
+
|
|
16
|
+
name: Assertion
|
|
17
|
+
superclass: Exception
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
--- !ruby/object:RI::ClassDescription
|
|
2
|
+
attributes: []
|
|
3
|
+
|
|
4
|
+
class_methods: []
|
|
5
|
+
|
|
6
|
+
comment:
|
|
7
|
+
constants: []
|
|
8
|
+
|
|
9
|
+
full_name: Method
|
|
10
|
+
includes: []
|
|
11
|
+
|
|
12
|
+
instance_methods:
|
|
13
|
+
- !ruby/object:RI::MethodSummary
|
|
14
|
+
name: migration
|
|
15
|
+
- !ruby/object:RI::MethodSummary
|
|
16
|
+
name: signature
|
|
17
|
+
name: Method
|
|
18
|
+
superclass: Object
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
--- !ruby/object:RI::MethodDescription
|
|
2
|
+
aliases: []
|
|
3
|
+
|
|
4
|
+
block_params:
|
|
5
|
+
comment:
|
|
6
|
+
- !ruby/struct:SM::Flow::P
|
|
7
|
+
body: Outputs migration information.
|
|
8
|
+
full_name: Method#migration
|
|
9
|
+
is_singleton: false
|
|
10
|
+
name: migration
|
|
11
|
+
params: ()
|
|
12
|
+
visibility: private
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
--- !ruby/object:RI::MethodDescription
|
|
2
|
+
aliases: []
|
|
3
|
+
|
|
4
|
+
block_params:
|
|
5
|
+
comment:
|
|
6
|
+
- !ruby/struct:SM::Flow::P
|
|
7
|
+
body: Outputs signiture information.
|
|
8
|
+
full_name: Method#signature
|
|
9
|
+
is_singleton: false
|
|
10
|
+
name: signature
|
|
11
|
+
params: (detail=nil)
|
|
12
|
+
visibility: public
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
--- !ruby/object:RI::ClassDescription
|
|
2
|
+
attributes:
|
|
3
|
+
- !ruby/object:RI::Attribute
|
|
4
|
+
comment:
|
|
5
|
+
name: docs
|
|
6
|
+
rw: R
|
|
7
|
+
class_methods: []
|
|
8
|
+
|
|
9
|
+
comment:
|
|
10
|
+
constants: []
|
|
11
|
+
|
|
12
|
+
full_name: Module
|
|
13
|
+
includes: []
|
|
14
|
+
|
|
15
|
+
instance_methods:
|
|
16
|
+
- !ruby/object:RI::MethodSummary
|
|
17
|
+
name: doc
|
|
18
|
+
- !ruby/object:RI::MethodSummary
|
|
19
|
+
name: method_added
|
|
20
|
+
name: Module
|
|
21
|
+
superclass: Object
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
--- !ruby/object:RI::MethodDescription
|
|
2
|
+
aliases: []
|
|
3
|
+
|
|
4
|
+
block_params:
|
|
5
|
+
comment:
|
|
6
|
+
- !ruby/struct:SM::Flow::P
|
|
7
|
+
body: The idea here is to have dynamic docs.
|
|
8
|
+
- !ruby/struct:SM::Flow::VERB
|
|
9
|
+
body: " doc "X does such and such"\n doc "it is very powerful"\n class X\n doc "f does such and such"\n doc "it is where the power lies"\n def f\n ...\n end\n end\n"
|
|
10
|
+
- !ruby/struct:SM::Flow::P
|
|
11
|
+
body: One of the great things about doc, is that it can be used to "inherit" documentation.
|
|
12
|
+
full_name: Module#doc
|
|
13
|
+
is_singleton: false
|
|
14
|
+
name: doc
|
|
15
|
+
params: (str)
|
|
16
|
+
visibility: public
|