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 +30 -0
- data/Rakefile +1 -1
- data/TODO +2 -0
- data/VERSION +1 -1
- data/doc/src/index.page +6 -0
- data/install.rb +1 -1
- data/lib/webgen/configuration.rb +2 -2
- data/lib/webgen/plugins/tags/executecommand.rb +7 -2
- data/lib/webgen/webgen.rb +5 -5
- metadata +2 -2
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
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
|
+
0.3.2
|
data/doc/src/index.page
CHANGED
data/install.rb
CHANGED
data/lib/webgen/configuration.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
#--
|
3
3
|
#
|
4
|
-
# $Id: configuration.rb
|
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,
|
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
|
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
|
-
|
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
|
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 |
|
127
|
-
newHeader = headers[
|
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 |
|
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.
|
7
|
-
date: 2005-03-
|
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
|