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.
- data/Rakefile +5 -6
- data/data/webgen/passive_sources/images/generated_by_webgen.png +0 -0
- data/data/webgen/passive_sources/images/webgen_logo.png +0 -0
- data/data/webgen/passive_sources/templates/atom_feed.template +38 -0
- data/data/webgen/passive_sources/templates/rss_feed.template +28 -0
- data/data/webgen/resources.yaml +2 -1
- data/doc/contentprocessor/builder.page +1 -1
- data/doc/contentprocessor/erb.page +5 -2
- data/doc/contentprocessor/erubis.page +2 -2
- data/doc/extensions.page +1 -1
- data/doc/manual.page +56 -26
- data/doc/reference_configuration.page +36 -1
- data/doc/reference_website_styles.page +1 -1
- data/doc/sourcehandler/feed.page +6 -11
- data/doc/tag/includefile.page +1 -1
- data/lib/webgen/cli/apply_command.rb +1 -1
- data/lib/webgen/cli/utils.rb +2 -2
- data/lib/webgen/common.rb +0 -9
- data/lib/webgen/contentprocessor/blocks.rb +60 -36
- data/lib/webgen/contentprocessor/builder.rb +2 -2
- data/lib/webgen/contentprocessor/erb.rb +3 -2
- data/lib/webgen/contentprocessor/erubis.rb +2 -2
- data/lib/webgen/contentprocessor/haml.rb +2 -2
- data/lib/webgen/contentprocessor/maruku.rb +1 -1
- data/lib/webgen/contentprocessor/sass.rb +2 -2
- data/lib/webgen/contentprocessor/tags.rb +25 -11
- data/lib/webgen/context.rb +4 -1
- data/lib/webgen/context/render.rb +32 -0
- data/lib/webgen/context/tags.rb +20 -0
- data/lib/webgen/default_config.rb +4 -1
- data/lib/webgen/deprecated.rb +37 -4
- data/lib/webgen/node.rb +37 -38
- data/lib/webgen/path.rb +151 -54
- data/lib/webgen/source.rb +6 -6
- data/lib/webgen/source/stacked.rb +13 -5
- data/lib/webgen/sourcehandler.rb +71 -45
- data/lib/webgen/sourcehandler/base.rb +51 -21
- data/lib/webgen/sourcehandler/copy.rb +4 -4
- data/lib/webgen/sourcehandler/directory.rb +3 -9
- data/lib/webgen/sourcehandler/feed.rb +23 -49
- data/lib/webgen/sourcehandler/fragment.rb +10 -8
- data/lib/webgen/sourcehandler/memory.rb +9 -10
- data/lib/webgen/sourcehandler/metainfo.rb +9 -9
- data/lib/webgen/sourcehandler/page.rb +5 -5
- data/lib/webgen/sourcehandler/sitemap.rb +3 -3
- data/lib/webgen/sourcehandler/template.rb +6 -6
- data/lib/webgen/sourcehandler/virtual.rb +19 -17
- data/lib/webgen/tag/base.rb +34 -26
- data/lib/webgen/tag/breadcrumbtrail.rb +3 -3
- data/lib/webgen/tag/executecommand.rb +3 -3
- data/lib/webgen/tag/langbar.rb +2 -2
- data/lib/webgen/tag/link.rb +3 -3
- data/lib/webgen/tag/menu.rb +2 -2
- data/lib/webgen/tag/metainfo.rb +1 -1
- data/lib/webgen/tag/relocatable.rb +17 -21
- data/lib/webgen/tag/tikz.rb +5 -6
- data/lib/webgen/tree.rb +7 -7
- data/lib/webgen/version.rb +1 -1
- data/lib/webgen/website.rb +4 -2
- data/misc/default.css +8 -2
- data/misc/default.template +2 -2
- data/misc/logo.svg +313 -0
- data/misc/style.page +1 -1
- data/test/helper.rb +2 -2
- data/test/test_common_sitemap.rb +1 -1
- data/test/test_contentprocessor_blocks.rb +12 -4
- data/test/test_contentprocessor_builder.rb +2 -1
- data/test/test_contentprocessor_erb.rb +2 -1
- data/test/test_contentprocessor_erubis.rb +1 -1
- data/test/test_contentprocessor_fragments.rb +12 -11
- data/test/test_contentprocessor_haml.rb +2 -1
- data/test/test_contentprocessor_maruku.rb +1 -0
- data/test/test_contentprocessor_rdiscount.rb +1 -0
- data/test/test_contentprocessor_rdoc.rb +1 -0
- data/test/test_contentprocessor_sass.rb +1 -0
- data/test/test_contentprocessor_tags.rb +13 -0
- data/test/test_context.rb +28 -0
- data/test/test_node.rb +40 -20
- data/test/test_path.rb +106 -65
- data/test/test_source_filesystem.rb +1 -1
- data/test/test_source_stacked.rb +19 -6
- data/test/test_sourcehandler_base.rb +53 -47
- data/test/test_sourcehandler_copy.rb +6 -6
- data/test/test_sourcehandler_directory.rb +8 -12
- data/test/test_sourcehandler_feed.rb +10 -6
- data/test/test_sourcehandler_fragment.rb +6 -5
- data/test/test_sourcehandler_main.rb +39 -0
- data/test/test_sourcehandler_memory.rb +4 -4
- data/test/test_sourcehandler_metainfo.rb +10 -10
- data/test/test_sourcehandler_page.rb +9 -9
- data/test/test_sourcehandler_sitemap.rb +4 -4
- data/test/test_sourcehandler_template.rb +14 -14
- data/test/test_sourcehandler_virtual.rb +9 -5
- data/test/test_tag_base.rb +2 -2
- data/test/test_tag_executecommand.rb +1 -1
- data/test/test_tag_link.rb +4 -3
- data/test/test_tag_menu.rb +15 -15
- data/test/test_tag_metainfo.rb +1 -0
- data/test/test_tag_relocatable.rb +2 -1
- data/test/test_tag_tikz.rb +3 -3
- data/test/test_tree.rb +8 -8
- data/test/test_website.rb +15 -0
- metadata +14 -14
- 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.
|
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-
|
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.
|
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
|