codex 1.0.2 → 1.1.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/History.txt +31 -0
- data/Manifest.txt +83 -62
- data/Rakefile +2 -0
- data/app_generators/codex/codex_generator.rb +35 -20
- data/app_generators/codex/templates/Rakefile +14 -53
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSS.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CSharp.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CollapseCode.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Cpp.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/CrashTest.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Delphi.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/FirstLine.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Index.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Java.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/JavaScript.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/NoControls.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/NoGutter.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/PHP.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Python.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Ruby.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/SQL.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/clipboard.swf +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCSharp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCpp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushCss.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushDelphi.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushJScript.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushJava.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushPhp.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushPython.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushRuby.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushSql.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushVb.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shBrushXml.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shCore.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Scripts/shCore.uncompressed.js +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/ShowColumns.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/SmartTabs.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Styles/SyntaxHighlighter.css +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Styles/TestPages.css +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/Templates/Test.dwt +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/VB.html +0 -0
- data/app_generators/codex/templates/{dp.SyntaxHighlighter → assets/dp.SyntaxHighlighter}/XML.html +0 -0
- data/{lib → app_generators/codex/templates/assets}/stylesheets/pressie.css +10 -7
- data/{lib → app_generators/codex/templates/assets}/stylesheets/print.css +0 -0
- data/{lib → app_generators/codex/templates/assets}/stylesheets/ruby.png +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/blank.gif +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/bodybg.gif +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/framing.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/iepngfix.htc +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/opera.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/outline.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/pretty.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/print.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/s5-core.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/slides.css +0 -0
- data/app_generators/codex/templates/{ui → assets/ui}/default/slides.js +0 -0
- data/app_generators/codex/templates/bin/build_all.rb +4 -3
- data/app_generators/codex/templates/code/graphviz/graph.dot +13 -0
- data/app_generators/codex/templates/{slides → config}/metadata.yml +1 -0
- data/app_generators/codex/templates/content/basics.textile +42 -0
- data/app_generators/codex/templates/{slides/building.slides → content/building.textile} +2 -2
- data/app_generators/codex/templates/{slides/example.slides → content/example.textile} +2 -1
- data/app_generators/codex/templates/content/graphviz.textile +35 -0
- data/app_generators/codex/templates/{slides/including_code.slides → content/including_code.textile} +9 -6
- data/app_generators/codex/templates/content/including_tex.textile +32 -0
- data/app_generators/codex/templates/{slides/table_of_contents.slides → content/table_of_contents.textile} +9 -0
- data/app_generators/codex/templates/content/user_defined.textile +83 -0
- data/app_generators/codex/templates/filters/example_filter.rb +13 -0
- data/app_generators/codex/templates/post_processors/change_code_urls.rb +16 -0
- data/app_generators/codex/templates/post_processors/upcase_titles.rb +15 -0
- data/app_generators/codex/templates/readme.txt +1 -1
- data/app_generators/codex/templates/templates/layout.erb +67 -0
- data/bin/codex +0 -0
- data/codex.gemspec +20 -7
- data/config/hoe.rb +2 -1
- data/config/requirements.rb +1 -1
- data/lib/codex.rb +16 -4
- data/lib/codex/content.rb +7 -151
- data/lib/codex/filter.rb +101 -0
- data/lib/codex/filters/code_filter.rb +92 -0
- data/lib/codex/filters/graphviz_filter.rb +112 -0
- data/lib/codex/filters/ritex_filter.rb +16 -0
- data/lib/codex/post_processor.rb +55 -0
- data/lib/codex/post_processors/01_slides_processor.rb +8 -0
- data/lib/codex/post_processors/02_add_title_slides.rb +11 -0
- data/lib/codex/pressie.rb +10 -97
- data/lib/codex/rake/codextask.rb +93 -0
- data/lib/codex/template_handler.rb +29 -0
- data/lib/codex/version.rb +2 -2
- data/test/codex/post_processor/test_add_title_slides_processor.rb +41 -0
- data/test/codex/post_processor/test_post_processors.rb +42 -0
- data/test/codex/post_processor/test_slides_processor.rb +31 -0
- data/test/codex/rake/test_codextask.rb +35 -0
- data/test/codex/test_pressie.rb +24 -0
- data/test/codex/test_template_handler.rb +28 -0
- data/test/test_codex_generator.rb +20 -26
- data/test/test_filter.rb +14 -0
- data/test/test_helper.rb +33 -1
- metadata +106 -70
- data/app_generators/codex/templates/bin/postprocess_all.rb +0 -5
- data/app_generators/codex/templates/bin/pressie.rb +0 -7
- data/app_generators/codex/templates/slides/basics.slides +0 -37
- data/test/test_codex.rb +0 -11
- data/test/test_generator_helper.rb +0 -29
data/lib/codex/version.rb
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper.rb')
|
2
|
+
|
3
|
+
class Codex::TestSlideProcessor < Test::Unit::TestCase
|
4
|
+
INPUT = <<END
|
5
|
+
<div class="slide"><h1 class="slide0">Heading</h1>
|
6
|
+
<p>paragraph</p>
|
7
|
+
|
8
|
+
</div>
|
9
|
+
<div class="slide"><h1>heading</h1>
|
10
|
+
<p>paragraph</p>
|
11
|
+
</div>
|
12
|
+
<div class="slide"><h1 class="slide0">heading</h1>
|
13
|
+
<p>paragraph</p>
|
14
|
+
</div>
|
15
|
+
END
|
16
|
+
|
17
|
+
OUTPUT = <<END
|
18
|
+
<div class="title slide">
|
19
|
+
<h1>Heading</h1>
|
20
|
+
<p>paragraph</p>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
<div class="slide"><h1>heading</h1>
|
24
|
+
<p>paragraph</p>
|
25
|
+
</div>
|
26
|
+
<div class="title slide">
|
27
|
+
<h1>heading</h1>
|
28
|
+
<p>paragraph</p>
|
29
|
+
</div>
|
30
|
+
END
|
31
|
+
|
32
|
+
def setup
|
33
|
+
@postprocessor = Codex::AddTitleSlides.new(INPUT)
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_process
|
37
|
+
@postprocessor.process
|
38
|
+
assert_equal OUTPUT.strip, @postprocessor.html.strip
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper.rb')
|
2
|
+
|
3
|
+
class TemporaryPostProcessor < Codex::PostProcessor
|
4
|
+
def process
|
5
|
+
@html << "TemporaryPostProcessor was here!"
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
class Codex::TestPostProcessors < Test::Unit::TestCase
|
10
|
+
INPUT = <<END
|
11
|
+
<div class="slide"><h1 class="slide0">Heading</h1>
|
12
|
+
<p>paragraph</p>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
<div class="slide"><h1>heading</h1>
|
16
|
+
<p>paragraph</p>
|
17
|
+
</div>
|
18
|
+
<div class="slide"><h1 class="slide0">heading</h1>
|
19
|
+
<p>paragraph</p>
|
20
|
+
</div>
|
21
|
+
END
|
22
|
+
|
23
|
+
def setup
|
24
|
+
@postprocessors = Codex::PostProcessors.instance
|
25
|
+
@postprocessors << TemporaryPostProcessor
|
26
|
+
end
|
27
|
+
|
28
|
+
def teardown
|
29
|
+
@postprocessors.delete(TemporaryPostProcessor)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_process_all
|
33
|
+
output = @postprocessors.process_all(INPUT)
|
34
|
+
assert output.index("<p>paragraph</p>")
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_newly_registered_post_process_works
|
38
|
+
output = @postprocessors.process_all(INPUT)
|
39
|
+
assert output.index("TemporaryPostProcessor was here!")
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper.rb')
|
2
|
+
|
3
|
+
class Codex::TestSlidesProcessor < Test::Unit::TestCase
|
4
|
+
INPUT = <<END
|
5
|
+
<h1>Heading</h1>
|
6
|
+
<p>paragraph</p>
|
7
|
+
|
8
|
+
<h2>Subheading</h2>
|
9
|
+
<p>paragraph</p>
|
10
|
+
END
|
11
|
+
|
12
|
+
OUTPUT = <<END
|
13
|
+
<div class="slide"><h1>Heading</h1>
|
14
|
+
<p>paragraph</p>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
<div class="slide"><h2>Subheading</h2>
|
18
|
+
<p>paragraph</p>
|
19
|
+
</div>
|
20
|
+
END
|
21
|
+
|
22
|
+
def setup
|
23
|
+
@postprocessor = Codex::SlidesProcessor.new(INPUT)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_process
|
27
|
+
@postprocessor.process
|
28
|
+
assert_equal OUTPUT.strip, @postprocessor.html.strip
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper.rb')
|
2
|
+
require 'codex/rake/codextask'
|
3
|
+
|
4
|
+
module Codex
|
5
|
+
module Rake
|
6
|
+
class TestCodexTask < Test::Unit::TestCase
|
7
|
+
def setup
|
8
|
+
generate
|
9
|
+
@task = CodexTask.new do |c|
|
10
|
+
# c.content_dir = 'content'
|
11
|
+
# c.output_dir = 'html'
|
12
|
+
c.metadata = "#{APP_ROOT}/config/metadata.yml"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_name_defaults_to_codex
|
17
|
+
assert_equal :codex, @task.name
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_content_dir_defaults_to_content
|
21
|
+
assert_equal 'content', @task.content_dir
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_output_dir_defaults_to_html
|
25
|
+
assert_equal 'html', @task.output_dir
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_clean
|
29
|
+
FileUtils.mkdir_p(@task.output_path)
|
30
|
+
::Rake.application.invoke_task('clean')
|
31
|
+
assert !File.exists?(@task.output_path)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb')
|
2
|
+
|
3
|
+
module Codex
|
4
|
+
class TestPressie < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
generate
|
8
|
+
@pressie = Pressie.new("#{APP_ROOT}/config/metadata.yml")
|
9
|
+
@input = "#{APP_ROOT}/content/building.textile"
|
10
|
+
@output = "#{APP_ROOT}/html/building.html"
|
11
|
+
end
|
12
|
+
|
13
|
+
def teardown
|
14
|
+
bare_teardown
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_process
|
18
|
+
assert !File.exist?(@output)
|
19
|
+
@pressie.process(@input, @output)
|
20
|
+
assert File.exist?(@output)
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb')
|
2
|
+
|
3
|
+
module Codex
|
4
|
+
class TestTemplateHandler < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def test_textile_handler
|
7
|
+
handler = TemplateHandler.choose('foo.textile')
|
8
|
+
assert_kind_of Proc, handler
|
9
|
+
assert_equal '<h1>Foo</h1>', handler.call('h1. Foo')
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_markdown_handler
|
13
|
+
handler = TemplateHandler.choose('foo.markdown')
|
14
|
+
assert_kind_of Proc, handler
|
15
|
+
assert_equal '<h1>Foo</h1>', handler.call('# Foo')
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_unkown_handler
|
19
|
+
assert_equal 'bar', TemplateHandler.choose('foo.txt').call('bar')
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_register_custom
|
23
|
+
TemplateHandler.register(:reverse) {|c| c.reverse }
|
24
|
+
assert_equal 'esrever', TemplateHandler.choose('foo.reverse').call('reverse')
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -1,7 +1,6 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/test_helper.rb")
|
2
2
|
|
3
3
|
class TestCodexGenerator < Test::Unit::TestCase
|
4
|
-
include RubiGen::GeneratorTestHelper
|
5
4
|
|
6
5
|
def setup
|
7
6
|
bare_setup
|
@@ -26,20 +25,17 @@ class TestCodexGenerator < Test::Unit::TestCase
|
|
26
25
|
# bare_teardown - place this in teardown method to destroy the TMP_ROOT or APP_ROOT folder after each test
|
27
26
|
|
28
27
|
def test_generator_without_options
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
assert_directory_exists "slides"
|
34
|
-
assert_directory_exists "dp.SyntaxHighlighter"
|
35
|
-
assert_directory_exists "script"
|
28
|
+
generate
|
29
|
+
%w(assets bin code config html content script).each do |dir|
|
30
|
+
assert_directory_exists dir
|
31
|
+
end
|
36
32
|
assert_generated_file "Rakefile"
|
37
33
|
assert_generated_file "html/all.html"
|
38
34
|
%w[basics building example including_code table_of_contents].each do |slide|
|
39
|
-
assert_generated_file "
|
35
|
+
assert_generated_file "content/#{slide}.textile"
|
40
36
|
end
|
41
|
-
assert_generated_file "
|
42
|
-
%w[build_all
|
37
|
+
assert_generated_file "config/metadata.yml"
|
38
|
+
%w[build_all].each do |bin|
|
43
39
|
assert_generated_file "bin/#{bin}.rb"
|
44
40
|
end
|
45
41
|
%w[basic_continuation cc_throw_catch closure_continuation closure_continuation_2].each do |code|
|
@@ -57,22 +53,20 @@ class TestCodexGenerator < Test::Unit::TestCase
|
|
57
53
|
"Scripts/shBrushXml.js", "Scripts/shCore.js", "Scripts/shCore.uncompressed.js",
|
58
54
|
"Styles/SyntaxHighlighter.css", "Styles/TestPages.css",
|
59
55
|
"Templates/Test.dwt"
|
60
|
-
|
61
|
-
|
62
|
-
|
56
|
+
].each do |syntax|
|
57
|
+
assert_generated_file "assets/dp.SyntaxHighlighter/#{syntax}"
|
58
|
+
end
|
59
|
+
["pressie.css", "print.css", "ruby.png"].each do |asset|
|
60
|
+
assert_generated_file "assets/stylesheets/#{asset}"
|
61
|
+
end
|
63
62
|
["blank.gif", "bodybg.gif", "framing.css", "iepngfix.htc", "opera.css", "outline.css",
|
64
63
|
"pretty.css", "print.css", "s5-core.css", "slides.css", "slides.js"].each do |asset|
|
65
|
-
assert_generated_file "ui/default/#{asset}"
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
[RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path))
|
72
|
-
]
|
64
|
+
assert_generated_file "assets/ui/default/#{asset}"
|
65
|
+
end
|
66
|
+
["change_code_urls.rb", "upcase_titles.rb"].each do |asset|
|
67
|
+
assert_generated_file "post_processors/#{asset}"
|
68
|
+
end
|
69
|
+
assert_generated_file "templates/layout.erb"
|
73
70
|
end
|
74
71
|
|
75
|
-
def generator_path
|
76
|
-
"app_generators"
|
77
|
-
end
|
78
72
|
end
|
data/test/test_filter.rb
ADDED
data/test/test_helper.rb
CHANGED
@@ -1,2 +1,34 @@
|
|
1
|
+
# Must set before requiring generator libs.
|
2
|
+
TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT)
|
3
|
+
PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME)
|
4
|
+
app_root = File.join(TMP_ROOT, PROJECT_NAME)
|
5
|
+
if defined?(APP_ROOT)
|
6
|
+
APP_ROOT.replace(app_root)
|
7
|
+
else
|
8
|
+
APP_ROOT = app_root
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'rubygems'
|
1
12
|
require 'test/unit'
|
2
|
-
require File.dirname(__FILE__) + '/../lib/codex'
|
13
|
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/codex')
|
14
|
+
|
15
|
+
require 'rubigen'
|
16
|
+
require 'rubigen/helpers/generator_test_helper'
|
17
|
+
|
18
|
+
Codex.root = APP_ROOT
|
19
|
+
|
20
|
+
class Test::Unit::TestCase
|
21
|
+
include RubiGen::GeneratorTestHelper
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def generate
|
26
|
+
run_generator('codex', [Codex.root], sources)
|
27
|
+
end
|
28
|
+
|
29
|
+
def sources
|
30
|
+
[RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", 'app_generators'))
|
31
|
+
]
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Thomas
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
12
|
+
date: 2009-10-09 00:00:00 -05:00
|
13
|
+
default_executable: codex
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.3.3
|
24
|
+
version:
|
16
25
|
description: Simple tool for creating source-code intensive presentations and courses
|
17
26
|
email:
|
18
27
|
- dave@pragprog.com
|
@@ -37,81 +46,96 @@ files:
|
|
37
46
|
- app_generators/codex/USAGE
|
38
47
|
- app_generators/codex/codex_generator.rb
|
39
48
|
- app_generators/codex/templates/Rakefile
|
49
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/CSS.html
|
50
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/CSharp.html
|
51
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/CollapseCode.html
|
52
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Cpp.html
|
53
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/CrashTest.html
|
54
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Delphi.html
|
55
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/FirstLine.html
|
56
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Index.html
|
57
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Java.html
|
58
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/JavaScript.html
|
59
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/NoControls.html
|
60
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/NoGutter.html
|
61
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/PHP.html
|
62
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Python.html
|
63
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Ruby.html
|
64
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/SQL.html
|
65
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/clipboard.swf
|
66
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
|
67
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCpp.js
|
68
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushCss.js
|
69
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
|
70
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
|
71
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJava.js
|
72
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushPhp.js
|
73
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushPython.js
|
74
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushRuby.js
|
75
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushSql.js
|
76
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushVb.js
|
77
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushXml.js
|
78
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shCore.js
|
79
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
|
80
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/ShowColumns.html
|
81
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/SmartTabs.html
|
82
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
|
83
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Styles/TestPages.css
|
84
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/Templates/Test.dwt
|
85
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/VB.html
|
86
|
+
- app_generators/codex/templates/assets/dp.SyntaxHighlighter/XML.html
|
87
|
+
- app_generators/codex/templates/assets/stylesheets/pressie.css
|
88
|
+
- app_generators/codex/templates/assets/stylesheets/print.css
|
89
|
+
- app_generators/codex/templates/assets/stylesheets/ruby.png
|
90
|
+
- app_generators/codex/templates/assets/ui/default/blank.gif
|
91
|
+
- app_generators/codex/templates/assets/ui/default/bodybg.gif
|
92
|
+
- app_generators/codex/templates/assets/ui/default/framing.css
|
93
|
+
- app_generators/codex/templates/assets/ui/default/iepngfix.htc
|
94
|
+
- app_generators/codex/templates/assets/ui/default/opera.css
|
95
|
+
- app_generators/codex/templates/assets/ui/default/outline.css
|
96
|
+
- app_generators/codex/templates/assets/ui/default/pretty.css
|
97
|
+
- app_generators/codex/templates/assets/ui/default/print.css
|
98
|
+
- app_generators/codex/templates/assets/ui/default/s5-core.css
|
99
|
+
- app_generators/codex/templates/assets/ui/default/slides.css
|
100
|
+
- app_generators/codex/templates/assets/ui/default/slides.js
|
40
101
|
- app_generators/codex/templates/bin/build_all.rb
|
41
|
-
- app_generators/codex/templates/bin/postprocess_all.rb
|
42
|
-
- app_generators/codex/templates/bin/pressie.rb
|
43
102
|
- app_generators/codex/templates/code/control/basic_continuation.rb
|
44
103
|
- app_generators/codex/templates/code/control/cc_throw_catch.rb
|
45
104
|
- app_generators/codex/templates/code/control/closure_continuation.rb
|
46
105
|
- app_generators/codex/templates/code/control/closure_continuation_2.rb
|
47
|
-
- app_generators/codex/templates/
|
48
|
-
- app_generators/codex/templates/
|
49
|
-
- app_generators/codex/templates/
|
50
|
-
- app_generators/codex/templates/
|
51
|
-
- app_generators/codex/templates/
|
52
|
-
- app_generators/codex/templates/
|
53
|
-
- app_generators/codex/templates/
|
54
|
-
- app_generators/codex/templates/
|
55
|
-
- app_generators/codex/templates/
|
56
|
-
- app_generators/codex/templates/
|
57
|
-
- app_generators/codex/templates/
|
58
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/NoGutter.html
|
59
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/PHP.html
|
60
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Python.html
|
61
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Ruby.html
|
62
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/SQL.html
|
63
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/clipboard.swf
|
64
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
|
65
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCpp.js
|
66
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCss.js
|
67
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
|
68
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
|
69
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJava.js
|
70
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPhp.js
|
71
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPython.js
|
72
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushRuby.js
|
73
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushSql.js
|
74
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushVb.js
|
75
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushXml.js
|
76
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.js
|
77
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
|
78
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/ShowColumns.html
|
79
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/SmartTabs.html
|
80
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
|
81
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Styles/TestPages.css
|
82
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/Templates/Test.dwt
|
83
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/VB.html
|
84
|
-
- app_generators/codex/templates/dp.SyntaxHighlighter/XML.html
|
106
|
+
- app_generators/codex/templates/code/graphviz/graph.dot
|
107
|
+
- app_generators/codex/templates/config/metadata.yml
|
108
|
+
- app_generators/codex/templates/content/basics.textile
|
109
|
+
- app_generators/codex/templates/content/building.textile
|
110
|
+
- app_generators/codex/templates/content/example.textile
|
111
|
+
- app_generators/codex/templates/content/graphviz.textile
|
112
|
+
- app_generators/codex/templates/content/including_code.textile
|
113
|
+
- app_generators/codex/templates/content/including_tex.textile
|
114
|
+
- app_generators/codex/templates/content/table_of_contents.textile
|
115
|
+
- app_generators/codex/templates/content/user_defined.textile
|
116
|
+
- app_generators/codex/templates/filters/example_filter.rb
|
85
117
|
- app_generators/codex/templates/html/all.html
|
118
|
+
- app_generators/codex/templates/post_processors/change_code_urls.rb
|
119
|
+
- app_generators/codex/templates/post_processors/upcase_titles.rb
|
86
120
|
- app_generators/codex/templates/readme.txt
|
87
|
-
- app_generators/codex/templates/
|
88
|
-
- app_generators/codex/templates/slides/building.slides
|
89
|
-
- app_generators/codex/templates/slides/example.slides
|
90
|
-
- app_generators/codex/templates/slides/including_code.slides
|
91
|
-
- app_generators/codex/templates/slides/metadata.yml
|
92
|
-
- app_generators/codex/templates/slides/table_of_contents.slides
|
93
|
-
- app_generators/codex/templates/ui/default/blank.gif
|
94
|
-
- app_generators/codex/templates/ui/default/bodybg.gif
|
95
|
-
- app_generators/codex/templates/ui/default/framing.css
|
96
|
-
- app_generators/codex/templates/ui/default/iepngfix.htc
|
97
|
-
- app_generators/codex/templates/ui/default/opera.css
|
98
|
-
- app_generators/codex/templates/ui/default/outline.css
|
99
|
-
- app_generators/codex/templates/ui/default/pretty.css
|
100
|
-
- app_generators/codex/templates/ui/default/print.css
|
101
|
-
- app_generators/codex/templates/ui/default/s5-core.css
|
102
|
-
- app_generators/codex/templates/ui/default/slides.css
|
103
|
-
- app_generators/codex/templates/ui/default/slides.js
|
121
|
+
- app_generators/codex/templates/templates/layout.erb
|
104
122
|
- bin/codex
|
105
123
|
- codex.gemspec
|
106
124
|
- config/hoe.rb
|
107
125
|
- config/requirements.rb
|
108
126
|
- lib/codex.rb
|
109
127
|
- lib/codex/content.rb
|
128
|
+
- lib/codex/filter.rb
|
129
|
+
- lib/codex/filters/code_filter.rb
|
130
|
+
- lib/codex/filters/graphviz_filter.rb
|
131
|
+
- lib/codex/filters/ritex_filter.rb
|
132
|
+
- lib/codex/post_processor.rb
|
133
|
+
- lib/codex/post_processors/01_slides_processor.rb
|
134
|
+
- lib/codex/post_processors/02_add_title_slides.rb
|
110
135
|
- lib/codex/pressie.rb
|
136
|
+
- lib/codex/rake/codextask.rb
|
137
|
+
- lib/codex/template_handler.rb
|
111
138
|
- lib/codex/version.rb
|
112
|
-
- lib/stylesheets/pressie.css
|
113
|
-
- lib/stylesheets/print.css
|
114
|
-
- lib/stylesheets/ruby.png
|
115
139
|
- script/console
|
116
140
|
- script/destroy
|
117
141
|
- script/generate
|
@@ -119,12 +143,19 @@ files:
|
|
119
143
|
- tasks/deployment.rake
|
120
144
|
- tasks/environment.rake
|
121
145
|
- tasks/website.rake
|
122
|
-
- test/
|
146
|
+
- test/codex/post_processor/test_add_title_slides_processor.rb
|
147
|
+
- test/codex/post_processor/test_post_processors.rb
|
148
|
+
- test/codex/post_processor/test_slides_processor.rb
|
149
|
+
- test/codex/rake/test_codextask.rb
|
150
|
+
- test/codex/test_pressie.rb
|
151
|
+
- test/codex/test_template_handler.rb
|
123
152
|
- test/test_codex_generator.rb
|
124
|
-
- test/
|
153
|
+
- test/test_filter.rb
|
125
154
|
- test/test_helper.rb
|
126
155
|
has_rdoc: true
|
127
156
|
homepage: http://codex.rubyforge.org
|
157
|
+
licenses: []
|
158
|
+
|
128
159
|
post_install_message: |
|
129
160
|
|
130
161
|
To create new presentations:
|
@@ -152,12 +183,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
183
|
requirements: []
|
153
184
|
|
154
185
|
rubyforge_project: codex
|
155
|
-
rubygems_version: 1.
|
186
|
+
rubygems_version: 1.3.5
|
156
187
|
signing_key:
|
157
188
|
specification_version: 2
|
158
189
|
summary: Simple tool for creating source-code intensive presentations and courses
|
159
190
|
test_files:
|
160
|
-
- test/
|
191
|
+
- test/codex/post_processor/test_add_title_slides_processor.rb
|
192
|
+
- test/codex/post_processor/test_post_processors.rb
|
193
|
+
- test/codex/post_processor/test_slides_processor.rb
|
194
|
+
- test/codex/rake/test_codextask.rb
|
195
|
+
- test/codex/test_pressie.rb
|
196
|
+
- test/codex/test_template_handler.rb
|
161
197
|
- test/test_codex_generator.rb
|
162
|
-
- test/
|
198
|
+
- test/test_filter.rb
|
163
199
|
- test/test_helper.rb
|