webgen 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/ChangeLog +14 -6
  2. data/TODO +1 -0
  3. data/VERSION +1 -1
  4. data/data/webgen/gallery-creator/default.png +0 -0
  5. data/doc/src/index.page +4 -0
  6. data/install.rb +1 -1
  7. data/lib/webgen.rb +4 -2
  8. data/lib/webgen/composite.rb +1 -1
  9. data/lib/webgen/listener.rb +1 -1
  10. data/lib/webgen/node.rb +1 -1
  11. data/lib/webgen/plugin.rb +1 -1
  12. data/lib/webgen/plugins/contenthandlers/default.rb +1 -1
  13. data/lib/webgen/plugins/contenthandlers/html.rb +1 -1
  14. data/lib/webgen/plugins/contenthandlers/markdown.rb +1 -1
  15. data/lib/webgen/plugins/contenthandlers/rdoc.rb +1 -1
  16. data/lib/webgen/plugins/contenthandlers/textile.rb +1 -1
  17. data/lib/webgen/plugins/coreplugins/configuration.rb +2 -2
  18. data/lib/webgen/plugins/coreplugins/logging.rb +1 -1
  19. data/lib/webgen/plugins/coreplugins/resourcemanager.rb +1 -1
  20. data/lib/webgen/plugins/filehandlers/backing.rb +1 -1
  21. data/lib/webgen/plugins/filehandlers/copy.rb +1 -1
  22. data/lib/webgen/plugins/filehandlers/directory.rb +1 -1
  23. data/lib/webgen/plugins/filehandlers/filehandler.rb +1 -1
  24. data/lib/webgen/plugins/filehandlers/gallery.rb +4 -2
  25. data/lib/webgen/plugins/filehandlers/page.rb +1 -1
  26. data/lib/webgen/plugins/filehandlers/template.rb +1 -1
  27. data/lib/webgen/plugins/gallerylayouters/default.rb +1 -1
  28. data/lib/webgen/plugins/htmlvalidators/default.rb +1 -1
  29. data/lib/webgen/plugins/htmlvalidators/xmllint.rb +1 -1
  30. data/lib/webgen/plugins/menustyles/default.rb +1 -1
  31. data/lib/webgen/plugins/menustyles/horizontal.rb +1 -1
  32. data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +1 -1
  33. data/lib/webgen/plugins/menustyles/partial.rb +1 -1
  34. data/lib/webgen/plugins/menustyles/vertical.rb +1 -1
  35. data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +1 -1
  36. data/lib/webgen/plugins/miscplugins/smileyreplacer.rb +1 -1
  37. data/lib/webgen/plugins/miscplugins/treewalker.rb +1 -1
  38. data/lib/webgen/plugins/tags/breadcrumbtrail.rb +1 -1
  39. data/lib/webgen/plugins/tags/date.rb +1 -1
  40. data/lib/webgen/plugins/tags/download.rb +1 -1
  41. data/lib/webgen/plugins/tags/executecommand.rb +1 -1
  42. data/lib/webgen/plugins/tags/includefile.rb +1 -1
  43. data/lib/webgen/plugins/tags/langbar.rb +1 -1
  44. data/lib/webgen/plugins/tags/menu.rb +1 -1
  45. data/lib/webgen/plugins/tags/meta.rb +1 -1
  46. data/lib/webgen/plugins/tags/relocatable.rb +1 -1
  47. data/lib/webgen/plugins/tags/sitemap.rb +1 -1
  48. data/lib/webgen/plugins/tags/tags.rb +1 -1
  49. data/lib/webgen/plugins/tags/wikilink.rb +1 -1
  50. metadata +313 -312
data/ChangeLog CHANGED
@@ -1,10 +1,18 @@
1
1
  ------------------------------------------------------------------------
2
- r361 | thomas | 2005-11-25 15:17:13 +0100 (Fri, 25 Nov 2005) | 1 line
3
- Changed paths:
4
- M /trunk/webgen/TODO
5
- M /trunk/webgen/lib/webgen/plugins/filehandlers/gallery.rb
6
-
7
- * fixed bug #2860: generated gallery page content missed ---\n at the beginning
2
+ r369 | thomas | 2005-12-24 12:37:40 +0100 (Sat, 24 Dec 2005) | 1 line
3
+ Changed paths:
4
+ A /versions/webgen-0.3.8 (from /trunk/webgen:360)
5
+ R /versions/webgen-0.3.8/TODO (from /trunk/webgen/TODO:368)
6
+ R /versions/webgen-0.3.8/data/webgen/gallery-creator/default.png (from /trunk/webgen/data/webgen/gallery-creator/default.png:366)
7
+ R /versions/webgen-0.3.8/doc/src/index.page (from /trunk/webgen/doc/src/index.page:368)
8
+ R /versions/webgen-0.3.8/lib/webgen/plugins/coreplugins/configuration.rb (from /trunk/webgen/lib/webgen/plugins/coreplugins/configuration.rb:368)
9
+ R /versions/webgen-0.3.8/lib/webgen/plugins/filehandlers/gallery.rb (from /trunk/webgen/lib/webgen/plugins/filehandlers/gallery.rb:368)
10
+ R /versions/webgen-0.3.8/lib/webgen.rb (from /trunk/webgen/lib/webgen.rb:368)
11
+ R /versions/webgen-0.3.8/otherdata/web-for-gallery-pics/create_pictures.rb (from /trunk/webgen/otherdata/web-for-gallery-pics/create_pictures.rb:366)
12
+ R /versions/webgen-0.3.8/otherdata/web-for-gallery-pics/plugin/gallery.rb (from /trunk/webgen/otherdata/web-for-gallery-pics/plugin/gallery.rb:366)
13
+ R /versions/webgen-0.3.8/otherdata/web-for-gallery-pics/src/gallery.sample (from /trunk/webgen/otherdata/web-for-gallery-pics/src/gallery.sample:366)
14
+
15
+ * added version 0.3.8 of webgen
8
16
  ------------------------------------------------------------------------
