webgen 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/ChangeLog +300 -0
  2. data/Rakefile +149 -27
  3. data/TODO +3 -4
  4. data/VERSION +1 -1
  5. data/data/webgen/gallery_styles/slides/collage.rb +7 -4
  6. data/data/webgen/sipttra_styles/default/README +7 -0
  7. data/data/webgen/sipttra_styles/default/css/sipttra.rcss +71 -0
  8. data/data/webgen/sipttra_styles/default/js/sipttra.js +7 -0
  9. data/data/webgen/sipttra_styles/default/sipttra.template +105 -0
  10. data/data/webgen/website_styles/1024px/README +3 -0
  11. data/data/webgen/website_styles/1024px/default.css +3 -3
  12. data/data/webgen/website_styles/andreas00/README +4 -1
  13. data/data/webgen/website_styles/andreas00/default.css +2 -2
  14. data/data/webgen/website_styles/andreas01/README +3 -0
  15. data/data/webgen/website_styles/andreas01/default.css +3 -3
  16. data/data/webgen/website_styles/andreas03/README +4 -1
  17. data/data/webgen/website_styles/andreas03/default.css +2 -2
  18. data/data/webgen/website_styles/andreas04/README +3 -0
  19. data/data/webgen/website_styles/andreas04/default.css +2 -2
  20. data/data/webgen/website_styles/andreas05/README +3 -0
  21. data/data/webgen/website_styles/andreas05/default.css +2 -2
  22. data/data/webgen/website_styles/andreas06/README +3 -0
  23. data/data/webgen/website_styles/andreas06/default.css +3 -2
  24. data/data/webgen/website_styles/andreas07/README +3 -0
  25. data/data/webgen/website_styles/andreas07/default.css +4 -4
  26. data/data/webgen/website_styles/andreas08/README +4 -1
  27. data/data/webgen/website_styles/andreas08/default.css +2 -2
  28. data/data/webgen/website_styles/andreas08/default.template +1 -1
  29. data/data/webgen/website_styles/andreas09/README +3 -0
  30. data/data/webgen/website_styles/andreas09/default.css +2 -2
  31. data/data/webgen/website_styles/default/README +1 -1
  32. data/data/webgen/website_styles/default/default.css +1 -1
  33. data/data/webgen/website_styles/plain/README +7 -2
  34. data/data/webgen/website_styles/plain/default.css +2 -2
  35. data/doc/config.yaml +3 -0
  36. data/doc/metainfo.yaml +20 -3
  37. data/doc/src/css/sipttra.rcss +71 -0
  38. data/doc/src/default.template +10 -5
  39. data/doc/src/documentation/howto.page +221 -0
  40. data/doc/src/documentation/plugins/contentconverter/default.page +1 -0
  41. data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +2 -2
  42. data/doc/src/documentation/plugins/core/configuration.page +6 -0
  43. data/doc/src/documentation/plugins/core/resourcemanager.page +4 -10
  44. data/doc/src/documentation/plugins/file/defaulthandler.page +1 -0
  45. data/doc/src/documentation/plugins/file/sipttrahandler.page +18 -0
  46. data/doc/src/documentation/plugins/file/templatehandler.page +27 -10
  47. data/doc/src/documentation/plugins/file/thumbnailwriter.page +5 -2
  48. data/doc/src/documentation/plugins/htmlvalidator/default.page +1 -0
  49. data/doc/src/documentation/plugins/index.page +2 -2
  50. data/doc/src/documentation/plugins/menustyle/default.page +1 -0
  51. data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +12 -0
  52. data/doc/src/documentation/plugins/tag/customvar.page +11 -0
  53. data/doc/src/documentation/plugins/tag/default.page +1 -0
  54. data/doc/src/documentation/references/index.page +8 -0
  55. data/doc/src/documentation/references/meta_info_reference.page +35 -16
  56. data/doc/src/documentation/references/resource_reference.page +18 -0
  57. data/doc/src/documentation/references/sipttra_format.page +241 -0
  58. data/doc/src/documentation/references/webpage_format.page +4 -0
  59. data/doc/src/examples/example_sites/index.page +41 -0
  60. data/doc/src/examples/example_sites/personal.zip +0 -0
  61. data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
  62. data/doc/src/examples/index.page +2 -1
  63. data/doc/src/js/sipttra.js +7 -0
  64. data/doc/src/news.page +25 -0
  65. data/doc/src/project.todo +91 -0
  66. data/doc/src/sipttra.template +105 -0
  67. data/lib/webgen/cli.rb +31 -1
  68. data/lib/webgen/config.rb +2 -2
  69. data/lib/webgen/plugin.rb +7 -3
  70. data/lib/webgen/plugins/coreplugins/configuration.rb +3 -1
  71. data/lib/webgen/plugins/filehandlers/filehandler.rb +6 -5
  72. data/lib/webgen/plugins/filehandlers/sipttra.rb +73 -0
  73. data/lib/webgen/plugins/filehandlers/template.rb +2 -1
  74. data/lib/webgen/plugins/miscplugins/treewalker.rb +40 -4
  75. data/lib/webgen/plugins/tags/breadcrumbtrail.rb +14 -1
  76. data/lib/webgen/plugins/tags/customvar.rb +54 -0
  77. data/lib/webgen/sipttra_format.rb +343 -0
  78. data/lib/webgen/website.rb +25 -1
  79. data/man/man1/webgen.1 +75 -0
  80. data/setup.rb +861 -607
  81. data/test/fixtures/sample_site/src/test.todo +7 -0
  82. data/test/fixtures/tc_plugin/plugin1.rb +2 -0
  83. data/test/fixtures/tc_sipttra_format/test.sipttra +46 -0
  84. data/test/unittests/tc_filehandler_sipttra.rb +26 -0
  85. data/test/unittests/tc_filehandler_template.rb +2 -1
  86. data/test/unittests/tc_plugin.rb +8 -1
  87. data/test/unittests/tc_sipttra_format.rb +58 -0
  88. data/test/unittests/tc_tags_breadcrumbtrail.rb +34 -0
  89. data/test/unittests/tc_tags_customvar.rb +24 -0
  90. data/test/unittests/tc_tags_date.rb +1 -0
  91. data/test/unittests/tc_tags_includefile.rb +6 -13
  92. data/test/unittests/tc_treewalker.rb +8 -1
  93. metadata +37 -3
