quarry 0.4.0 → 0.5.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 +22 -1
- data/MANIFEST +30 -339
- data/RELEASE +2 -4
- data/VERSION +1 -1
- data/bin/quarry +14 -10
- data/bin/quarry-doc +2 -2
- data/lib/quarry/assertion.rb +27 -0
- data/lib/quarry/{spec/config.rb → config.rb} +0 -0
- data/lib/quarry/document/template.rhtml +239 -0
- data/lib/quarry/document.rb +126 -0
- data/lib/quarry/expectation.rb +60 -0
- data/lib/quarry/extract.rb +2 -0
- data/lib/quarry/grammar/assert.rb +48 -0
- data/lib/quarry/grammar/expect.rb +114 -0
- data/lib/quarry/grammar/legacy/assert.rb +280 -0
- data/lib/quarry/grammar/should.rb +50 -0
- data/lib/quarry/grammar.rb +4 -0
- data/lib/quarry/{spec → markup}/step.rb +4 -3
- data/lib/quarry/markup.rb +70 -0
- data/lib/quarry/{stub/mock.rb → mock.rb} +1 -1
- data/lib/quarry/{loadmonitor.rb → monitor.rb} +0 -0
- data/lib/quarry/{stub/probe.rb → probe.rb} +8 -35
- data/lib/quarry/reporter/dotprogress.rb +62 -0
- data/lib/quarry/reporter/summary.rb +70 -0
- data/lib/quarry/reporter/verbatim.rb +82 -0
- data/lib/quarry/reporter.rb +70 -0
- data/lib/quarry/{spec → runner}/context.rb +7 -2
- data/lib/quarry/runner.rb +123 -0
- data/lib/quarry/{stub/stub.rb → stub.rb} +1 -1
- data/lib/quarry.rb +10 -0
- data/spec/basic.rd +0 -2
- data/spec/complex.rd +0 -2
- data/spec/mock.rd +20 -26
- data/spec/stub.rd +8 -12
- metadata +48 -361
- data/bin/ruby-break +0 -10
- data/doc/assets/images/clipboard.jpg +0 -0
- data/doc/assets/images/clipboard2.png +0 -0
- data/doc/assets/images/darksilver.png +0 -0
- data/doc/assets/images/icon/book.jpg +0 -0
- data/doc/assets/images/icon/download.gif +0 -0
- data/doc/assets/images/icon/letter_r.png +0 -0
- data/doc/assets/images/icon/license.png +0 -0
- data/doc/assets/images/icon/software.png +0 -0
- data/doc/assets/images/icon/source.png +0 -0
- data/doc/assets/images/miner.jpg +0 -0
- data/doc/assets/images/rbrylmtrx.png +0 -0
- data/doc/assets/images/ruby.gif +0 -0
- data/doc/assets/images/runneth.png +0 -0
- data/doc/assets/images/silver.gif +0 -0
- data/doc/assets/images/test.jpg +0 -0
- data/doc/assets/jquery/jquery.js +0 -1
- data/doc/assets/jquery/jquery.tabs.js +0 -1
- data/doc/assets/rdoc_ad.html +0 -12
- data/doc/assets/styles/index.css +0 -138
- data/doc/guide/stubs.md +0 -125
- data/doc/index.html +0 -285
- data/doc/log/bstats/stats.html +0 -39
- data/doc/log/notes.xml +0 -32
- data/doc/log/stats.html +0 -25
- data/doc/log/stats.log +0 -14
- data/doc/log/syntax.log +0 -0
- data/doc/rdoc/classes/Assertion/False.html +0 -177
- data/doc/rdoc/classes/Assertion/True.html +0 -152
- data/doc/rdoc/classes/Assertion.html +0 -171
- data/doc/rdoc/classes/Kernel.html +0 -105
- data/doc/rdoc/classes/Method.html +0 -168
- data/doc/rdoc/classes/Object.html +0 -507
- data/doc/rdoc/classes/Quarry/Break.html +0 -231
- data/doc/rdoc/classes/Quarry/Command.html +0 -443
- data/doc/rdoc/classes/Quarry/Extract.html +0 -215
- data/doc/rdoc/classes/Quarry/MethodProbe.html +0 -325
- data/doc/rdoc/classes/Quarry/Mock/Delegator.html +0 -179
- data/doc/rdoc/classes/Quarry/Mock/Setter.html +0 -175
- data/doc/rdoc/classes/Quarry/Mock.html +0 -233
- data/doc/rdoc/classes/Quarry/Spec/Comment.html +0 -237
- data/doc/rdoc/classes/Quarry/Spec/Config.html +0 -257
- data/doc/rdoc/classes/Quarry/Spec/Context.html +0 -154
- data/doc/rdoc/classes/Quarry/Spec/Document.html +0 -382
- data/doc/rdoc/classes/Quarry/Spec/Header.html +0 -195
- data/doc/rdoc/classes/Quarry/Spec/Macro.html +0 -166
- data/doc/rdoc/classes/Quarry/Spec/Markup.html +0 -279
- data/doc/rdoc/classes/Quarry/Spec/Reporter/DotProgress.html +0 -234
- data/doc/rdoc/classes/Quarry/Spec/Reporter/Summary.html +0 -294
- data/doc/rdoc/classes/Quarry/Spec/Reporter/Verbatim.html +0 -311
- data/doc/rdoc/classes/Quarry/Spec/Runner.html +0 -352
- data/doc/rdoc/classes/Quarry/Spec/Step.html +0 -190
- data/doc/rdoc/classes/Quarry/Spec/Template.html +0 -205
- data/doc/rdoc/classes/Quarry/Stub/Delegator.html +0 -179
- data/doc/rdoc/classes/Quarry/Stub/Setter.html +0 -175
- data/doc/rdoc/classes/Quarry/Stub.html +0 -224
- data/doc/rdoc/classes/Quarry.html +0 -176
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/CHANGES.html +0 -150
- data/doc/rdoc/files/COPYING.html +0 -468
- data/doc/rdoc/files/README.html +0 -195
- data/doc/rdoc/files/RELEASE.html +0 -122
- data/doc/rdoc/files/VERSION.html +0 -107
- data/doc/rdoc/files/bin/quarry-doc.html +0 -109
- data/doc/rdoc/files/bin/quarry.html +0 -109
- data/doc/rdoc/files/bin/ruby-break.html +0 -108
- data/doc/rdoc/files/bin/ruby-xacto.html +0 -101
- data/doc/rdoc/files/lib/quarry/assert_rb.html +0 -155
- data/doc/rdoc/files/lib/quarry/break_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/extract_rb.html +0 -108
- data/doc/rdoc/files/lib/quarry/loadmonitor_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/spec/config_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/spec/context_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/spec/document_rb.html +0 -111
- data/doc/rdoc/files/lib/quarry/spec/markup_rb.html +0 -108
- data/doc/rdoc/files/lib/quarry/spec/reporter/dotprogress_rb.html +0 -108
- data/doc/rdoc/files/lib/quarry/spec/reporter/summary_rb.html +0 -108
- data/doc/rdoc/files/lib/quarry/spec/reporter/verbatim_rb.html +0 -108
- data/doc/rdoc/files/lib/quarry/spec/reporter_rb.html +0 -109
- data/doc/rdoc/files/lib/quarry/spec/runner_rb.html +0 -109
- data/doc/rdoc/files/lib/quarry/spec/step_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/spec/template_rhtml.html +0 -228
- data/doc/rdoc/files/lib/quarry/spec_rb.html +0 -113
- data/doc/rdoc/files/lib/quarry/stub/mock_rb.html +0 -101
- data/doc/rdoc/files/lib/quarry/stub/probe_rb.html +0 -122
- data/doc/rdoc/files/lib/quarry/stub/spec_txt.html +0 -118
- data/doc/rdoc/files/lib/quarry/stub/stub_rb.html +0 -101
- data/doc/rdoc/fr_class_index.html +0 -56
- data/doc/rdoc/fr_file_index.html +0 -55
- data/doc/rdoc/fr_method_index.html +0 -117
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
- data/doc/ri/Assertion/False/assert-i.yaml +0 -10
- data/doc/ri/Assertion/False/cdesc-False.yaml +0 -21
- data/doc/ri/Assertion/False/message-i.yaml +0 -10
- data/doc/ri/Assertion/True/assert-i.yaml +0 -11
- data/doc/ri/Assertion/True/cdesc-True.yaml +0 -26
- data/doc/ri/Assertion/True/message-c.yaml +0 -11
- data/doc/ri/Assertion/True/message-i.yaml +0 -11
- data/doc/ri/Assertion/True/method_missing-i.yaml +0 -12
- data/doc/ri/Assertion/True/new-c.yaml +0 -11
- data/doc/ri/Assertion/cdesc-Assertion.yaml +0 -40
- data/doc/ri/Kernel/cdesc-Kernel.yaml +0 -15
- data/doc/ri/Method/cdesc-Method.yaml +0 -18
- data/doc/ri/Method/migration-i.yaml +0 -12
- data/doc/ri/Method/signature-i.yaml +0 -12
- data/doc/ri/Object/assert%21-i.yaml +0 -17
- data/doc/ri/Object/assert-i.yaml +0 -15
- data/doc/ri/Object/assert_raises%21-i.yaml +0 -12
- data/doc/ri/Object/assert_raises-i.yaml +0 -15
- data/doc/ri/Object/cdesc-Object.yaml +0 -42
- data/doc/ri/Object/mock-i.yaml +0 -12
- data/doc/ri/Object/refute-i.yaml +0 -13
- data/doc/ri/Object/refute_raises-i.yaml +0 -17
- data/doc/ri/Object/remove-i.yaml +0 -12
- data/doc/ri/Object/should-i.yaml +0 -12
- data/doc/ri/Object/should_not-i.yaml +0 -12
- data/doc/ri/Object/should_not_raise-i.yaml +0 -12
- data/doc/ri/Object/should_raise-i.yaml +0 -12
- data/doc/ri/Object/stub-i.yaml +0 -12
- data/doc/ri/Quarry/Break/cdesc-Break.yaml +0 -23
- data/doc/ri/Quarry/Break/edit-i.yaml +0 -11
- data/doc/ri/Quarry/Break/new-c.yaml +0 -11
- data/doc/ri/Quarry/Extract/cdesc-Extract.yaml +0 -26
- data/doc/ri/Quarry/Extract/create_test-i.yaml +0 -12
- data/doc/ri/Quarry/Extract/extract_test_from_file-i.yaml +0 -12
- data/doc/ri/Quarry/Extract/test_extract-i.yaml +0 -18
- data/doc/ri/Quarry/MethodProbe/cdesc-MethodProbe.yaml +0 -46
- data/doc/ri/Quarry/MethodProbe/duckcall-c.yaml +0 -10
- data/doc/ri/Quarry/MethodProbe/initialize_copy-i.yaml +0 -10
- data/doc/ri/Quarry/MethodProbe/method_missing-i.yaml +0 -10
- data/doc/ri/Quarry/MethodProbe/new-c.yaml +0 -10
- data/doc/ri/Quarry/Mock/Delegator/cdesc-Delegator.yaml +0 -20
- data/doc/ri/Quarry/Mock/Delegator/method_missing-i.yaml +0 -10
- data/doc/ri/Quarry/Mock/Delegator/new-c.yaml +0 -10
- data/doc/ri/Quarry/Mock/Setter/%3d%3d-i.yaml +0 -10
- data/doc/ri/Quarry/Mock/Setter/cdesc-Setter.yaml +0 -18
- data/doc/ri/Quarry/Mock/Setter/new-c.yaml +0 -10
- data/doc/ri/Quarry/Mock/__table__-i.yaml +0 -11
- data/doc/ri/Quarry/Mock/cdesc-Mock.yaml +0 -25
- data/doc/ri/Quarry/Mock/method_missing-i.yaml +0 -12
- data/doc/ri/Quarry/Mock/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Comment/cdesc-Comment.yaml +0 -33
- data/doc/ri/Quarry/Spec/Comment/macro%3f-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Comment/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Comment/type-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Config/after-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Config/after_spec-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Config/before-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Config/before_spec-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Config/cdesc-Config.yaml +0 -26
- data/doc/ri/Quarry/Spec/Config/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Context/cdesc-Context.yaml +0 -21
- data/doc/ri/Quarry/Spec/Context/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Document/cdesc-Document.yaml +0 -76
- data/doc/ri/Quarry/Spec/Document/generate-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Document/new-c.yaml +0 -12
- data/doc/ri/Quarry/Spec/Document/quiet%3f-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Document/require_rdoc-i.yaml +0 -11
- data/doc/ri/Quarry/Spec/Document/save-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Document/template-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Header/cdesc-Header.yaml +0 -30
- data/doc/ri/Quarry/Spec/Header/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Macro/cdesc-Macro.yaml +0 -22
- data/doc/ri/Quarry/Spec/Macro/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Markup/cdesc-Markup.yaml +0 -31
- data/doc/ri/Quarry/Spec/Markup/description-i.yaml +0 -11
- data/doc/ri/Quarry/Spec/Markup/new-c.yaml +0 -11
- data/doc/ri/Quarry/Spec/Markup/parse-i.yaml +0 -11
- data/doc/ri/Quarry/Spec/Markup/parse_section-i.yaml +0 -11
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/cdesc-DotProgress.yaml +0 -21
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/report_intro-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/report_step-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/report_summary-i.yaml +0 -16
- data/doc/ri/Quarry/Spec/Reporter/Summary/cdesc-Summary.yaml +0 -31
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_comment-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_error-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_fail-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_header-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_macro-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_pass-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/cdesc-Verbatim.yaml +0 -29
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_comment-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_error-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_fail-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_header-i.yaml +0 -16
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_macro-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_pass-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/Reporter/cdesc-Reporter.yaml +0 -20
- data/doc/ri/Quarry/Spec/Runner/cdesc-Runner.yaml +0 -47
- data/doc/ri/Quarry/Spec/Runner/check-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Runner/check_spec-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Runner/new-c.yaml +0 -12
- data/doc/ri/Quarry/Spec/Runner/run_step-i.yaml +0 -12
- data/doc/ri/Quarry/Spec/Step/cdesc-Step.yaml +0 -30
- data/doc/ri/Quarry/Spec/Step/new-c.yaml +0 -10
- data/doc/ri/Quarry/Spec/Template/cdesc-Template.yaml +0 -31
- data/doc/ri/Quarry/Spec/Template/new-c.yaml +0 -11
- data/doc/ri/Quarry/Spec/Template/parse_template-i.yaml +0 -10
- data/doc/ri/Quarry/Spec/cdesc-Spec.yaml +0 -15
- data/doc/ri/Quarry/Stub/Delegator/cdesc-Delegator.yaml +0 -20
- data/doc/ri/Quarry/Stub/Delegator/method_missing-i.yaml +0 -10
- data/doc/ri/Quarry/Stub/Delegator/new-c.yaml +0 -10
- data/doc/ri/Quarry/Stub/Setter/%3d%3d-i.yaml +0 -10
- data/doc/ri/Quarry/Stub/Setter/cdesc-Setter.yaml +0 -18
- data/doc/ri/Quarry/Stub/Setter/new-c.yaml +0 -10
- data/doc/ri/Quarry/Stub/__table__-i.yaml +0 -11
- data/doc/ri/Quarry/Stub/cdesc-Stub.yaml +0 -23
- data/doc/ri/Quarry/Stub/method_missing-i.yaml +0 -11
- data/doc/ri/Quarry/Stub/new-c.yaml +0 -10
- data/doc/ri/Quarry/cdesc-Quarry.yaml +0 -16
- data/doc/ri/created.rid +0 -1
- data/doc/spec/stub.html +0 -394
- data/lib/quarry/assert.rb +0 -198
- data/lib/quarry/break.rb +0 -51
- data/lib/quarry/spec/document.rb +0 -130
- data/lib/quarry/spec/markup.rb +0 -85
- data/lib/quarry/spec/reporter/dotprogress.rb +0 -66
- data/lib/quarry/spec/reporter/summary.rb +0 -74
- data/lib/quarry/spec/reporter/verbatim.rb +0 -87
- data/lib/quarry/spec/reporter.rb +0 -74
- data/lib/quarry/spec/runner.rb +0 -127
- data/lib/quarry/spec/template.rhtml +0 -116
- data/lib/quarry/spec.rb +0 -7
- data/lib/quarry/stub/spec.txt +0 -113
- data/work/consider/document.rb +0 -35
- data/work/consider/fixture.rb +0 -153
- data/work/deprecated/assert/must.rb +0 -9
- data/work/deprecated/assert/should.rb +0 -9
- data/work/deprecated/build.rb +0 -82
- data/work/deprecated/mock/file.rb +0 -11
- data/work/deprecated/mock/mock.0.rb +0 -77
- data/work/deprecated/overlay.rb +0 -64
- data/work/deprecated/spec.rb +0 -195
- data/work/deprecated/stub/stub.0.rb +0 -180
- data/work/deprecated/stub/stub.1.rb +0 -114
- data/work/deprecated/stub/test_stub.rb +0 -66
- data/work/deprecated/test/case.rb +0 -141
- data/work/sandbox/assert.rb +0 -100
- data/work/sandbox/bug.rb +0 -49
- data/work/sandbox/build/announce.rb +0 -213
- data/work/sandbox/build/check.rb +0 -109
- data/work/sandbox/build/gem.rb +0 -235
- data/work/sandbox/build/make.rb +0 -118
- data/work/sandbox/build/manpage.rb +0 -201
- data/work/sandbox/build/notes.rb +0 -214
- data/work/sandbox/build/pack.rb +0 -228
- data/work/sandbox/build/rdoc.rb +0 -289
- data/work/sandbox/build/rubyforge.rb +0 -91
- data/work/sandbox/build/sign.rb +0 -241
- data/work/sandbox/build/stamp.rb +0 -37
- data/work/sandbox/build/stats.rb +0 -154
- data/work/sandbox/build/svn.rb +0 -193
- data/work/sandbox/build/test.rb +0 -521
- data/work/sandbox/design.rb +0 -200
- data/work/sandbox/iface_scanner.rb +0 -102
- data/work/sandbox/testunit/assertions/assert_has_keys.rb +0 -38
- data/work/sandbox/testunit/assertions/assert_has_only_keys.rb +0 -38
- data/work/sandbox/testunit/unit.rb +0 -104
- data/work/sandbox/unitspec.rb +0 -54
- data/work/sandbox/x_isotest.rb +0 -532
data/doc/assets/styles/index.css
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
position: relative;
|
|
3
|
-
margin: 0; padding: 0;
|
|
4
|
-
font: 10pt sans-serif;
|
|
5
|
-
color: white;
|
|
6
|
-
background: #222;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
a { text-decoration: underline; }
|
|
10
|
-
img { border: none; }
|
|
11
|
-
td { text-align: left; vertical-align: top; }
|
|
12
|
-
|
|
13
|
-
pre { color: #f2b; margin: 10px 0; padding-top: 10px;
|
|
14
|
-
background: black;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.red { color: #b05; }
|
|
18
|
-
|
|
19
|
-
h1{border-left: 20px solid #222; padding-left: 10px;}
|
|
20
|
-
h2{border-bottom: 0px dotted white; text-style: italic; padding-top: 20px;}
|
|
21
|
-
|
|
22
|
-
/* header */
|
|
23
|
-
|
|
24
|
-
#header {
|
|
25
|
-
height: 200px;
|
|
26
|
-
background: #000;
|
|
27
|
-
padding: 0 0;
|
|
28
|
-
border-right: 200px solid transparent;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
#header_inner {
|
|
32
|
-
width: 800px;
|
|
33
|
-
height: 200px;
|
|
34
|
-
margin: 0 auto;
|
|
35
|
-
text-align: left;
|
|
36
|
-
background: url(assets/images/rbrylmtrx.png) no-repeat right;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
#title {
|
|
40
|
-
position: relative;
|
|
41
|
-
/* margin-left: 190px; */
|
|
42
|
-
text-align: left;
|
|
43
|
-
padding: 20 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
#title0 {
|
|
47
|
-
font: normal 24pt sans-serif;
|
|
48
|
-
color: #ffe;
|
|
49
|
-
margin-bottom: 0px;
|
|
50
|
-
text-align: left;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
#title1 {
|
|
54
|
-
font: normal 48pt sans-serif;
|
|
55
|
-
color: #fff;
|
|
56
|
-
letter-spacing: 8pt;
|
|
57
|
-
margin-bottom: 5;
|
|
58
|
-
text-align: left;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
#title2 {
|
|
62
|
-
padding: 0 5px;
|
|
63
|
-
font: normal 11pt sans-serif;
|
|
64
|
-
color: #ffe;
|
|
65
|
-
letter-spacing: 4px;
|
|
66
|
-
text-align: left;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* menu */
|
|
70
|
-
|
|
71
|
-
#menu { margin-top: 25px; text-align: left; margin-left: -30px; }
|
|
72
|
-
#menu ul {list-style-type:none;margin:0px;padding-bottom:10px;background:transparent;position:relative;}
|
|
73
|
-
#menu ul li {display: inline; margin: 5 5 5 0; background: #222; padding: 5 1;}
|
|
74
|
-
#menu ul li a {font:bold .9em sans-serif; color:#fff; text-decoration:none; padding: 5; }
|
|
75
|
-
#menu ul li a:hover { text-decoration: underline; }
|
|
76
|
-
#menu ul li a:active { text-decoration: underline; }
|
|
77
|
-
|
|
78
|
-
/* sidebar */
|
|
79
|
-
|
|
80
|
-
#aside {
|
|
81
|
-
float: right;
|
|
82
|
-
text-align: center; font: 1em monospace; line-height: 1.5em;
|
|
83
|
-
padding: 5; margin-left: 20px; width: 200px; height: 950px;
|
|
84
|
-
background: #222;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
#aside a { color: pink; font: bold 1em sans-serif; text-decoration: none; }
|
|
88
|
-
|
|
89
|
-
#aside iframe { width: 200px; height: 950px; }
|
|
90
|
-
|
|
91
|
-
#tigerops {
|
|
92
|
-
float: right; height: 890px; width: 200px; border: 0px solid yellow;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* main */
|
|
96
|
-
|
|
97
|
-
#main { padding: 0px; border-right: 200px solid transparent; background: url(assets/images/darksilver.png) repeat-x #222; }
|
|
98
|
-
|
|
99
|
-
/* container */
|
|
100
|
-
|
|
101
|
-
#container { margin: 0 auto; width: 800px; padding: 50px 0 50px 0; background: transparent; }
|
|
102
|
-
#container a { color: pink; font-size: 1em; }
|
|
103
|
-
#container a:hover { text-decoration: underline; }
|
|
104
|
-
#container p { text-align: left; color: #eee; font: 1em sans-serif; line-height: 1.4em; }
|
|
105
|
-
#container h1 { color: #fff; font-size: 2em; font-weight: bold; }
|
|
106
|
-
#container h1 img { margin: 0 0 0 0; }
|
|
107
|
-
|
|
108
|
-
.section-img { float: right; text-align: left; margin: 10px; }
|
|
109
|
-
|
|
110
|
-
/* footer */
|
|
111
|
-
|
|
112
|
-
#footer { width: 100%; background: black; }
|
|
113
|
-
|
|
114
|
-
#footer div {
|
|
115
|
-
margin: 0 auto; width: 800px; padding: 30px 0px 35px 0px;
|
|
116
|
-
font: normal .8em sans-serif; color: #aaaaaa;
|
|
117
|
-
border-right: 200px solid transparent;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
#footer b { color: #b05; }
|
|
121
|
-
|
|
122
|
-
/*
|
|
123
|
-
#rivets { width: 100%; }
|
|
124
|
-
#rivets td { width: 25%; text-align: center; }
|
|
125
|
-
|
|
126
|
-
a#projButton div { background: url(images/rivet/folder-gray.png) center top no-repeat; }
|
|
127
|
-
a#projButton:hover div { background-image: url(images/rivet/folder-green.png); }
|
|
128
|
-
|
|
129
|
-
a#taskButton div { background: url(images/rivet/board-gray.png) center top no-repeat; }
|
|
130
|
-
a#taskButton:hover div { background-image: url(images/rivet/board-green.png); }
|
|
131
|
-
|
|
132
|
-
a#toolButton div { background: url(images/rivet/paper-gray.png) center top no-repeat; }
|
|
133
|
-
a#toolButton:hover div { background-image: url(images/rivet/paper-green.png); }
|
|
134
|
-
|
|
135
|
-
a#testButton div { background: url(images/rivet/board-gray.png) center top no-repeat; }
|
|
136
|
-
a#testButton:hover div { background-image: url(images/rivet/board-green.png); }
|
|
137
|
-
*/
|
|
138
|
-
|
data/doc/guide/stubs.md
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
How to Implement Stubs
|
|
2
|
-
======================
|
|
3
|
-
|
|
4
|
-
The most direct approach to creating stubs is to directly
|
|
5
|
-
"inject" the stubbing methods into a given object. This
|
|
6
|
-
means there is only one possible set of stub definitions
|
|
7
|
-
per object. Here is an example.
|
|
8
|
-
|
|
9
|
-
obj = "hello"
|
|
10
|
-
|
|
11
|
-
obj.stub.upcase == "HeLLo"
|
|
12
|
-
|
|
13
|
-
obj.upcase #=> "HeLLo"
|
|
14
|
-
|
|
15
|
-
Becuase we are effecting the object directly, if it carries
|
|
16
|
-
over to other parts of the system, as opposed to being
|
|
17
|
-
a temporary object, then we need to remove the stub methods
|
|
18
|
-
when we are finished with it.
|
|
19
|
-
|
|
20
|
-
obj.remove_stubs
|
|
21
|
-
|
|
22
|
-
This approach to createing stubs is not ver reusable. At best
|
|
23
|
-
we can make copies ot the stubbed object.
|
|
24
|
-
|
|
25
|
-
obj2 = obj.copy
|
|
26
|
-
|
|
27
|
-
This kind of implementation means using singleton methods or
|
|
28
|
-
alias_method override on the original methods. However these
|
|
29
|
-
approaches are not that robust, b/c the SUT may be using singleton
|
|
30
|
-
methods itself and there is a chance of name clashing, in which
|
|
31
|
-
case the stubs would be lost. (Of course if the SUT did things
|
|
32
|
-
properly and used modules to extend objects it wouldn't
|
|
33
|
-
be an issue, but we can't fully count on that.)
|
|
34
|
-
|
|
35
|
-
Now, let's consider delegation. With delegation, we make a new
|
|
36
|
-
object that wraps the original and we use that in it's place,
|
|
37
|
-
for example.
|
|
38
|
-
|
|
39
|
-
obj = "hello"
|
|
40
|
-
|
|
41
|
-
alt = orig.to_stub
|
|
42
|
-
|
|
43
|
-
alt.stub.upcase == "HeLLo"
|
|
44
|
-
|
|
45
|
-
alt.upcase #=> "HeLLo"
|
|
46
|
-
|
|
47
|
-
While we can remove the stub methods if we want.
|
|
48
|
-
|
|
49
|
-
alt.remove_stubs
|
|
50
|
-
|
|
51
|
-
we really don't need to do so b/c the original is still intact.
|
|
52
|
-
|
|
53
|
-
obj.upcase #=> "HELLO"
|
|
54
|
-
|
|
55
|
-
This works very well. However an issue arises when we need to stub
|
|
56
|
-
an internally used SUT object. In other words, if there is an object
|
|
57
|
-
in the SUT that we need to stub, perhaps to safely run a test, rather
|
|
58
|
-
then just stubbing it directly, we need to find where it is coming
|
|
59
|
-
from (at least in so far as our tests are concerned) so that we
|
|
60
|
-
can drop a stub in it's place. This can be tricky. For example,
|
|
61
|
-
stubbing a Module object, rather than:
|
|
62
|
-
|
|
63
|
-
MyModule.stub.some_method == "foo"
|
|
64
|
-
|
|
65
|
-
We would need to do:
|
|
66
|
-
|
|
67
|
-
myStub = MyModule.to_stub
|
|
68
|
-
|
|
69
|
-
myStub.stub.some_method == "foo"
|
|
70
|
-
|
|
71
|
-
const_set(MyModule, mystub)
|
|
72
|
-
|
|
73
|
-
This is less than elegant and it will even throw out a nasty warning
|
|
74
|
-
message in this case b/c we are redefining a constant. This issue
|
|
75
|
-
can be further complicated if it is difficult to track down where
|
|
76
|
-
exactly the object we want to stub is originating.
|
|
77
|
-
|
|
78
|
-
Granted stubbing internal SUT objects is not as common, in fact,
|
|
79
|
-
excpet as a means of neccessry object faking, it should be avoided.
|
|
80
|
-
Nonetheless is a required capability of any stubbing system.
|
|
81
|
-
|
|
82
|
-
Another approach, that in a respect addresses all the issues we've
|
|
83
|
-
come across this far, is the use of annonymous stubs that can be
|
|
84
|
-
applied to objects as needed. This would allow us to reuse the stub
|
|
85
|
-
definitions. Consider:
|
|
86
|
-
|
|
87
|
-
obj = "hello"
|
|
88
|
-
|
|
89
|
-
stb = Stub.new
|
|
90
|
-
|
|
91
|
-
stb.upcase == "HeLLo"
|
|
92
|
-
|
|
93
|
-
alt = orig.stub(stb)
|
|
94
|
-
|
|
95
|
-
alt.upcase #=> "HeLLo"
|
|
96
|
-
|
|
97
|
-
obj.upcase #=> "HELLO"
|
|
98
|
-
|
|
99
|
-
This is using delegation, just as our last approach, but does so
|
|
100
|
-
with a reusable "stub module". To support direct stubbing as well,
|
|
101
|
-
we could use #extend, thus injecting singleton methods directly into
|
|
102
|
-
the object.
|
|
103
|
-
|
|
104
|
-
obj.extend(stb)
|
|
105
|
-
|
|
106
|
-
obj.upcase #=> "HeLLo"
|
|
107
|
-
|
|
108
|
-
obj.remove(stb)
|
|
109
|
-
|
|
110
|
-
We might be able to support the first approaches syntax too if we
|
|
111
|
-
support a default per-object Stub (not used unless at least one
|
|
112
|
-
direct stub is defined).
|
|
113
|
-
|
|
114
|
-
obj = "hello"
|
|
115
|
-
|
|
116
|
-
obj.stub.upcase == "HeLLo"
|
|
117
|
-
|
|
118
|
-
# implict obj.extend(obj.stub) here
|
|
119
|
-
|
|
120
|
-
obj.upcase #=> "HeLLo"
|
|
121
|
-
|
|
122
|
-
obj.remove # imples obj.remove(obj.stub)
|
|
123
|
-
|
|
124
|
-
QED.
|
|
125
|
-
|
data/doc/index.html
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
<HTML>
|
|
2
|
-
<HEAD>
|
|
3
|
-
<TITLE>Ruby Quarry</TITLE>
|
|
4
|
-
|
|
5
|
-
<LINK REL="SHORTCUT ICON" HREF="assets/images/rbrylmtrx.png"/>
|
|
6
|
-
<LINK href="assets/styles/index.css" rel="stylesheet" type="text/css"/>
|
|
7
|
-
|
|
8
|
-
<SCRIPT language="javascript" src="http://tigerops.org/libraries/jquery/jquery.js"></script>
|
|
9
|
-
|
|
10
|
-
<!-- SHJS -->
|
|
11
|
-
<script type="text/javascript" src="http://tigerops.org/libraries/shjs/sh_main.js"></script>
|
|
12
|
-
<script type="text/javascript" src="http://tigerops.org/libraries/shjs/lang/sh_ruby.js"></script>
|
|
13
|
-
<script type="text/javascript" src="http://tigerops.org/libraries/shjs/lang/sh_cpp.js"></script>
|
|
14
|
-
<script type="text/javascript" src="http://tigerops.org/libraries/shjs/lang/sh_sh.js"></script>
|
|
15
|
-
<link type="text/css" rel="stylesheet" href="http://tigerops.org/libraries/shjs/css/sh_bipolar.css">
|
|
16
|
-
|
|
17
|
-
<SCRIPT type="text/javascript">
|
|
18
|
-
$(document).ready(function() {
|
|
19
|
-
section('Home');
|
|
20
|
-
sh_highlightDocument();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
function section(n) {
|
|
24
|
-
$('#sectionHome').hide();
|
|
25
|
-
$('#sectionDownload').hide();
|
|
26
|
-
$('#sectionDocumentation').hide();
|
|
27
|
-
$('#sectionDevelopment').hide();
|
|
28
|
-
$('#section' + n).show();
|
|
29
|
-
};
|
|
30
|
-
</SCRIPT>
|
|
31
|
-
|
|
32
|
-
</HEAD>
|
|
33
|
-
<BODY>
|
|
34
|
-
|
|
35
|
-
<!-- SIDE BAR -->
|
|
36
|
-
|
|
37
|
-
<div id="aside" class="bkg">
|
|
38
|
-
<iframe id="tigerops" src="http://tigerops.org/ads/side-sm-blk.html"></iframe>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<!-- HEADER -->
|
|
42
|
-
|
|
43
|
-
<div id="header">
|
|
44
|
-
<div id="header_inner">
|
|
45
|
-
<div id="title" style="text-align: left;">
|
|
46
|
-
|
|
47
|
-
<div id="title0">r u b y</div>
|
|
48
|
-
<div id="title1">Q U A R R Y</div>
|
|
49
|
-
<div id="title2">BDD Specifications & Development Tools</div>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div id="menu">
|
|
53
|
-
<ul>
|
|
54
|
-
<li><a href="javascript: section('Home');">Welcome</a></li>
|
|
55
|
-
<li><a href="javascript: section('Download');">Download</a></li>
|
|
56
|
-
<li><a href="javascript: section('Documentation');">Documentation</a></li>
|
|
57
|
-
<li><a href="javascript: section('Development');">Development</a></li>
|
|
58
|
-
<!--
|
|
59
|
-
<li>·</li>
|
|
60
|
-
<li><a href="rdoc/index.html">API</a> </li>
|
|
61
|
-
<li><a href="https://rubyforge.org/projects/ratchets/">Devsite</a></li>
|
|
62
|
-
<li><a href="src/">Source</a></li>
|
|
63
|
-
-->
|
|
64
|
-
</ul>
|
|
65
|
-
</div>
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<!-- MAIN -->
|
|
71
|
-
|
|
72
|
-
<div id="main" class="bkg">
|
|
73
|
-
|
|
74
|
-
<!-- MAIN TEXT -->
|
|
75
|
-
<div id="container" class="bkg">
|
|
76
|
-
|
|
77
|
-
<div id="sectionHome">
|
|
78
|
-
<!-- <img class="section-img" src="assets/images/runneth.png" style="border: 1px dotted #ccc; margin-left: 15px;"/> -->
|
|
79
|
-
<img class="section-img" src="assets/images/icon/software.png" style="margin-left: 15px;"/>
|
|
80
|
-
|
|
81
|
-
<h1>Weclome to the <b class="red">Ruby Quarry</b>!</h1>
|
|
82
|
-
|
|
83
|
-
<p><b class="red">Ruby Quarry</b> is a developers testing and debuging suite.
|
|
84
|
-
It features a flexible BDD specification system and a number of other useful tools.</p>
|
|
85
|
-
|
|
86
|
-
<p>Quarry's BDD system is uniqe in two ways. First it utilizes Ruby's
|
|
87
|
-
Execption system to catch Assertions which are defined as <i>functors</i>. Eg.<p>
|
|
88
|
-
|
|
89
|
-
<pre class="sh_ruby">
|
|
90
|
-
require 'quarry/assert'
|
|
91
|
-
|
|
92
|
-
4.assert == 5
|
|
93
|
-
</pre>
|
|
94
|
-
|
|
95
|
-
<p>And secondly Quarry's sepcifications are completely free form. In fact, they
|
|
96
|
-
are an application of <i>literate programming</i>. Unlike other BDD spec
|
|
97
|
-
libraries, Quarry has no special DSL. Rather specifications are in the form
|
|
98
|
-
of markup text files (typically RDoc). A specification might look something like:</p>
|
|
99
|
-
|
|
100
|
-
<pre class="sh_ruby">
|
|
101
|
-
= Example Specification
|
|
102
|
-
|
|
103
|
-
Concerning the Number 5, it is not 4.
|
|
104
|
-
|
|
105
|
-
5.assert! == 4
|
|
106
|
-
|
|
107
|
-
But it is itself.
|
|
108
|
-
|
|
109
|
-
5.assert == 5
|
|
110
|
-
|
|
111
|
-
QED.
|
|
112
|
-
</pre>
|
|
113
|
-
|
|
114
|
-
<p>As you can see, the core assertion nomenclature is <code>assert</code>,
|
|
115
|
-
but we are considering how and if to support others such as
|
|
116
|
-
<code>should</code>, <code>must</code> and <code>does</code>.</p>
|
|
117
|
-
|
|
118
|
-
<p>Quarry also provides a flexible stubbing facility. The most basic example:</p>
|
|
119
|
-
|
|
120
|
-
<pre class="sh_ruby">
|
|
121
|
-
obj = "example"
|
|
122
|
-
|
|
123
|
-
obj.stub.literal(1) == "one"
|
|
124
|
-
obj.stub.literal(2) == "two"
|
|
125
|
-
|
|
126
|
-
obj.literal(1) #=> "one"
|
|
127
|
-
obj.literal(2) #=> "two"
|
|
128
|
-
</pre>
|
|
129
|
-
|
|
130
|
-
<p>We are are also working on a few other tools, include a breakpoint library,
|
|
131
|
-
a comment extraction and execution tool, a method probe / test spy,
|
|
132
|
-
which can be used to dip-down into a method and provide a readout of
|
|
133
|
-
the methods signitures.
|
|
134
|
-
</p>
|
|
135
|
-
|
|
136
|
-
<p>The library is currently considered <i>BETA</i>. There are still a few
|
|
137
|
-
aspects of the system to work out and polish. Howerver the system is
|
|
138
|
-
usable and has already become the test/spec system for a few projects.</p>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
<div id="sectionDownload">
|
|
142
|
-
<img class="section-img" src="assets/images/icon/download.gif" align="left"/>
|
|
143
|
-
|
|
144
|
-
<h1>Download & Install</h1>
|
|
145
|
-
|
|
146
|
-
<h2>Ruby Gems</h2>
|
|
147
|
-
|
|
148
|
-
<p>The easiest way to get Quarry is via RubyGems.</p>
|
|
149
|
-
|
|
150
|
-
<pre style="color: lightblue;">
|
|
151
|
-
$ sudo gem install quarry
|
|
152
|
-
</pre>
|
|
153
|
-
|
|
154
|
-
<h2>Tarball</h2>
|
|
155
|
-
|
|
156
|
-
<p>To install manually, you will need to have Ruby Setup installed.
|
|
157
|
-
You can get that from <a href="setup.rubyforge.org">here</a>. With that
|
|
158
|
-
in hand <a href="https://rubyforge.org/frs/?group_id=">download</a> the
|
|
159
|
-
latest Quarry tarball package from Rubyforge.</p>
|
|
160
|
-
|
|
161
|
-
<p>Unpack and run <code>sudo setup.rb</code> from within the package folder.
|
|
162
|
-
For example:</p>
|
|
163
|
-
|
|
164
|
-
<pre style="color: lightblue;">
|
|
165
|
-
$ tar -xvzf quarry-0.3.0.tgz
|
|
166
|
-
$ cd quarry-0.3.0
|
|
167
|
-
$ sudo setup.rb
|
|
168
|
-
</pre>
|
|
169
|
-
|
|
170
|
-
<p>Once installed, be sure to check out the documentation.</p>
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
<div id="sectionDocumentation">
|
|
174
|
-
<img class="section-img" src="assets/images/icon/license.png" align="left"/>
|
|
175
|
-
|
|
176
|
-
<h1 id="documentation"> Documentation </h1>
|
|
177
|
-
|
|
178
|
-
<p>The most amazing thing about Quarry specification is that they can be
|
|
179
|
-
prefectly renderable markup. To demostrate here are links to the
|
|
180
|
-
HTML rendered specification for Quarry itself.
|
|
181
|
-
</p>
|
|
182
|
-
|
|
183
|
-
<ul>
|
|
184
|
-
<li><a href="spec/stub.html">Stub Specification</a></li>
|
|
185
|
-
</ul>
|
|
186
|
-
|
|
187
|
-
<h2>RDoc API Documention</h2>
|
|
188
|
-
|
|
189
|
-
<p>For more a detailed code-oriented understanding of Quarry, the
|
|
190
|
-
<a href="rdoc/index.html">API documention</a> is also available.</p>
|
|
191
|
-
|
|
192
|
-
<h2>Tips and Tricks</h2>
|
|
193
|
-
|
|
194
|
-
<p><b>Quarry's Mocks are not like mocks in other BDD tools.</b> Mocks in
|
|
195
|
-
other libraries validate that methods return are invoked, how many times they
|
|
196
|
-
are invoked, and in what order. This creates overly tight coupling between
|
|
197
|
-
test and code --this is not validating behavior, but implementation.
|
|
198
|
-
Quarry's mock objects only validate return values. Nothing more.
|
|
199
|
-
So in effect a mock is stub with post-method assertions built-in.</p>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<div id="sectionDevelopment">
|
|
203
|
-
<img class="section-img" src="assets/images/icon/source.png" align="left"/>
|
|
204
|
-
|
|
205
|
-
<h1 id="development"> Development</h1>
|
|
206
|
-
|
|
207
|
-
<p>Development is orchistrated via Rubyforge. The site is
|
|
208
|
-
<a href="http://rubyforge.org/projects/quarry">http://rubyforge.org/projects/quarry</a>.
|
|
209
|
-
|
|
210
|
-
<p>You can use gitweb to
|
|
211
|
-
<a href="http://quarry.rubyforge.org/git?p=quarry.git;a=tree">browse the 'quarry' repository</a>.</p>
|
|
212
|
-
|
|
213
|
-
<h3>Anonymous Access</h3>
|
|
214
|
-
|
|
215
|
-
<p>To pull the quarry repository anonymously, use:</p>
|
|
216
|
-
|
|
217
|
-
<pre style="color: lightblue;">
|
|
218
|
-
$ git clone git://rubyforge.org/quarry.git
|
|
219
|
-
</pre>
|
|
220
|
-
|
|
221
|
-
<h3>Developer Access via Gitosis</h3>
|
|
222
|
-
|
|
223
|
-
<p>Registered Developers, the remote setting for the repository is:</p>
|
|
224
|
-
|
|
225
|
-
<pre style="color: lightblue;">
|
|
226
|
-
gitosis@rubyforge.org:quarry.git
|
|
227
|
-
</pre>
|
|
228
|
-
|
|
229
|
-
<p>If you use Quarry, contributions to it's improvement are very important and will be
|
|
230
|
-
sung many wonderous praises <span style="font-family: monospace;">;)</span>
|
|
231
|
-
If you'd like to contribute, please contact us via the
|
|
232
|
-
<a href="http://groups.google.com/group/tigerops-community?hl=en">Tiger Ops mailing list</a>.</p>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
<!-- FOOTER -->
|
|
239
|
-
|
|
240
|
-
<div id="footer" style="clear: both;">
|
|
241
|
-
<div>
|
|
242
|
-
<img src="assets/images/runneth.png" align="left" style="border: 1px solid black; margin-right: 20px;"/>
|
|
243
|
-
|
|
244
|
-
<!-- <img src="assets/images/icon/license.png" align="left" style="margin-bottom: 60px;"/> -->
|
|
245
|
-
|
|
246
|
-
<b>Ruby Quarry</b> Copyright © 2007,2008 Tiger Ops. <br/><br>
|
|
247
|
-
Ruby Quarry is distributed under the terms of the GPLv3.<br/>
|
|
248
|
-
|
|
249
|
-
<br/>
|
|
250
|
-
|
|
251
|
-
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS
|
|
252
|
-
OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
|
|
253
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
254
|
-
PARTICULAR PURPOSE.<br/> <br/>
|
|
255
|
-
<br/>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
|
|
259
|
-
</BODY>
|
|
260
|
-
</HTML>
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
<!--
|
|
264
|
-
b.p { color: #777799; }
|
|
265
|
-
b.r { color: #FF0033; }
|
|
266
|
-
|
|
267
|
-
td#slogon {
|
|
268
|
-
font-family: monospace;
|
|
269
|
-
vertical-align: middle; text-align: left;
|
|
270
|
-
color: gray; font-size: 12pt; padding-left: 10px;
|
|
271
|
-
white-space: nowrap; line-height: 12pt;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
<table style="padding-top: 900px;">
|
|
275
|
-
<tr>
|
|
276
|
-
<td id="slogon">
|
|
277
|
-
<b class="p">W H E N</b> <br/>
|
|
278
|
-
<b class="p">Y O U R</b> <br/>
|
|
279
|
-
<b class="r">R U B Y</b> <br/>
|
|
280
|
-
<b class="p">R U N N E T H</b> <br/>
|
|
281
|
-
<b class="p">O V E R</b>
|
|
282
|
-
</td>
|
|
283
|
-
</tr>
|
|
284
|
-
</table>
|
|
285
|
-
-->
|
data/doc/log/bstats/stats.html
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Quarry Code Statistics</title>
|
|
5
|
-
<style>
|
|
6
|
-
h2{margin: 5px 0;}
|
|
7
|
-
table{width: 95%;}
|
|
8
|
-
th{background: #dcc;}
|
|
9
|
-
td{padding: 5px;}
|
|
10
|
-
.basic_stats{margin: 0 auto; width: 800px;}
|
|
11
|
-
</style>
|
|
12
|
-
<link rel="stylesheet" type="text/css" href="stats.css"/>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<div class="basic_stats">
|
|
16
|
-
<h1>Quarry -- Basic Code Statistics</h1>
|
|
17
|
-
<table class="counts" border="1">
|
|
18
|
-
<tr><th colspan="9"><h2>Counts</h2></th></tr>
|
|
19
|
-
<tr><th>TYPE</th><th>Total</th><th>Code</th><th>-%-</th><th>Docs</th><th>-%-</th><th>Blank</th><th>-%-</th><th>Files</th></tr>
|
|
20
|
-
<tr><th>Source</th><td>1585</td><td>847</td><td>53%</td><td>409</td><td>25%</td><td>301</td><td>18%</td><td>18</td></tr>
|
|
21
|
-
<tr><th>Test</th><td>0</td><td>0</td><td>0%</td><td>0</td><td>0%</td><td>0</td><td>0%</td><td>0</td></tr>
|
|
22
|
-
<tr><th>Total</th><td>1585</td><td>847</td><td>53%</td><td>409</td><td>25%</td><td>301</td><td>18%</td><td>18</td></tr>
|
|
23
|
-
</table>
|
|
24
|
-
<br/>
|
|
25
|
-
<table class="ratios" border="1">
|
|
26
|
-
<tr><th colspan="6"><h2>Ratios</h2></th></tr>
|
|
27
|
-
<tr><th>x:1</th><th>Code</th><th>Docs</th><th>Blank</th><th>Test</th><th>Total</th></tr>
|
|
28
|
-
<tr><th>Code</th><td> 1.0</td><td> 2.1</td><td> 2.8</td><td> 30.2</td><td> 0.5</td></tr>
|
|
29
|
-
<tr><th>Docs</th><td> 0.5</td><td> 1.0</td><td> 1.4</td><td> 14.6</td><td> 0.3</td></tr>
|
|
30
|
-
<tr><th>Blank</th><td> 0.4</td><td> 0.7</td><td> 1.0</td><td> 10.8</td><td> 0.2</td></tr>
|
|
31
|
-
<tr><th>Test</th><td> 0.0</td><td> 0.1</td><td> 0.1</td><td> 1.0</td><td> 0.0</td></tr>
|
|
32
|
-
<tr><th>Total</th><td> 1.9</td><td> 3.9</td><td> 5.3</td><td> 56.6</td><td> 1.0</td></tr>
|
|
33
|
-
</table>
|
|
34
|
-
<br/>
|
|
35
|
-
<div class="date">Sat Nov 15 19:57:15 -0500 2008</div>
|
|
36
|
-
</div>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
39
|
-
|
data/doc/log/notes.xml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<notes>
|
|
2
|
-
<set label="TODO">
|
|
3
|
-
<file src="lib/quarry/stub/mock.rb">
|
|
4
|
-
<note line="16" type="TODO">TODO: Ruby has retry, but I need continue!</note>
|
|
5
|
-
<note line="77" type="TODO">TODO: Use Carats for #unmix.</note>
|
|
6
|
-
</file>
|
|
7
|
-
<file src="lib/quarry/stub/stub.rb">
|
|
8
|
-
<note line="75" type="TODO">TODO: Use Carats for #unmix.</note>
|
|
9
|
-
</file>
|
|
10
|
-
<file src="lib/quarry/spec/document.rb">
|
|
11
|
-
<note line="10" type="TODO">TODO: css and javascripts have fixed location
|
|
12
|
-
- need to make more flexible.</note>
|
|
13
|
-
<note line="62" type="TODO">TODO</note>
|
|
14
|
-
</file>
|
|
15
|
-
<file src="lib/quarry/extract.rb">
|
|
16
|
-
<note line="8" type="TODO">TODO:
|
|
17
|
-
- Should extract_block handle more than the first matching block?
|
|
18
|
-
- How can we handle embedded code in standard comments? Eg. #</note>
|
|
19
|
-
</file>
|
|
20
|
-
<file src="lib/quarry/spec/runner.rb">
|
|
21
|
-
<note line="73" type="TODO">TODO <-- plugin in here start (how to set?)
|
|
22
|
-
context.instance_eval(&spec.given) if spec.given</note>
|
|
23
|
-
<note line="97" type="TODO">TODO <-- plugin in here end
|
|
24
|
-
context.instance_eval(&spec.complete) if spec.complete</note>
|
|
25
|
-
<note line="108" type="TODO">TODO: Would spec.before + spec.code be better?</note>
|
|
26
|
-
</file>
|
|
27
|
-
<file src="lib/quarry/assert.rb">
|
|
28
|
-
<note line="58" type="TODO">TODO: Not sure about the raises here.</note>
|
|
29
|
-
<note line="85" type="TODO">TODO: Ultimately better messages would be nice.</note>
|
|
30
|
-
</file>
|
|
31
|
-
</set>
|
|
32
|
-
</notes>
|
data/doc/log/stats.html
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<html><head>
|
|
2
|
-
<title>Quarry Code Statistics</title>
|
|
3
|
-
<link rel="stylesheet" type="text/css" href="log.css"/>
|
|
4
|
-
</head><body>
|
|
5
|
-
<div class="basic_statistics">
|
|
6
|
-
<h1>Quarry -- Basic Code Statistics</h1>
|
|
7
|
-
<table class="counts" border="1">
|
|
8
|
-
<tr><th colspan="9"><h2>Code Counts</h2></th></tr>
|
|
9
|
-
<tr><th>TYPE</th><th>Total</th><th>Code</th><th>-%-</th><th>Docs</th><th>-%-</th><th>Blank</th><th>-%-</th><th>Files</th></tr>
|
|
10
|
-
<tr><th>Source</th><td>1259</td><td>620</td><td>49%</td><td>381</td><td>30%</td><td>230</td><td>18%</td><td>13</td></tr>
|
|
11
|
-
<tr><th>Test</th><td>66</td><td>50</td><td>3%</td><td>0</td><td>0%</td><td>16</td><td>1%</td><td>1</td></tr>
|
|
12
|
-
<tr><th>Total</th><td>1325</td><td>670</td><td>50%</td><td>381</td><td>28%</td><td>246</td><td>18%</td><td>14</td></tr>
|
|
13
|
-
</table>
|
|
14
|
-
<table class="ratios" border="1">
|
|
15
|
-
<tr><th colspan="6"><h2>Code Ratios</h2></th></tr>
|
|
16
|
-
<tr><th>RATIO</th><th>Code</th><th>Docs</th><th>Blank</th><th>Test</th><th>Total</th></tr>
|
|
17
|
-
<tr><th>Code</th><td> 1.0</td><td> 1.6</td><td> 2.7</td><td> 9.4</td><td> -</td></tr>
|
|
18
|
-
<tr><th>Docs</th><td> -</td><td> 1.0</td><td> 1.7</td><td> 5.8</td><td> -</td></tr>
|
|
19
|
-
<tr><th>Blank</th><td> -</td><td> -</td><td> 1.0</td><td> 3.5</td><td> -</td></tr>
|
|
20
|
-
<tr><th>Test</th><td> -</td><td> -</td><td> -</td><td> 1.0</td><td> -</td></tr>
|
|
21
|
-
<tr><th>Total</th><td> 2.0</td><td> 3.3</td><td> 5.5</td><td> 19.1</td><td> 1.0</td></tr>
|
|
22
|
-
</table>
|
|
23
|
-
<div class="date">Mon Oct 20 22:22:33 -0400 2008</div>
|
|
24
|
-
</div>
|
|
25
|
-
</body></html>
|
data/doc/log/stats.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Quarry Statistics
|
|
2
|
-
Thu Aug 21 13:19:30 -0400 2008
|
|
3
|
-
|
|
4
|
-
TYPE Total Code -%- Docs -%- Blank -%- Files
|
|
5
|
-
Source 873 380 43% 282 32% 183 20% 10
|
|
6
|
-
Test 0 0 0% 0 0% 0 0% 0
|
|
7
|
-
Total 873 380 43% 282 32% 183 20% 10
|
|
8
|
-
|
|
9
|
-
RATIO Code Docs Blank Test Total
|
|
10
|
-
Code 1.0 1.3 2.1 13.6 -
|
|
11
|
-
Docs - 1.0 1.5 10.1 -
|
|
12
|
-
Blank - - 1.0 6.5 -
|
|
13
|
-
Test - - - 1.0 -
|
|
14
|
-
Total 2.3 3.1 4.8 31.2 1.0
|
data/doc/log/syntax.log
DELETED
|
File without changes
|