webgen 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,4 +1,34 @@
1
1
  ------------------------------------------------------------------------
2
+ r231 | thomas | 2005-03-17 10:31:00 +0100 (Thu, 17 Mar 2005) | 1 line
3
+ Changed paths:
4
+ M /trunk/webgen/Rakefile
5
+
6
+ * rake clobber now deletes test/webgen.log
7
+ ------------------------------------------------------------------------
8
+ r230 | thomas | 2005-03-17 10:29:43 +0100 (Thu, 17 Mar 2005) | 2 lines
9
+ Changed paths:
10
+ M /trunk/webgen/doc/src/index.page
11
+ M /trunk/webgen/lib/webgen/plugins/tags/executecommand.rb
12
+ M /trunk/webgen/lib/webgen/webgen.rb
13
+
14
+ * fixed bug: webgen -v now prints correct version number
15
+ * fixed bug in executecommand tag: if command could not be executed, webgen was aborted
16
+ ------------------------------------------------------------------------
17
+ r229 | thomas | 2005-03-17 10:20:12 +0100 (Thu, 17 Mar 2005) | 2 lines
18
+ Changed paths:
19
+ M /trunk/webgen/doc/src/index.page
20
+ M /trunk/webgen/lib/webgen/configuration.rb
21
+
22
+ * bumped version number
23
+ * updated main index.page
24
+ ------------------------------------------------------------------------
25
+ r228 | thomas | 2005-03-17 10:16:16 +0100 (Thu, 17 Mar 2005) | 1 line
26
+ Changed paths:
27
+ M /trunk/webgen/TODO
28
+ M /trunk/webgen/lib/webgen/webgen.rb
29
+
30
+ * fixed rubyforge bug #1637
31
+ ------------------------------------------------------------------------
2
32
  r226 | thomas | 2005-03-16 16:34:13 +0100 (Wed, 16 Mar 2005) | 1 line
3
33
  Changed paths:
4
34
  M /trunk/webgen/TODO
data/Rakefile CHANGED
@@ -87,7 +87,7 @@ rd = Rake::RDocTask.new do |rdoc|
87
87
  rdoc.rdoc_files.include( 'lib/**/*.rb' )
88
88
  end
89
89
 
90
-
90
+ CLOBBER << "test/webgen.log"
91
91
  task :test do |t|
92
92
  chdir 'test' do
93
93
  ruby "-I../lib -I. runtests.rb"
data/TODO CHANGED
@@ -1,5 +1,7 @@
1
1
  ---- CURRENT ----
2
2
 
3
+ * create tests for methods in webgen.rb
4
+ * webgen -c => output same info as on docu pages
3
5
  * reloctable tag: correct output for complex URLS???
4
6
  * check if duplicate nodes are created??? by using a tag in a template
5
7
  * allow a template to use another template (templates as page description files?) (template2 uses template1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/doc/src/index.page CHANGED
@@ -12,6 +12,12 @@ Choose from the menu what you want to see from or know about webgen!
12
12
 
13
13
  h2. News
14
14
 
15
+ *Webgen 0.3.2 released!!!*
16
+
17
+ Bug fix release for bug #1637 and other bugs
18
+
19
+ h2. News
20
+
15
21
  *Webgen 0.3.1 released!!!*
16
22
 
17
23
  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.1-1'
6
+ version '0.3.2-1'
7
7
  classification Application
8
8
  build do
9
9
  installdocs %w[COPYING ChangeLog TODO]
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: configuration.rb 217 2005-03-11 15:15:54Z thomas $
4
+ # $Id: configuration.rb 229 2005-03-17 09:20:12Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -43,7 +43,7 @@ end
43
43
 
44
44
  module Webgen
45
45
 
46
- VERSION = [0, 3, 1]
46
+ VERSION = [0, 3, 2]
47
47
  SUMMARY = "Webgen is a templated based static website generator."
48
48
  DESCRIPTION = "Webgen is a web page generator implemented in Ruby. " \
49
49
  "It is used to generate static web pages from templates and page " \
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: executecommand.rb 203 2005-02-21 18:42:04Z thomas $
4
+ # $Id: executecommand.rb 230 2005-03-17 09:29:43Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -43,7 +43,12 @@ module Tags
43
43
 
44
44
  def process_tag( tag, node, refNode )
45
45
  @processOutput = get_param( 'processOutput' )
46
- output = ( get_param( 'command' ) ? `#{get_param( 'command' )}` : '' )
46
+ begin
47
+ output = ( get_param( 'command' ) ? `#{get_param( 'command' )}` : '' )
48
+ rescue StandardError => e
49
+ output = ''
50
+ logger.error { "Could not execute command #{get_param( 'command' )}: #{e.message}" }
51
+ end
47
52
  output = CGI::escapeHTML( output ) if get_param( 'escapeHTML' )
48
53
  output
49
54
  end
data/lib/webgen/webgen.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #
2
2
  #--
3
3
  #
4
- # $Id: webgen.rb 203 2005-02-21 18:42:04Z thomas $
4
+ # $Id: webgen.rb 230 2005-03-17 09:29:43Z thomas $
5
5
  #
6
6
  # webgen: template based static website generator
7
7
  # Copyright (C) 2004 Thomas Leitner
@@ -83,7 +83,7 @@ module Webgen
83
83
  opts.on( "--list-configuration", "-c", "List all plugin configuration parameters" ) { main = method( :runListConfiguration ) }
84
84
  opts.on_tail( "--help", "Display this help screen" ) { puts opts; exit }
85
85
  opts.on_tail( "--version", "-v", "Show version" ) do
86
- puts "Webgen #{Webgen::VERSION}"
86
+ puts "Webgen #{Webgen::VERSION.join('.')}"
87
87
  exit
88
88
  end
89
89
  end
@@ -123,8 +123,8 @@ module Webgen
123
123
 
124
124
  ljustlength = 30 + Color.green.length + Color.reset.length
125
125
  header = ''
126
- Plugin.config.sort { |a, b| a[0] <=> b[0] }.each do |classname, data|
127
- newHeader = headers[classname[/^.*?(?=::)/]]
126
+ Plugin.config.sort { |a, b| a[0].name <=> b[0].name }.each do |klass, data|
127
+ newHeader = headers[klass.name[/^.*?(?=::)/]]
128
128
  unless newHeader == header
129
129
  print "\n #{Color.bold}#{newHeader}#{Color.reset}:\n";
130
130
  header = newHeader
@@ -137,7 +137,7 @@ module Webgen
137
137
  def runListConfiguration
138
138
  print "List of configuration parameters:\n\n"
139
139
  ljustlength = 20 + Color.green.length + Color.reset.length
140
- Plugin.config.sort.each do |classname, data|
140
+ Plugin.config.sort { |a, b| a[0].name <=> b[0].name }.each do |klass, data|
141
141
  next if data.params.nil?
142
142
  print " #{Color.bold}#{data.plugin}#{Color.reset}:\n"
143
143
  data.params.sort.each do |key, item|
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
3
3
  specification_version: 1
4
4
  name: webgen
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.1
7
- date: 2005-03-16
6
+ version: 0.3.2
7
+ date: 2005-03-17
8
8
  summary: Webgen is a templated based static website generator.
9
9
  require_paths:
10
10
  - lib