@@ -0,0 +1,7 @@
1
+ ### Milestones ###
2
+
3
+ * M1: test item
4
+
5
+ ### Todo (open) ###
6
+
7
+ * another ticket
@@ -1,3 +1,5 @@
1
+ load_plugin "webgen/plugins/coreplugins/configuration"
2
+
1
3
  module Testing
2
4
 
3
5
  class BasicPlugin < Webgen::Plugin
@@ -0,0 +1,46 @@
1
+ ---
2
+ categories: 2
3
+ milestones: 5
4
+ tickets: 7
5
+ tickets_todo_open: 3
6
+ tickets_todo_closed: 4
7
+ tickets_todo_open_names: [baap, beep, boop]
8
+ baap_belongs_to: M3
9
+ M1_all_tickets: 4
10
+ ---
11
+
12
+ ### MILESTONES ###
13
+
14
+ * M1 (2007-02-01)
15
+ Description of milestone 1
16
+ furhter description. The date part in brackets is optional!
17
+
18
+ * M2 (2007-02-01)
19
+ Milestones must have a name!!!
20
+
21
+ * M333: Milestone without any identifier -> cannot be referenced!
22
+
23
+ * M3 [M1]
24
+ Milestone which belongs to other milestone
25
+ One can *use* markdown syntax `here`!
26
+
27
+ * M4 (2007-02-02) You can also start describing your milestone here!
28
+
29
+ This text also belongs to item M4!
30
+ However, this is a comment (only one space at the beginning of line!)
31
+ This is also a comment now since the above comment terminated the detailed description!
32
+
33
+ ### TODO (open) ###
34
+
35
+ * baap [M3] an item assigned to milestone M3
36
+ * beep: an item named beep
37
+ * boop [beep] this item belongs to item beep
38
+
39
+ ### TODO (closed) ###
40
+
41
+ * [M1] a closed item
42
+ * another closed item
43
+ which is continued on the next line
44
+ * [M1] a closed item belonging to milestone M1
45
+ -> with an additional explanation part why it was closed
46
+ * [M1] an unassigned item with `markdown` syntax
@@ -0,0 +1,26 @@
1
+ require 'webgen/test'
2
+
3
+ class SipttraHandlerTest < Webgen::PluginTestCase
4
+
5
+ plugin_files [
6
+ 'webgen/plugins/filehandlers/sipttra.rb',
7
+ 'webgen/plugins/filehandlers/directory.rb'
8
+ ]
9
+ plugin_to_test 'File/SipttraHandler'
10
+
11
+ def test_initialization
12
+ assert_not_nil( @plugin )
13
+ end
14
+
15
+ def test_create_node
16
+ root = @manager['Core/FileHandler'].instance_eval { create_root_node }
17
+ file = sample_site( File.join( Webgen::SRC_DIR, 'test.todo' ) )
18
+ node = @manager['Core/FileHandler'].create_node( File.basename( file ), root, @plugin )
19
+
20
+ assert_not_nil( node )
21
+ assert_equal( 'test.html', node.path )
22
+ assert_equal( file, node.node_info[:src] )
23
+ assert_kind_of( Sipttra::Tracker, node.node_info[:sipttra] )
24
+ end
25
+
26
+ end
@@ -15,10 +15,11 @@ class TemplateFileHandlerTest < Webgen::PluginTestCase
15
15
  def test_create_node