9
17
  r360 | thomas | 2005-11-02 09:24:26 +0100 (Wed, 02 Nov 2005) | 5 lines
10
18
  Changed paths:
data/TODO CHANGED
@@ -1,5 +1,6 @@
1
1
  ---- CURRENT ----
2
2
 
3
+ * BUG command clean does not delete all files (e.g. no resources, other files generated by plugins [source plugin])
3
4
  * show available styles and templates in docu and in online help (webgen help create)
4
5
  * think about plugin system, @@config etc - should work from within webgen-gui, not only once from webgen
5
6
  * make webgen source installation work with correct cmdparse version
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/doc/src/index.page CHANGED
@@ -18,6 +18,10 @@ list":http://rubyforge.org/mail/?group_id=296 available if you have any question
18
18
 
19
19
  h2. News
20
20
 
21
+ <b>29.12.2005 - webgen 0.3.8 release!!!</b>
22
+
23
+ Bug fix release
24
+
21
25
  <b>27.11.2005 - webgen 0.3.7 released!!!</b>
22
26
 
23
27
  Major changes:
data/install.rb CHANGED
@@ -3,7 +3,7 @@ require 'rpa/install'
3
3
 
4
4
  class Install_webgen < RPA::Install::FullInstaller
5
5
  name 'webgen'
6
- version '0.3.7-1'
6
+ version '0.3.8-1'
7
7
  classification Application
8
8
  build do
9
9
  installdocs %w[COPYING ChangeLog TODO]
data/lib/webgen.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: webgen.rb 360 2005-11-02 08:24:26Z thomas $
4
+ # $Id: webgen.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -70,7 +70,7 @@ module Webgen
70
70
  end
71
71
 
72
72
  def usage
73
- "Usage: #{commandparser.program_name} [global options] create DIR"
73
+ "Usage: #{commandparser.program_name} [global options] create [options] DIR"
74
74
  end
75
75
 
76
76
  def execute( args )
@@ -100,6 +100,8 @@ module Webgen
100
100
  self.send( func, list, options.merge( :verbose => true ) )
101
101
  end
102
102
 
103
+ module_function :ask_before_delete
104
+
103
105
  end
104
106
 
105
107
  class CleanWalker < Webgen::Plugin
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: composite.rb 271 2005-05-09 08:50:47Z thomas $
4
+ # $Id: composite.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: listener.rb 271 2005-05-09 08:50:47Z thomas $
4
+ # $Id: listener.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
data/lib/webgen/node.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: node.rb 336 2005-08-25 06:23:46Z thomas $
4
+ # $Id: node.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
data/lib/webgen/plugin.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: plugin.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: plugin.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: default.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: default.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: html.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: html.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: markdown.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: markdown.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: rdoc.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: rdoc.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: textile.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: textile.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: configuration.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: configuration.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -38,7 +38,7 @@ end
38
38
 
39
39
  module Webgen
40
40
 
41
- VERSION = [0, 3, 7]
41
+ VERSION = [0, 3, 8]
42
42
  SUMMARY = "Webgen is a templated based static website generator."
43
43
  DESCRIPTION = "Webgen is a web page generator implemented in Ruby. " \
44
44
  "It is used to generate static web pages from templates and page " \
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: logging.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: logging.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: resourcemanager.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: resourcemanager.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: backing.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: backing.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: copy.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: copy.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: directory.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: directory.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: filehandler.rb 360 2005-11-02 08:24:26Z thomas $
4
+ # $Id: filehandler.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: gallery.rb 361 2005-11-25 14:17:13Z thomas $
4
+ # $Id: gallery.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -82,7 +82,9 @@ module FileHandlers
82
82
 
83
83
  def call_layouter( type, metainfo, *args )
84
84
  content = Webgen::Plugin['DefaultGalleryLayouter'].get_layout( get_param( 'layout' ) ).send( type.to_s, *args )
85
- "---\n#{metainfo.to_yaml}\n---\n#{content}"
85
+ temp = metainfo.to_yaml
86
+ temp = "---\n" + temp unless /^---\s$/ =~ temp
87
+ "#{temp}\n---\n#{content}"
86
88
  end
87
89
 
88
90
  def create_gallery( images, parent )
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: page.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: page.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: template.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: template.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: default.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: default.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: default.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: default.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: xmllint.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: xmllint.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: default.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: default.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: horizontal.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: horizontal.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: horizontal_dropdown.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: horizontal_dropdown.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: partial.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: partial.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: vertical.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: vertical.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: vertical_dropdown.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: vertical_dropdown.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: smileyreplacer.rb 350 2005-09-02 09:44:23Z thomas $
4
+ # $Id: smileyreplacer.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: treewalker.rb 348 2005-09-02 08:43:33Z thomas $
4
+ # $Id: treewalker.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: breadcrumbtrail.rb 355 2005-09-05 18:04:17Z thomas $
4
+ # $Id: breadcrumbtrail.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: date.rb 324 2005-07-04 12:54:25Z thomas $
4
+ # $Id: date.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: download.rb 349 2005-09-02 09:28:06Z thomas $
4
+ # $Id: download.rb 369 2005-12-24 11:37:40Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner