public
Rubygem
Fork of pragdave/codex
Description: Simple tool for creating source-code intensive presentations and courses
Clone URL: git://github.com/brandon/codex.git
added ability to load codex from vendor/codex
brandon (author)
Tue Jul 22 11:37:59 -0700 2008
commit  43e162449a5ec5e2852745c25a7ce8e6ce1d7ad0
tree    d2c5619fc1c4015724d0b42a20c9ca3f9790080d
parent  9dc6b15b5a2ad1098061b13c00a6d9c81e5f155c
...
22
23
24
25
 
26
27
28
...
97
98
99
 
100
101
102
...
22
23
24
 
25
26
27
28
...
97
98
99
100
101
102
103
0
@@ -22,7 +22,7 @@ class CodexGenerator < RubiGen::Base
0
       BASEDIRS.each { |path| m.directory path }
0
 
0
       # Create stubs
0
- m.template_copy_each %w[Rakefile]
0
+ m.template_copy_each %w[Rakefile config/boot.rb]
0
       m.template_copy_each "html/all.html"
0
       %w[basics building example including_code including_tex table_of_contents user_defined graphviz].each do |template|
0
         m.file_copy_each "content/#{template}.textile"
0
@@ -97,6 +97,7 @@ EOS
0
       bin
0
       code/control
0
       code/graphviz
0
+ config
0
       html/images
0
       dp.SyntaxHighlighter/Scripts
0
       dp.SyntaxHighlighter/Styles
...
1
2
 
3
4
5
...
 
 
1
2
3
4
0
@@ -1,5 +1,4 @@
0
-require 'rubygems'
0
-require 'codex'
0
+require(File.join(File.dirname(__FILE__), 'config', 'boot'))
0
 require 'codex/rake/codextask'
0
 
0
 Codex::Rake::CodexTask.new do |c|
...
26
27
28
29
30
31
32
33
34
 
 
 
 
35
36
37
...
26
27
28
 
 
 
 
 
 
29
30
31
32
33
34
35
0
@@ -26,12 +26,10 @@ class TestCodexGenerator < Test::Unit::TestCase
0
 
0
   def test_generator_without_options
0
     generate
0
- assert_directory_exists "bin"
0
- assert_directory_exists "code/control"
0
- assert_directory_exists "html"
0
- assert_directory_exists "content"
0
- assert_directory_exists "dp.SyntaxHighlighter"
0
- assert_directory_exists "script"
0
+ %w(bin code config html content dp.SyntaxHighlighter script).each do |dir|
0
+ assert_directory_exists dir
0
+ end
0
+ assert_generated_file 'config/boot.rb'
0
     assert_generated_file "Rakefile"
0
     assert_generated_file "html/all.html"
0
     %w[basics building example including_code table_of_contents].each do |slide|

Comments

    No one has commented yet.