16
16
  root = @manager['Core/FileHandler'].instance_eval { create_root_node }
17
17
  file = sample_site( File.join( Webgen::SRC_DIR, 'default.template' ) )
18
- node = @plugin.create_node( file, root, {} )
18
+ node = @manager['Core/FileHandler'].create_node( File.basename( file ), root, @plugin )
19
19
 
20
20
  assert_not_nil( node )
21
21
  assert_equal( true, node['useERB'] )
22
+ assert_equal( ['content', 'html'], node['blocks'][0] )
22
23
  assert_equal( File.basename( file ), node.path )
23
24
  assert_equal( file, node.node_info[:src] )
24
25
  assert_equal( File.basename( file ), node.node_info[:pagename] )
@@ -23,11 +23,18 @@ class PluginLoaderTest < Webgen::TestCase
23
23
  end
24
24
 
25
25
  def test_load_from_file
26
+ Webgen.load_default_plugins
26
27
  assert_nothing_thrown do
27
28
  @l.load_from_file( fixture_path( 'plugin1') )
28
29
  end
29
30
  check_loaded_plugin_class( @l, @wrapper::Testing::BasicPlugin )
30
31
  check_loaded_plugin_class( @l, @wrapper::Testing::PluginWithData )
32
+ assert( !@wrapper.const_defined?( :CorePlugins ) )
33
+ ensure
34
+ Webgen.remove_const( :DEFAULT_PLUGIN_LOADER )
35
+ Webgen.remove_const( :DEFAULT_WRAPPER_MODULE )
36
+ Webgen.const_set( :DEFAULT_WRAPPER_MODULE, Module.new )
37
+ Webgen.const_set( :DEFAULT_PLUGIN_LOADER, Webgen.init_default_plugin_loader( Webgen::DEFAULT_WRAPPER_MODULE ) )
31
38
  end
32
39
 
33
40
  def test_load_from_block
@@ -175,7 +182,7 @@ class PluginManagerTest < Webgen::TestCase
175
182
  manager = Webgen::PluginManager.new( [loader] )
176
183
  manager.add_plugin_classes( loader.plugin_classes )
177
184
  manager.init
178
- assert_equal( 5, manager.plugins.length )
185
+ assert_equal( 6, manager.plugins.length )
179
186
 
