gettalong-webgen 0.5.8.20090507 → 0.5.9.20090620

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/Rakefile +5 -6
  2. data/data/webgen/passive_sources/images/generated_by_webgen.png +0 -0
  3. data/data/webgen/passive_sources/images/webgen_logo.png +0 -0
  4. data/data/webgen/passive_sources/templates/atom_feed.template +38 -0
  5. data/data/webgen/passive_sources/templates/rss_feed.template +28 -0
  6. data/data/webgen/resources.yaml +2 -1
  7. data/doc/contentprocessor/builder.page +1 -1
  8. data/doc/contentprocessor/erb.page +5 -2
  9. data/doc/contentprocessor/erubis.page +2 -2
  10. data/doc/extensions.page +1 -1
  11. data/doc/manual.page +56 -26
  12. data/doc/reference_configuration.page +36 -1
  13. data/doc/reference_website_styles.page +1 -1
  14. data/doc/sourcehandler/feed.page +6 -11
  15. data/doc/tag/includefile.page +1 -1
  16. data/lib/webgen/cli/apply_command.rb +1 -1
  17. data/lib/webgen/cli/utils.rb +2 -2
  18. data/lib/webgen/common.rb +0 -9
  19. data/lib/webgen/contentprocessor/blocks.rb +60 -36
  20. data/lib/webgen/contentprocessor/builder.rb +2 -2
  21. data/lib/webgen/contentprocessor/erb.rb +3 -2
  22. data/lib/webgen/contentprocessor/erubis.rb +2 -2
  23. data/lib/webgen/contentprocessor/haml.rb +2 -2
  24. data/lib/webgen/contentprocessor/maruku.rb +1 -1
  25. data/lib/webgen/contentprocessor/sass.rb +2 -2
  26. data/lib/webgen/contentprocessor/tags.rb +25 -11
  27. data/lib/webgen/context.rb +4 -1
  28. data/lib/webgen/context/render.rb +32 -0
  29. data/lib/webgen/context/tags.rb +20 -0
  30. data/lib/webgen/default_config.rb +4 -1
  31. data/lib/webgen/deprecated.rb +37 -4
  32. data/lib/webgen/node.rb +37 -38
  33. data/lib/webgen/path.rb +151 -54
  34. data/lib/webgen/source.rb +6 -6
  35. data/lib/webgen/source/stacked.rb +13 -5
  36. data/lib/webgen/sourcehandler.rb +71 -45
  37. data/lib/webgen/sourcehandler/base.rb +51 -21
  38. data/lib/webgen/sourcehandler/copy.rb +4 -4
  39. data/lib/webgen/sourcehandler/directory.rb +3 -9
  40. data/lib/webgen/sourcehandler/feed.rb +23 -49
  41. data/lib/webgen/sourcehandler/fragment.rb +10 -8
  42. data/lib/webgen/sourcehandler/memory.rb +9 -10
  43. data/lib/webgen/sourcehandler/metainfo.rb +9 -9
  44. data/lib/webgen/sourcehandler/page.rb +5 -5
  45. data/lib/webgen/sourcehandler/sitemap.rb +3 -3
  46. data/lib/webgen/sourcehandler/template.rb +6 -6
  47. data/lib/webgen/sourcehandler/virtual.rb +19 -17
  48. data/lib/webgen/tag/base.rb +34 -26
  49. data/lib/webgen/tag/breadcrumbtrail.rb +3 -3
  50. data/lib/webgen/tag/executecommand.rb +3 -3
  51. data/lib/webgen/tag/langbar.rb +2 -2
  52. data/lib/webgen/tag/link.rb +3 -3
  53. data/lib/webgen/tag/menu.rb +2 -2
  54. data/lib/webgen/tag/metainfo.rb +1 -1
  55. data/lib/webgen/tag/relocatable.rb +17 -21
  56. data/lib/webgen/tag/tikz.rb +5 -6
  57. data/lib/webgen/tree.rb +7 -7
  58. data/lib/webgen/version.rb +1 -1
  59. data/lib/webgen/website.rb +4 -2
  60. data/misc/default.css +8 -2
  61. data/misc/default.template +2 -2
  62. data/misc/logo.svg +313 -0
  63. data/misc/style.page +1 -1
  64. data/test/helper.rb +2 -2
  65. data/test/test_common_sitemap.rb +1 -1
  66. data/test/test_contentprocessor_blocks.rb +12 -4
  67. data/test/test_contentprocessor_builder.rb +2 -1
  68. data/test/test_contentprocessor_erb.rb +2 -1
  69. data/test/test_contentprocessor_erubis.rb +1 -1
  70. data/test/test_contentprocessor_fragments.rb +12 -11
  71. data/test/test_contentprocessor_haml.rb +2 -1
  72. data/test/test_contentprocessor_maruku.rb +1 -0
  73. data/test/test_contentprocessor_rdiscount.rb +1 -0
  74. data/test/test_contentprocessor_rdoc.rb +1 -0
  75. data/test/test_contentprocessor_sass.rb +1 -0
  76. data/test/test_contentprocessor_tags.rb +13 -0
  77. data/test/test_context.rb +28 -0
  78. data/test/test_node.rb +40 -20
  79. data/test/test_path.rb +106 -65
  80. data/test/test_source_filesystem.rb +1 -1
  81. data/test/test_source_stacked.rb +19 -6
  82. data/test/test_sourcehandler_base.rb +53 -47
  83. data/test/test_sourcehandler_copy.rb +6 -6
  84. data/test/test_sourcehandler_directory.rb +8 -12
  85. data/test/test_sourcehandler_feed.rb +10 -6
  86. data/test/test_sourcehandler_fragment.rb +6 -5
  87. data/test/test_sourcehandler_main.rb +39 -0
  88. data/test/test_sourcehandler_memory.rb +4 -4
  89. data/test/test_sourcehandler_metainfo.rb +10 -10
  90. data/test/test_sourcehandler_page.rb +9 -9
  91. data/test/test_sourcehandler_sitemap.rb +4 -4
  92. data/test/test_sourcehandler_template.rb +14 -14
  93. data/test/test_sourcehandler_virtual.rb +9 -5
  94. data/test/test_tag_base.rb +2 -2
  95. data/test/test_tag_executecommand.rb +1 -1
  96. data/test/test_tag_link.rb +4 -3
  97. data/test/test_tag_menu.rb +15 -15
  98. data/test/test_tag_metainfo.rb +1 -0
  99. data/test/test_tag_relocatable.rb +2 -1
  100. data/test/test_tag_tikz.rb +3 -3
  101. data/test/test_tree.rb +8 -8
  102. data/test/test_website.rb +15 -0
  103. metadata +14 -14
  104. data/test/test_common.rb +0 -18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettalong-webgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8.20090507
