gorgyrella 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/gorgyrella.rb +1 -1
- data/lib/gorgyrella/parser.rb +129 -128
- data/lib/gorgyrella/parser.rl +3 -2
- data/lib/webby/gorgyrella_helper.rb.~1~ +30 -0
- data/webby/Sitefile +5 -1
- data/webby/content/css/style.css +280 -0
- data/webby/content/faq/index.txt +10 -0
- data/webby/content/favicon.ico +0 -0
- data/webby/content/img/Thumbs.db +0 -0
- data/webby/content/img/bg_menu.gif +0 -0
- data/webby/content/img/bg_t.gif +0 -0
- data/webby/content/img/bullet.gif +0 -0
- data/webby/content/img/logo.png +0 -0
- data/webby/content/img/logo_.jpg +0 -0
- data/webby/content/img/top_bg.gif +0 -0
- data/webby/content/img/top_bg_.gif +0 -0
- data/webby/content/index.txt +2 -7
- data/webby/content/installation/index.txt +24 -0
- data/webby/layouts/web.txt +54 -32
- data/webby/output/css/style.css +275 -0
- data/webby/output/faq/index.html +56 -0
- data/webby/output/favicon.ico +0 -0
- data/webby/output/img/Thumbs.db +0 -0
- data/webby/output/img/bg_menu.gif +0 -0
- data/webby/output/img/bg_t.gif +0 -0
- data/webby/output/img/bullet.gif +0 -0
- data/webby/output/img/logo.png +0 -0
- data/webby/output/img/logo_.jpg +0 -0
- data/webby/output/img/top_bg.gif +0 -0
- data/webby/output/img/top_bg_.gif +0 -0
- data/webby/output/index.html +51 -36
- data/webby/output/installation/index.html +63 -0
- metadata +29 -197
- data/.bzr/README +0 -3
- data/.bzr/branch-format +0 -1
- data/.bzr/branch/branch.conf +0 -2
- data/.bzr/branch/format +0 -1
- data/.bzr/branch/last-revision +0 -1
- data/.bzr/branch/tags +0 -0
- data/.bzr/checkout/conflicts +0 -1
- data/.bzr/checkout/dirstate +0 -0
- data/.bzr/checkout/format +0 -1
- data/.bzr/checkout/merge-hashes +0 -33
- data/.bzr/repository/format +0 -1
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.iix +0 -0
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.rix +0 -0
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.six +0 -5
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.tix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.iix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.rix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.six +0 -5
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.tix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.iix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.rix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.six +0 -5
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.tix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.iix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.rix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.six +0 -5
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.tix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.iix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.rix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.six +0 -5
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.tix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.iix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.rix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.six +0 -5
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.tix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.iix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.rix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.six +0 -5
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.tix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.iix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.pack +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.rix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.six +0 -5
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.tix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.iix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.pack +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.rix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.six +0 -5
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.tix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.iix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.pack +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.rix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.six +0 -5
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.tix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.iix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.pack +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.rix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.six +0 -5
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.tix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.iix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.pack +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.rix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.six +0 -5
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.tix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.iix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.pack +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.rix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.six +0 -5
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.tix +0 -0
- data/.bzr/repository/pack-names +0 -0
- data/.bzr/repository/packs/7433d7509bfad4e7de61716fd159a28e.pack +0 -0
- data/.bzr/repository/packs/747331f41951a7f9509b3190e9082de2.pack +0 -0
- data/.bzr/repository/packs/94ae76525de86acde2f4722e88fec764.pack +0 -0
- data/.bzr/repository/packs/ae5f61661ebb8f30600ce7443b2ea000.pack +0 -0
- data/.bzr/repository/packs/e34ba77fcb41bb254463c3c177123bb1.pack +0 -0
- data/.bzr/repository/packs/e409e77b2da885ef4e5bc5089a04e60e.pack +0 -0
- data/.bzr/repository/packs/fa740d26e5ddc0570df1ec65a7a2af1c.pack +0 -0
- data/.bzrignore +0 -5
- data/gorgyrella-manual-0-0-1.pdf +0 -0
- data/gorgyrella.gemspec +0 -36
- data/spec/builder_spec.rb +0 -7
- data/spec/composer_spec.rb +0 -70
- data/spec/data/coderay.css +0 -126
- data/spec/data/example-python.html +0 -24
- data/spec/data/example-ruby.html +0 -30
- data/spec/data/pygments.css +0 -59
- data/spec/data/test.py +0 -21
- data/spec/data/test.rb +0 -13
- data/spec/data/ultraviolet/css/active4d.css +0 -114
- data/spec/data/ultraviolet/css/all_hallows_eve.css +0 -72
- data/spec/data/ultraviolet/css/amy.css +0 -147
- data/spec/data/ultraviolet/css/blackboard.css +0 -88
- data/spec/data/ultraviolet/css/brilliance_black.css +0 -605
- data/spec/data/ultraviolet/css/brilliance_dull.css +0 -599
- data/spec/data/ultraviolet/css/cobalt.css +0 -149
- data/spec/data/ultraviolet/css/dawn.css +0 -121
- data/spec/data/ultraviolet/css/eiffel.css +0 -121
- data/spec/data/ultraviolet/css/espresso_libre.css +0 -109
- data/spec/data/ultraviolet/css/idle.css +0 -62
- data/spec/data/ultraviolet/css/iplastic.css +0 -80
- data/spec/data/ultraviolet/css/lazy.css +0 -73
- data/spec/data/ultraviolet/css/mac_classic.css +0 -123
- data/spec/data/ultraviolet/css/magicwb_amiga.css +0 -104
- data/spec/data/ultraviolet/css/pastels_on_dark.css +0 -188
- data/spec/data/ultraviolet/css/slush_poppies.css +0 -85
- data/spec/data/ultraviolet/css/spacecadet.css +0 -51
- data/spec/data/ultraviolet/css/sunburst.css +0 -180
- data/spec/data/ultraviolet/css/twilight.css +0 -137
- data/spec/data/ultraviolet/css/zenburnesque.css +0 -91
- data/spec/data/unmarked.rb +0 -32
- data/spec/gorgyrella_spec.rb +0 -7
- data/spec/parser_spec.rb +0 -73
- data/spec/spec_helper.rb +0 -13
- data/spec/tmp/example-python-processed-coderay.html +0 -31
- data/spec/tmp/example-python-processed-pygments.html +0 -31
- data/spec/tmp/example-python-processed-ultraviolet.html +0 -31
- data/spec/tmp/example-ruby-processed-coderay.html +0 -31
- data/spec/tmp/example-ruby-processed-pygments.html +0 -37
- data/spec/tmp/example-ruby-processed-ultraviolet.html +0 -33
- data/webby/.DS_Store +0 -0
- data/webby/content/css/blueprint/ie.css +0 -26
- data/webby/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/readme.txt +0 -32
- data/webby/content/css/blueprint/plugins/buttons/screen.css +0 -97
- data/webby/content/css/blueprint/plugins/fancy-type/readme.txt +0 -14
- data/webby/content/css/blueprint/plugins/fancy-type/screen.css +0 -71
- data/webby/content/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/readme.txt +0 -18
- data/webby/content/css/blueprint/plugins/link-icons/screen.css +0 -40
- data/webby/content/css/blueprint/plugins/rtl/readme.txt +0 -10
- data/webby/content/css/blueprint/plugins/rtl/screen.css +0 -109
- data/webby/content/css/blueprint/print.css +0 -30
- data/webby/content/css/blueprint/screen.css +0 -251
- data/webby/content/css/blueprint/src/forms.css +0 -49
- data/webby/content/css/blueprint/src/grid.css +0 -212
- data/webby/content/css/blueprint/src/grid.png +0 -0
- data/webby/content/css/blueprint/src/ie.css +0 -59
- data/webby/content/css/blueprint/src/print.css +0 -85
- data/webby/content/css/blueprint/src/reset.css +0 -38
- data/webby/content/css/blueprint/src/typography.css +0 -105
- data/webby/content/css/site.css +0 -78
- data/webby/content/gorgyrella-manual.erb +0 -33
- data/webby/output/css/blueprint/ie.css +0 -26
- data/webby/output/css/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/icons/key.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/readme.txt +0 -32
- data/webby/output/css/blueprint/plugins/buttons/screen.css +0 -97
- data/webby/output/css/blueprint/plugins/fancy-type/readme.txt +0 -14
- data/webby/output/css/blueprint/plugins/fancy-type/screen.css +0 -71
- data/webby/output/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/readme.txt +0 -18
- data/webby/output/css/blueprint/plugins/link-icons/screen.css +0 -40
- data/webby/output/css/blueprint/plugins/rtl/readme.txt +0 -10
- data/webby/output/css/blueprint/plugins/rtl/screen.css +0 -109
- data/webby/output/css/blueprint/print.css +0 -30
- data/webby/output/css/blueprint/screen.css +0 -251
- data/webby/output/css/blueprint/src/forms.css +0 -49
- data/webby/output/css/blueprint/src/grid.css +0 -212
- data/webby/output/css/blueprint/src/grid.png +0 -0
- data/webby/output/css/blueprint/src/ie.css +0 -59
- data/webby/output/css/blueprint/src/print.css +0 -85
- data/webby/output/css/blueprint/src/reset.css +0 -38
- data/webby/output/css/blueprint/src/typography.css +0 -105
- data/webby/output/css/site.css +0 -62
- data/webby/output/gorgyrella-manual.aux +0 -17
- data/webby/output/gorgyrella-manual.erb +0 -51
- data/webby/output/gorgyrella-manual.log +0 -271
- data/webby/output/gorgyrella-manual.out +0 -2
- data/webby/output/gorgyrella-manual.pdf +0 -0
- data/webby/output/gorgyrella-manual.tex +0 -191
- data/webby/tasks/latex.rake +0 -14
@@ -1,91 +0,0 @@
|
|
1
|
-
pre.zenburnesque .InheritedClass {
|
2
|
-
}
|
3
|
-
pre.zenburnesque .TypeName {
|
4
|
-
color: #F09040;
|
5
|
-
}
|
6
|
-
pre.zenburnesque .FloatingPointPrefixOperators {
|
7
|
-
text-decoration: underline;
|
8
|
-
}
|
9
|
-
pre.zenburnesque .Number {
|
10
|
-
color: #22C0FF;
|
11
|
-
}
|
12
|
-
pre.zenburnesque .Directive {
|
13
|
-
font-weight: bold;
|
14
|
-
}
|
15
|
-
pre.zenburnesque .LibraryVariable {
|
16
|
-
}
|
17
|
-
pre.zenburnesque .Storage {
|
18
|
-
}
|
19
|
-
pre.zenburnesque .line-numbers {
|
20
|
-
background-color: #A0A0C0;
|
21
|
-
color: #000000;
|
22
|
-
}
|
23
|
-
pre.zenburnesque .LineNumberDirectives {
|
24
|
-
text-decoration: underline;
|
25
|
-
}
|
26
|
-
pre.zenburnesque .TagName {
|
27
|
-
}
|
28
|
-
pre.zenburnesque .StorageTypes {
|
29
|
-
color: #6080FF;
|
30
|
-
}
|
31
|
-
pre.zenburnesque .Operators {
|
32
|
-
color: #FFFFA0;
|
33
|
-
}
|
34
|
-
pre.zenburnesque {
|
35
|
-
background-color: #404040;
|
36
|
-
color: #DEDEDE;
|
37
|
-
}
|
38
|
-
pre.zenburnesque .LibraryConstant {
|
39
|
-
}
|
40
|
-
pre.zenburnesque .VariantTypes {
|
41
|
-
color: #4080A0;
|
42
|
-
}
|
43
|
-
pre.zenburnesque .Characters {
|
44
|
-
color: #FF8080;
|
45
|
-
}
|
46
|
-
pre.zenburnesque .FunctionArgument {
|
47
|
-
}
|
48
|
-
pre.zenburnesque .LanguageKeyword {
|
49
|
-
color: #FFFFA0;
|
50
|
-
}
|
51
|
-
pre.zenburnesque .BuiltInConstant {
|
52
|
-
}
|
53
|
-
pre.zenburnesque .FloatingPointNumbers {
|
54
|
-
text-decoration: underline;
|
55
|
-
}
|
56
|
-
pre.zenburnesque .ClassTypeName {
|
57
|
-
color: #F4A020;
|
58
|
-
}
|
59
|
-
pre.zenburnesque .TypeName1 {
|
60
|
-
color: #FFE000;
|
61
|
-
}
|
62
|
-
pre.zenburnesque .ModuleKeyword {
|
63
|
-
font-weight: bold;
|
64
|
-
color: #FF8000;
|
65
|
-
}
|
66
|
-
pre.zenburnesque .Invalid {
|
67
|
-
}
|
68
|
-
pre.zenburnesque .LibraryClassType {
|
69
|
-
}
|
70
|
-
pre.zenburnesque .LibraryFunction {
|
71
|
-
}
|
72
|
-
pre.zenburnesque .TagAttribute {
|
73
|
-
}
|
74
|
-
pre.zenburnesque .FloatingPointInfixOperators {
|
75
|
-
text-decoration: underline;
|
76
|
-
}
|
77
|
-
pre.zenburnesque .UserDefinedConstant {
|
78
|
-
}
|
79
|
-
pre.zenburnesque .String {
|
80
|
-
color: #FF2020;
|
81
|
-
}
|
82
|
-
pre.zenburnesque .FunctionName {
|
83
|
-
font-weight: bold;
|
84
|
-
color: #FFCC66;
|
85
|
-
}
|
86
|
-
pre.zenburnesque .Variable {
|
87
|
-
}
|
88
|
-
pre.zenburnesque .Comment {
|
89
|
-
color: #709070;
|
90
|
-
font-style: italic;
|
91
|
-
}
|
data/spec/data/unmarked.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'surpass'
|
3
|
-
|
4
|
-
book = Workbook.new(__FILE__.gsub(/rb$/, "xls"))
|
5
|
-
sheet = book.add_sheet
|
6
|
-
|
7
|
-
# Passing true for the style parameter to write will invoke autoformatting.
|
8
|
-
sheet.write(0, 0, "Hello World!", true)
|
9
|
-
sheet.write(1, 0, 1, true)
|
10
|
-
sheet.write(2, 0, 1.0, true)
|
11
|
-
sheet.write(3, 0, Date.today, true)
|
12
|
-
sheet.write(4, 0, DateTime.now, true)
|
13
|
-
sheet.write(5, 0, Time.now, true)
|
14
|
-
|
15
|
-
array_of_arrays = [
|
16
|
-
[1, 2, 3],
|
17
|
-
[1.0, 2.0, 3.0],
|
18
|
-
[Date.today, DateTime.now],
|
19
|
-
%w{a b c}
|
20
|
-
]
|
21
|
-
|
22
|
-
# Writing arrays will automatically autoformat.
|
23
|
-
sheet.write(7, 0, "With autoformat:")
|
24
|
-
sheet.write_arrays(8, 0, array_of_arrays)
|
25
|
-
|
26
|
-
# Unless you specify your own format, or nil for a generic default.
|
27
|
-
sheet.write(13, 0, "Without autoformat:")
|
28
|
-
sheet.write_arrays(14, 0, array_of_arrays, nil)
|
29
|
-
|
30
|
-
sheet.set_column_widths(0..2, 20)
|
31
|
-
|
32
|
-
book.save
|
data/spec/gorgyrella_spec.rb
DELETED
data/spec/parser_spec.rb
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), %w[spec_helper])
|
2
|
-
|
3
|
-
def parse_text(text)
|
4
|
-
Gorgyrella::Parser.run_machine(text)
|
5
|
-
end
|
6
|
-
|
7
|
-
def is_junk(text)
|
8
|
-
builder = parse_text(text)
|
9
|
-
builder.sections.last[:lines] === [[1, text]]
|
10
|
-
end
|
11
|
-
|
12
|
-
describe Gorgyrella::Parser, "error handling" do
|
13
|
-
it "should raise an error when an invalid command is passed" do
|
14
|
-
lambda { parse_text("### @x") }.should raise_error(/an error occurred parsing character 5/)
|
15
|
-
lambda { parse_text("%%% @x") }.should raise_error(/an error occurred parsing character 5/)
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should raise an error when an include does not have a filename" do
|
19
|
-
lambda { parse_text("### @include") }.should raise_error(/an error occurred parsing character 12/)
|
20
|
-
lambda { parse_text("%%% @include") }.should raise_error(/an error occurred parsing character 12/)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
describe Gorgyrella::Parser, "parsing general text" do
|
25
|
-
it "should ignore things that aren't commands" do
|
26
|
-
["### \n", "%%\n"].each do |s|
|
27
|
-
is_junk(s).should be_true
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
it "should append text which is not commands to lines" do
|
32
|
-
builder = parse_text("junk")
|
33
|
-
builder.sections.last[:lines].should eql([[1, "junk"]])
|
34
|
-
end
|
35
|
-
|
36
|
-
it "should append text which is not commands but starts like one" do
|
37
|
-
builder = parse_text("## @ fooled you!")
|
38
|
-
builder.sections.last[:lines].should eql([[1, "## @ fooled you!"]])
|
39
|
-
|
40
|
-
builder = parse_text("%% @ fooled you!")
|
41
|
-
builder.sections.last[:lines].should eql([[1, "%% @ fooled you!"]])
|
42
|
-
end
|
43
|
-
|
44
|
-
it "should not append commands to lines" do
|
45
|
-
builder = parse_text("### @end")
|
46
|
-
builder.sections.last[:lines].should eql([])
|
47
|
-
end
|
48
|
-
|
49
|
-
it "should be able to parse a string of length 1" do
|
50
|
-
builder = Gorgyrella::Parser.run_machine("x\n")
|
51
|
-
builder.sections.last[:lines].should eql([[1, "x"], [2, ""]])
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
describe Gorgyrella::Parser, "parsing commands" do
|
56
|
-
it "should parse a command where section is an identifier" do
|
57
|
-
builder = Gorgyrella::Parser.run_machine(%{### @include "my filename.txt" abc latex ruby})
|
58
|
-
st = builder.sections.last
|
59
|
-
st[:language].should eql("ruby")
|
60
|
-
st[:format].should eql("latex")
|
61
|
-
st[:section].should eql("abc")
|
62
|
-
st[:file].should eql("my filename.txt")
|
63
|
-
end
|
64
|
-
|
65
|
-
it "should parse a command where section is a string" do
|
66
|
-
builder = Gorgyrella::Parser.run_machine(%{### @include "filename.txt" "my spacey section"})
|
67
|
-
st = builder.sections.last
|
68
|
-
st[:section].should eql("my spacey section")
|
69
|
-
st[:file].should eql("filename.txt")
|
70
|
-
st[:language].should be_nil
|
71
|
-
st[:format].should be_nil
|
72
|
-
end
|
73
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require File.expand_path(
|
2
|
-
File.join(File.dirname(__FILE__), %w[.. lib gorgyrella]))
|
3
|
-
|
4
|
-
Spec::Runner.configure do |config|
|
5
|
-
# == Mock Framework
|
6
|
-
#
|
7
|
-
# RSpec uses it's own mocking framework by default. If you prefer to
|
8
|
-
# use mocha, flexmock or RR, uncomment the appropriate line:
|
9
|
-
#
|
10
|
-
# config.mock_with :mocha
|
11
|
-
# config.mock_with :flexmock
|
12
|
-
# config.mock_with :rr
|
13
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
|
10
|
-
if __name__=='__main__':
|
11
|
-
print "my name is main"
|
12
|
-
a = MyClass()
|
13
|
-
|
14
|
-
|
15
|
-
<p>Another test as raw text.</p>
|
16
|
-
<pre>
|
17
|
-
|
18
|
-
class MyClass:
|
19
|
-
def __init__(self):
|
20
|
-
pass
|
21
|
-
|
22
|
-
</pre>
|
23
|
-
|
24
|
-
<p>And again with html format</p>
|
25
|
-
<pre>
|
26
|
-
def main(self, args):
|
27
|
-
pass
|
28
|
-
|
29
|
-
</pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
<div class="highlight"><pre><span class="k">if</span> <span class="n">__name__</span><span class="o">==</span><span class="s">'__main__'</span><span class="p">:</span>
|
10
|
-
<span class="k">print</span> <span class="s">"my name is main"</span>
|
11
|
-
<span class="n">a</span> <span class="o">=</span> <span class="n">MyClass</span><span class="p">()</span>
|
12
|
-
</pre></div>
|
13
|
-
|
14
|
-
|
15
|
-
<p>Another test as raw text.</p>
|
16
|
-
<pre>
|
17
|
-
class MyClass:
|
18
|
-
def __init__(self):
|
19
|
-
pass
|
20
|
-
|
21
|
-
</pre>
|
22
|
-
|
23
|
-
<p>And again with html format</p>
|
24
|
-
<pre>
|
25
|
-
<div class="highlight"><pre> <span class="k">def</span> <span class="nf">main</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">args</span><span class="p">):</span>
|
26
|
-
<span class="k">pass</span>
|
27
|
-
</pre></div>
|
28
|
-
|
29
|
-
</pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
<pre class="amy"><span class="line-numbers"> 1 </span>
|
10
|
-
<span class="line-numbers"> 2 </span> <span class="ControlKeyword">if</span> __name__<span class="KeywordOperator">==</span><span class="String"><span class="Punctuation">'</span>__main__<span class="Punctuation">'</span></span>:
|
11
|
-
<span class="line-numbers"> 3 </span> <span class="Keyword">print</span> <span class="String"><span class="Punctuation">"</span>my name is main<span class="Punctuation">"</span></span>
|
12
|
-
<span class="line-numbers"> 4 </span> a <span class="KeywordOperator">=</span> MyClass<span class="Punctuation">(</span><span class="Punctuation">)</span>
|
13
|
-
</pre>
|
14
|
-
|
15
|
-
<p>Another test as raw text.</p>
|
16
|
-
<pre>
|
17
|
-
|
18
|
-
class MyClass:
|
19
|
-
def __init__(self):
|
20
|
-
pass
|
21
|
-
|
22
|
-
</pre>
|
23
|
-
|
24
|
-
<p>And again with html format</p>
|
25
|
-
<pre>
|
26
|
-
<pre class="amy"><span class="line-numbers"> 1 </span> <span class="Storage">def</span> <span class="FunctionName">main</span><span class="Punctuation">(</span><span class="FunctionArgument">self</span><span class="Punctuation">,</span> <span class="FunctionArgument">args</span><span class="Punctuation">)</span><span class="Punctuation">:</span>
|
27
|
-
<span class="line-numbers"> 2 </span> <span class="ControlKeyword">pass</span>
|
28
|
-
</pre>
|
29
|
-
</pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
<span class="c">__END__</span>
|
10
|
-
|
11
|
-
|
12
|
-
<p>Another test as raw text.</p>
|
13
|
-
<pre>
|
14
|
-
class MyClass
|
15
|
-
</pre>
|
16
|
-
|
17
|
-
<p>And again with html format</p>
|
18
|
-
<pre>
|
19
|
-
<span class="r">def</span> <span class="fu">main</span>(args)
|
20
|
-
puts <span class="s"><span class="dl">"</span><span class="k">hi!</span><span class="dl">"</span></span>
|
21
|
-
<span class="r">end</span>
|
22
|
-
</pre>
|
23
|
-
|
24
|
-
<p>And again to trigger cache</p>
|
25
|
-
<pre>
|
26
|
-
<span class="r">def</span> <span class="fu">main</span>(args)
|
27
|
-
puts <span class="s"><span class="dl">"</span><span class="k">hi!</span><span class="dl">"</span></span>
|
28
|
-
<span class="r">end</span>
|
29
|
-
</pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
<div class="highlight"><pre><span class="cp">__END__</span>
|
10
|
-
</pre></div>
|
11
|
-
|
12
|
-
|
13
|
-
<p>Another test as raw text.</p>
|
14
|
-
<pre>
|
15
|
-
class MyClass
|
16
|
-
|
17
|
-
</pre>
|
18
|
-
|
19
|
-
<p>And again with html format</p>
|
20
|
-
<pre>
|
21
|
-
<div class="highlight"><pre> <span class="k">def</span> <span class="nf">main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
|
22
|
-
<span class="nb">puts</span> <span class="s2">"hi!"</span>
|
23
|
-
<span class="k">end</span>
|
24
|
-
</pre></div>
|
25
|
-
|
26
|
-
</pre>
|
27
|
-
|
28
|
-
<p>And again to trigger cache</p>
|
29
|
-
<pre>
|
30
|
-
<div class="highlight"><pre> <span class="k">def</span> <span class="nf">main</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
|
31
|
-
<span class="nb">puts</span> <span class="s2">"hi!"</span>
|
32
|
-
<span class="k">end</span>
|
33
|
-
</pre></div>
|
34
|
-
|
35
|
-
</pre>
|
36
|
-
</body>
|
37
|
-
</html>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<link rel="stylesheet" href="../data/pygments.css" type="text/css" media="all" charset="utf-8">
|
4
|
-
<link rel="stylesheet" href="../data/coderay.css" type="text/css" media="all" charset="utf-8">
|
5
|
-
<link rel="stylesheet" href="../data/ultraviolet/css/amy.css" type="text/css" media="all" charset="utf-8">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<p>Here's a test.</p>
|
9
|
-
<pre class="amy"><span class="line-numbers"> 1 </span> <span class="String">__END__</span>
|
10
|
-
</pre>
|
11
|
-
|
12
|
-
<p>Another test as raw text.</p>
|
13
|
-
<pre>
|
14
|
-
class MyClass
|
15
|
-
</pre>
|
16
|
-
|
17
|
-
<p>And again with html format</p>
|
18
|
-
<pre>
|
19
|
-
<pre class="amy"><span class="line-numbers"> 1 </span> <span class="ControlKeyword">def</span> <span class="FunctionName">main</span><span class="Punctuation">(</span><span class="FunctionArgument">args</span><span class="Punctuation">)</span>
|
20
|
-
<span class="line-numbers"> 2 </span> puts <span class="String"><span class="Punctuation">"</span>hi!<span class="Punctuation">"</span></span>
|
21
|
-
<span class="line-numbers"> 3 </span> <span class="ControlKeyword">end</span>
|
22
|
-
</pre>
|
23
|
-
</pre>
|
24
|
-
|
25
|
-
<p>And again to trigger cache</p>
|
26
|
-
<pre>
|
27
|
-
<pre class="amy"><span class="line-numbers"> 1 </span> <span class="ControlKeyword">def</span> <span class="FunctionName">main</span><span class="Punctuation">(</span><span class="FunctionArgument">args</span><span class="Punctuation">)</span>
|
28
|
-
<span class="line-numbers"> 2 </span> puts <span class="String"><span class="Punctuation">"</span>hi!<span class="Punctuation">"</span></span>
|
29
|
-
<span class="line-numbers"> 3 </span> <span class="ControlKeyword">end</span>
|
30
|
-
</pre>
|
31
|
-
</pre>
|
32
|
-
</body>
|
33
|
-
</html>
|
data/webby/.DS_Store
DELETED
Binary file
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/* -----------------------------------------------------------------------
|
2
|
-
|
3
|
-
|
4
|
-
Blueprint CSS Framework 0.8
|
5
|
-
http://blueprintcss.org
|
6
|
-
|
7
|
-
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
-
* See README for instructions on how to use Blueprint.
|
9
|
-
* For credits and origins, see AUTHORS.
|
10
|
-
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
-
|
12
|
-
----------------------------------------------------------------------- */
|
13
|
-
|
14
|
-
/* ie.css */
|
15
|
-
body {text-align:center;}
|
16
|
-
.container {text-align:left;}
|
17
|
-
* html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {overflow-x:hidden;}
|
18
|
-
* html legend {margin:-18px -8px 16px 0;padding:0;}
|
19
|
-
ol {margin-left:2em;}
|
20
|
-
sup {vertical-align:text-top;}
|
21
|
-
sub {vertical-align:text-bottom;}
|
22
|
-
html>body p code {*white-space:normal;}
|
23
|
-
hr {margin:-8px auto 11px;}
|
24
|
-
.clearfix, .container {display:inline-block;}
|
25
|
-
* html .clearfix, * html .container {height:1%;}
|
26
|
-
fieldset {padding-top:0;}
|