180
187
  assert_kind_of( wrapper::Testing::BasicPlugin, manager['Testing/BasicPlugin'] )
181
188
  assert_kind_of( wrapper::Testing::DerivedPlugin, manager['Testing/DerivedPlugin'] )
@@ -0,0 +1,58 @@
1
+ require 'webgen/test'
2
+ require 'webgen/sipttra_format'
3
+
4
+
5
+ class TrackerTest < Webgen::TestCase
6
+
7
+ def test_category_regexp
8
+ assert_match_special( Sipttra::Tracker::CATEGORY_REGEXP, '# Name #', ['#', 'Name',nil] )
9
+ assert_match_special( Sipttra::Tracker::CATEGORY_REGEXP, '### Name ###', ['###', 'Name',nil] )
10
+ assert_match_special( Sipttra::Tracker::CATEGORY_REGEXP, '### Name (open) ###', ['###', 'Name','open'] )
11
+ assert_match_special( Sipttra::Tracker::CATEGORY_REGEXP, '# Name(done) #', ['#', 'Name','done'] )
12
+
13
+ assert_no_match( Sipttra::Tracker::CATEGORY_REGEXP, '# Name' )
14
+ assert_no_match( Sipttra::Tracker::CATEGORY_REGEXP, '# Name () #' )
15
+ assert_no_match( Sipttra::Tracker::CATEGORY_REGEXP, '# Name (done)#' )
16
+ end
17
+
18
+ def test_ticket_regexp
19
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* text', [nil, nil, nil, 'text'] )
20
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* text and more', [nil, nil, nil, 'text and more'] )
21
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title text', [nil, nil, nil, 'title text'] )
22
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title:', ['title', nil, nil, nil] )
23
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title: text', ['title', nil, nil, 'text'] )
24
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* [belongs] text', [nil, nil, 'belongs', 'text'] )
25
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* (2007-02-03) text', [nil, '2007-02-03', nil, 'text'] )
26
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title [belongs] text', ['title', nil, 'belongs', 'text'] )
27
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title (2007-02-03) text', ['title', '2007-02-03', nil, 'text'] )
28
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* title (2007-02-03) [belongs] text', ['title', '2007-02-03', 'belongs', 'text'] )
29
+
30
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* t:', ['t', nil, nil, nil] )
31
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* [t]', [nil, nil, 't', nil] )
32
+
33
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* [belongs]text', [nil, nil, nil, '[belongs]text'] )
34
+ assert_match_special( Sipttra::Tracker::TICKET_REGEXP, '* (2007-02-03)text', [nil, nil, nil, '(2007-02-03)text'] )
35
+ assert_no_match( Sipttra::Tracker::TICKET_REGEXP, '*text' )
36
+ end
37
+
38
+ def assert_match_special( regexp, string, args )
39
+ assert_match( regexp, string )
40
+ match = regexp.match( string )
41
+ assert_equal( args, match[1..-1] )
42
+ end
43
+
44
+ def test_methods
45
+ data = File.read( fixture_path( 'test.sipttra' ) )
46
+ tracker = Sipttra::Tracker.new( data )
47
+ assert_equal( tracker.info['categories'], tracker.categories.length )
48
+ assert_equal( tracker.info['milestones'], tracker.milestones.length )
49
+ assert_equal( tracker.info['tickets'], tracker.tickets.length )
50
+ assert_equal( tracker.info['tickets_todo_open'], tracker.category( 'TODO', 'open' ).tickets.length )
51
+ assert_equal( tracker.info['tickets_todo_closed'], tracker.category( 'TODO', 'closed' ).tickets.length )
52
+ assert_equal( tracker.info['tickets_todo_open_names'], tracker.category( 'TODO', 'open' ).tickets.collect {|t| t.name} )
53
+ assert_equal( tracker.info['baap_belongs_to'], tracker.ticket( 'baap' ).belongs_to )
54
+ assert_equal( tracker.info['M1_all_tickets'], tracker.milestone( 'M1' ).all_assigned_tickets.length )
55
+ #TODO: assert_equal( tracker, Sipttra::Tracker.new( tracker.to_s ) )
56
+ end
57
+
58
+ end
@@ -14,9 +14,43 @@ class BreadcrumbTrailTagTest < Webgen::TagTestCase
14
14
  def test_process_tag