4
+ version: 0.5.9.20090620
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-06 15:00:00 -07:00
12
+ date: 2009-06-19 15:00:00 -07:00
13
13
  default_executable: webgen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -140,17 +140,7 @@ dependencies:
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: 0.7.4.214
144
- version:
145
- - !ruby/object:Gem::Dependency
146
- name: feedtools
147
- type: :development
148
- version_requirement:
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: 0.2.29
143
+ version: 0.8.312
154
144
  version:
155
145
  - !ruby/object:Gem::Dependency
156
146
  name: erubis
@@ -204,6 +194,13 @@ files:
204
194
  - GPL
205
195
  - bin/webgen
206
196
  - data/webgen
197
+ - data/webgen/passive_sources
198
+ - data/webgen/passive_sources/images
199
+ - data/webgen/passive_sources/images/generated_by_webgen.png
200
+ - data/webgen/passive_sources/images/webgen_logo.png
201
+ - data/webgen/passive_sources/templates
202
+ - data/webgen/passive_sources/templates/atom_feed.template
203
+ - data/webgen/passive_sources/templates/rss_feed.template
207
204
  - data/webgen/resources.yaml
208
205
  - data/webgen/webgui
209
206
  - data/webgen/webgui/app.rb
@@ -435,6 +432,8 @@ files:
435
432
  - lib/webgen/contentprocessor/tags.rb
436
433
  - lib/webgen/contentprocessor.rb
437
434
  - lib/webgen/context/nodes.rb
435
+ - lib/webgen/context/render.rb
436
+ - lib/webgen/context/tags.rb
438
437
  - lib/webgen/context.rb
439
438
  - lib/webgen/coreext.rb
440
439
  - lib/webgen/default_config.rb
@@ -497,11 +496,11 @@ files:
497
496
  - misc/images/information.png
498
497
  - misc/images/quote.gif
499
498
  - misc/images/warning.png
499
+ - misc/logo.svg
500
500
  - misc/style.page
501
501
  - test/test_blackboard.rb
502
502
  - test/test_cache.rb
503
503
  - test/test_cli.rb
504
- - test/test_common.rb
505
504
  - test/test_common_sitemap.rb
506
505
  - test/test_configuration.rb
507
506
  - test/test_contentprocessor.rb
@@ -534,6 +533,7 @@ files:
534
533
  - test/test_sourcehandler_directory.rb
535
534
  - test/test_sourcehandler_feed.rb
536
535
  - test/test_sourcehandler_fragment.rb
536
+ - test/test_sourcehandler_main.rb
537
537
  - test/test_sourcehandler_memory.rb
538
538
  - test/test_sourcehandler_metainfo.rb
539
539
  - test/test_sourcehandler_page.rb
data/test/test_common.rb DELETED
@@ -1,18 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require 'test/unit'
4
- require 'webgen/common'
5
-
6
- class TestCommon < Test::Unit::TestCase
7
-
8
- def test_absolute_path
9
- assert_raise(ArgumentError) { Webgen::Common.absolute_path('test', 'test') }
10
- assert_equal('/', Webgen::Common.absolute_path('/', '/'))
11
- assert_equal('/dir', Webgen::Common.absolute_path('/dir', '/other'))
12
- assert_equal('/other/dir', Webgen::Common.absolute_path('dir', '/other'))
13
- assert_equal('/test/dir', Webgen::Common.absolute_path('../test/dir', '/other'))
14
- assert_equal('/', Webgen::Common.absolute_path('/..', '/'))
15
- assert_equal('/dir', Webgen::Common.absolute_path('/../dir/.', '/'))
16
- end
17
-
18
- end