15
15
  root = @manager['Core/FileHandler'].instance_eval { build_tree }
16
16
  node = root.resolve_node( 'dir1/dir11/file111.en.page' )
17
+ indexNode = root.resolve_node( 'dir1/dir11/index.en.page' )
17
18
 
19
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => false )
18
20
  assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <a href="index.html">Dir11</a> / <span>File111</span>',
19
21
  @plugin.process_tag( 'breadcrumbTrail', [node] ) )
22
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => true )
23
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <a href="index.html">Dir11</a> / <span>File111</span>',
24
+ @plugin.process_tag( 'breadcrumbTrail', [node] ) )
25
+ set_config( 'separator' => ' / ', 'omitLast' => true, 'omitIndexFile' => true )
26
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <a href="index.html">Dir11</a> / ',
27
+ @plugin.process_tag( 'breadcrumbTrail', [node] ) )
28
+ set_config( 'separator' => ' / ', 'omitLast' => true, 'omitIndexFile' => false )
29
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <a href="index.html">Dir11</a> / ',
30
+ @plugin.process_tag( 'breadcrumbTrail', [node] ) )
31
+
32
+
33
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => false )
34
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span> / <span>Index</span>',
35
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
36
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => true )
37
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span>',
38
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
39
+ set_config( 'separator' => ' / ', 'omitLast' => true, 'omitIndexFile' => true )
40
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span>',
41
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
42
+ set_config( 'separator' => ' / ', 'omitLast' => true, 'omitIndexFile' => false )
43
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span> / ',
44
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
45
+
46
+ indexNode['omitIndexFileInBreadcrumbTrail'] = false
47
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => true )
48
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span> / <span>Index</span>',
49
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
50
+ indexNode['omitIndexFileInBreadcrumbTrail'] = true
51
+ set_config( 'separator' => ' / ', 'omitLast' => false, 'omitIndexFile' => false )
52
+ assert_equal( '<a href="../../index.html"></a> / <a href="../">Dir1</a> / <span>Dir11</span>',
53
+ @plugin.process_tag( 'breadcrumbTrail', [indexNode] ) )
20
54
  end
21
55
 
22
56
  end
@@ -0,0 +1,24 @@
1
+ require 'webgen/test'
2
+ require 'webgen/node'
3
+
4
+ class CustomVarTagTest < Webgen::TagTestCase
5
+
6
+ plugin_files [
7
+ 'webgen/plugins/tags/customvar.rb'
8
+ ]
9
+ plugin_to_test 'Tag/CustomVar'
10
+
11
+
12
+ def test_process_tag
13
+ node = Node.new( nil, 'hallo.page' )
14
+
15
+ @manager['Core/Configuration'].param('customVars').replace( {} )
16
+ set_config( 'var' => 'test' )
17
+ assert_equal( '', @plugin.process_tag( 'customVar', [node] ) )
18
+
19
+ @manager['Core/Configuration'].param('customVars').replace( {'test' => 'value'} )
20
+ set_config( 'var' => 'test' )
21
+ assert_equal( 'value', @plugin.process_tag( 'customVar', [node] ) )
22
+ end
23
+
24
+ end
@@ -1,4 +1,5 @@
1
1
  require 'webgen/test'
2
+ require 'time'
2
3
 
3
4
  class DateTagTest < Webgen::TagTestCase
4
5
 
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'tempfile'
2
3
  require 'webgen/test'
3
4
  require 'webgen/node'
4
5
 
@@ -35,19 +36,11 @@ class IncludeFileTagTest < Webgen::TagTestCase
35
36
  set_config( 'filename'=>"invalidfile", 'processOutput'=>true, 'escapeHTML'=>true )
36
37
  assert_equal( '', @plugin.process_tag( 'includeFile', [node] ) )
37
38
 
38
- # test absolute file name
39
- begin
40
- name = "webgen-test-file-#{$$}.txt"
41
- full_name = File.join( '/tmp', name )
42
- FileUtils.mkdir_p( '/tmp' )
43
- File.open( full_name, 'w+' ) {|f| f.write('hallo')}
44
- set_config( 'filename'=>full_name, 'processOutput'=>true, 'escapeHTML'=>true )
45
- assert_equal( 'hallo', @plugin.process_tag( 'includeFile', [node] ) )
46
- ensure
47
- FileUtils.rm( full_name ) rescue ''
48
- FileUtils.rmdir( '/tmp' ) rescue ''
49
- end
50
-
39
+ file = Tempfile.new( 'webgen-test-file' )
40
+ file.write('hallo')
41
+ file.close
42
+ set_config( 'filename'=>file.path, 'processOutput'=>true, 'escapeHTML'=>true )
43
+ assert_equal( 'hallo', @plugin.process_tag( 'includeFile', [node] ) )
51
44
  end
52
45
 
53
46
  end
@@ -19,7 +19,7 @@ class TreeWalkerTest < Webgen::PluginTestCase
19
19
 
20
20
  plugin_files ['webgen/plugins/miscplugins/treewalker.rb']
21
21
 
22
- plugin_to_test 'TreeWalkers/TreeWalker'
22
+ plugin_to_test 'Misc/TreeWalker'
23
23
 
24
24
  def test_execute
25
25
  root = Node.new( nil, '/' )
@@ -31,14 +31,21 @@ class TreeWalkerTest < Webgen::PluginTestCase
31
31
  n3 = Node.new( root, 'n3' )
32
32
  n31 = Node.new( n3, 'n31' )
33
33
  walker = TestWalker.new
34
+ @plugin.walkers << walker
34
35
 
35
36
  walker.init
36
37
  @plugin.execute( root, walker, :forward )
37
38
  assert_equal( [[root,0], [n1,1], [n11,2], [n111,3], [n12,2], [n2,1], [n3,1], [n31,2]], walker.nodes )
39
+ walker.init
40
+ @plugin.execute( root, nil, :forward )
41
+ assert_equal( [[root,0], [n1,1], [n11,2], [n111,3], [n12,2], [n2,1], [n3,1], [n31,2]], walker.nodes )
38
42
 
39
43
  walker.init
40
44
  @plugin.execute( root, walker, :backward )
41
45
  assert_equal( [[n111,3], [n11,2], [n12,2], [n1,1], [n2,1], [n31,2], [n3,1], [root,0]], walker.nodes )
46
+ walker.init
47
+ @plugin.execute( root, nil, :backward )
48
+ assert_equal( [[n111,3], [n11,2], [n12,2], [n1,1], [n2,1], [n31,2], [n3,1], [root,0]], walker.nodes )
42
49
  end
43
50
 
44
51
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: webgen
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.1
7
- date: 2007-01-12 00:00:00 +01:00
6
+ version: 0.4.2
7
+ date: 2007-02-28 00:00:00 +01:00
8
8
  summary: webgen is a templated based static Web site generator.
9
9
  require_paths:
10
10
  - lib
@@ -38,6 +38,7 @@ files:
38
38
  - VERSION
39
39
  - bin/webgen
40
40
  - lib/webgen/composite.rb
41
+ - lib/webgen/sipttra_format.rb
41
42
  - lib/webgen/config.rb
42
43
  - lib/webgen/test.rb
43
44
  - lib/webgen/content.rb
@@ -57,6 +58,7 @@ files:
57
58
  - lib/webgen/plugins/tags/wikilink.rb
58
59
  - lib/webgen/plugins/tags/menu.rb
59
60
  - lib/webgen/plugins/tags/meta.rb
61
+ - lib/webgen/plugins/tags/customvar.rb
60
62
  - lib/webgen/plugins/tags/block.rb
61
63
  - lib/webgen/plugins/tags/includefile.rb
62
64
  - lib/webgen/plugins/tags/breadcrumbtrail.rb
@@ -84,6 +86,7 @@ files:
84
86
  - lib/webgen/plugins/filehandlers/copy.rb
85
87
  - lib/webgen/plugins/filehandlers/gallery.rb
86
88
  - lib/webgen/plugins/filehandlers/template.rb
89
+ - lib/webgen/plugins/filehandlers/sipttra.rb
87
90
  - lib/webgen/plugins/filehandlers/directory.rb
88
91
  - lib/webgen/plugins/filehandlers/page.rb
89
92
  - lib/webgen/plugins/filehandlers/filehandler.rb
@@ -97,6 +100,7 @@ files:
97
100
  - data/webgen/icon_mapping.yaml
98
101
  - data/webgen/website_templates
99
102
  - data/webgen/website_styles
103
+ - data/webgen/sipttra_styles
100
104
  - data/webgen/resources
101
105
  - data/webgen/gallery_styles
102
106
  - data/webgen/data/ISO-639-2_values_8bits.txt
@@ -233,6 +237,13 @@ files:
233
237
  - data/webgen/website_styles/1024px/images
234
238
  - data/webgen/website_styles/1024px/default.template
235
239
  - data/webgen/website_styles/1024px/images/background.gif
240
+ - data/webgen/sipttra_styles/default
241
+ - data/webgen/sipttra_styles/default/js
242
+ - data/webgen/sipttra_styles/default/css
243
+ - data/webgen/sipttra_styles/default/sipttra.template
244
+ - data/webgen/sipttra_styles/default/README
245
+ - data/webgen/sipttra_styles/default/js/sipttra.js
246
+ - data/webgen/sipttra_styles/default/css/sipttra.rcss
236
247
  - data/webgen/resources/icons
237
248
  - data/webgen/resources/emoticons
238
249
  - data/webgen/resources/images
@@ -365,6 +376,8 @@ files:
365
376
  - test/unittests/tc_tags_tag_processor.rb
366
377
  - test/unittests/tc_menustyles_horizontal.rb
367
378
  - test/unittests/tc_menustyles_vertical.rb
379
+ - test/unittests/tc_tags_customvar.rb
380
+ - test/unittests/tc_filehandler_sipttra.rb
368
381
  - test/unittests/tc_contentconverters_xmlbuilder.rb
369
382
  - test/unittests/tc_tags_download.rb
370
383
  - test/unittests/tc_listener.rb
@@ -394,6 +407,7 @@ files:
394
407
  - test/unittests/tc_smileyreplacer.rb
395
408
  - test/unittests/tc_tags_menu.rb
396
409
  - test/unittests/tc_tags_meta.rb
410
+ - test/unittests/tc_sipttra_format.rb
397
411
  - test/unittests/tc_filehandler_copy.rb
398
412
  - test/unittests/tc_languages.rb
399
413
  - test/unittests/tc_website.rb
@@ -402,6 +416,7 @@ files:
402
416
  - test/unittests/tc_tags_block.rb
403
417
  - test/unittests/tc_menustyles_vertical_dropdown.rb
404
418
  - test/fixtures/tc_tags_tag_processor
419
+ - test/fixtures/tc_sipttra_format
405
420
  - test/fixtures/tc_website
406
421
  - test/fixtures/tc_tags_includefile
407
422
  - test/fixtures/tc_filehandler_gallery
@@ -414,6 +429,7 @@ files:
414
429
  - test/fixtures/tc_filehandler_page
415
430
  - test/fixtures/tc_tags_tag_processor/test_file1
416
431
  - test/fixtures/tc_tags_tag_processor/testtag.rb
432
+ - test/fixtures/tc_sipttra_format/test.sipttra
417
433
  - test/fixtures/tc_website/correct.yaml
418
434
  - test/fixtures/tc_website/meta_info_test.yaml
419
435
  - test/fixtures/tc_website/incorrect_structure.yaml
@@ -451,6 +467,7 @@ files:
451
467
  - test/fixtures/sample_site/src/embedded.rhtml
452
468
  - test/fixtures/sample_site/src/index.de.page
453
469
  - test/fixtures/sample_site/src/invalid.template
470
+ - test/fixtures/sample_site/src/test.todo
454
471
  - test/fixtures/sample_site/src/index.en.page
455
472
  - test/fixtures/sample_site/src/dir1/dir11
456
473
  - test/fixtures/sample_site/src/dir1/file11.page
@@ -467,6 +484,9 @@ files:
467
484
  - doc/config.yaml
468
485
  - doc/plugin
469
486
  - doc/metainfo.yaml
487
+ - doc/src/js
488
+ - doc/src/css
489
+ - doc/src/sipttra.template
470
490
  - doc/src/default.css
471
491
  - doc/src/features.page
472
492
  - doc/src/index.page
@@ -474,15 +494,21 @@ files:
474
494
  - doc/src/download.page
475
495
  - doc/src/images
476
496
  - doc/src/default.template
497
+ - doc/src/project.todo
477
498
  - doc/src/examples
478
499
  - doc/src/plugin.template
479
500
  - doc/src/news.page
501
+ - doc/src/js/sipttra.js
502
+ - doc/src/css/sipttra.rcss
503
+ - doc/src/documentation/howto.page
480
504
  - doc/src/documentation/extending_webgen.page
481
505
  - doc/src/documentation/index.page
482
506
  - doc/src/documentation/basics.page
483
507
  - doc/src/documentation/tutorial.page
484
508
  - doc/src/documentation/references
485
509
  - doc/src/documentation/plugins
510
+ - doc/src/documentation/references/resource_reference.page
511
+ - doc/src/documentation/references/sipttra_format.page
486
512
  - doc/src/documentation/references/index.page
487
513
  - doc/src/documentation/references/parameter_reference.page
488
514
  - doc/src/documentation/references/webpage_format.page
@@ -508,6 +534,7 @@ files:
508
534
  - doc/src/documentation/plugins/tag/block.page
509
535
  - doc/src/documentation/plugins/tag/meta.page
510
536
  - doc/src/documentation/plugins/tag/langbar.de.page
537
+ - doc/src/documentation/plugins/tag/customvar.page
511
538
  - doc/src/documentation/plugins/tag/wikilink.page
512
539
  - doc/src/documentation/plugins/tag/includefile.page
513
540
  - doc/src/documentation/plugins/contentconverter/html.page
@@ -528,6 +555,7 @@ files:
528
555
  - doc/src/documentation/plugins/file/galleryhandler.page
529
556
  - doc/src/documentation/plugins/file/thumbnailwriter.page
530
557
  - doc/src/documentation/plugins/file/pagehandler.page
558
+ - doc/src/documentation/plugins/file/sipttrahandler.page
531
559
  - doc/src/documentation/plugins/misc/smileyreplacer.page
532
560
  - doc/src/documentation/plugins/misc/index.page
533
561
  - doc/src/documentation/plugins/misc/syntaxhighlighter.page
@@ -546,8 +574,12 @@ files:
546
574
  - doc/src/images/menuhover.jpg
547
575
  - doc/src/images/bodybg.jpg
548
576
  - doc/src/images/footerbg.jpg
577
+ - doc/src/examples/example_sites
549
578
  - doc/src/examples/index.page
550
579
  - doc/src/examples/images
580
+ - doc/src/examples/example_sites/photo_gallery.zip
581
+ - doc/src/examples/example_sites/index.page
582
+ - doc/src/examples/example_sites/personal.zip
551
583
  - doc/src/examples/images/image01.jpg
552
584
  - doc/src/examples/images/image02.jpg
553
585
  - doc/src/examples/images/image03.jpg
@@ -570,6 +602,8 @@ files:
570
602
  - doc/plugin/emoticon.rb
571
603
  - doc/plugin/extension.rb
572
604
  - doc/plugin/listpluginparameters.rb
605
+ - man/man1
606
+ - man/man1/webgen.1
573
607
  test_files: []
574
608
 
575
609
  rdoc_options: