Wiki2Go 1.14.3 → 1.14.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Web2Go/WebrickRequest.rb +1 -2
- data/lib/Wiki2Go/Install/make_site.rb +2 -2
- data/lib/Wiki2Go/Install/templates/admin_pages/regenerate.txt +2 -1
- data/lib/Wiki2Go/Web.rb +6 -6
- data/lib/Wiki2Go/Wiki2Go.rb +7 -2
- data/lib/Wiki2Go/Wiki2GoServlet.rb +1 -0
- data/lib/Wiki2Go/cgi/changes.rb +1 -1
- data/lib/Wiki2Go/cgi/display.rb +1 -1
- data/lib/Wiki2Go/cgi/edit.rb +1 -1
- data/lib/Wiki2Go/cgi/redirect.rb +1 -1
- data/lib/Wiki2Go/cgi/save.rb +1 -1
- data/lib/Wiki2Go/cgi/search.rb +1 -1
- data/lib/Wiki2Go/cgi/secure/admin.rb +1 -1
- data/lib/Wiki2Go/cgi/secure/generate_static.rb +1 -1
- data/lib/Wiki2Go/cgi/secure/removespam.rb +1 -1
- data/lib/Wiki2Go/cgi/upload.rb +1 -1
- data/lib/Wiki2Go/cgi/versions.rb +1 -1
- data/lib/Wiki2Go/cgi/view.rb +1 -1
- metadata +3 -3
@@ -95,8 +95,7 @@ module Web2Go
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def parse_parameters
|
98
|
-
form = { }
|
99
|
-
form = add_parameters(form,WEBrick::HTTPUtils::parse_query(@request.body))
|
98
|
+
form = add_parameters({ },WEBrick::HTTPUtils::parse_query(@request.body))
|
100
99
|
form = add_parameters(form,WEBrick::HTTPUtils::parse_query(@request.query_string))
|
101
100
|
form
|
102
101
|
end
|
@@ -5,7 +5,7 @@ require 'fileutils'
|
|
5
5
|
require 'optparse'
|
6
6
|
|
7
7
|
require 'rubygems'
|
8
|
-
WIKI2GO_VERSION = '1.14'
|
8
|
+
WIKI2GO_VERSION = '1.14.0'
|
9
9
|
require_gem "Wiki2Go","~>#{WIKI2GO_VERSION}"
|
10
10
|
|
11
11
|
require 'Wiki2Go/PublicWikiConfig'
|
@@ -297,7 +297,7 @@ module Wiki2Go
|
|
297
297
|
|
298
298
|
def Install.make_config(config,baseconfig)
|
299
299
|
template = <<-TEMPLATE_END
|
300
|
-
#!/usr/bin/env
|
300
|
+
#!/usr/bin/env ruby
|
301
301
|
|
302
302
|
#
|
303
303
|
require 'rubygems'
|
@@ -6,7 +6,8 @@
|
|
6
6
|
if !subwiki.nil? && subwiki.size > 0 then
|
7
7
|
subwiki = subwiki[0]
|
8
8
|
wiki = Wiki2Go::Wiki.new(@config)
|
9
|
-
pageweb =
|
9
|
+
pageweb = @web.clone
|
10
|
+
pageweb.name = subwiki
|
10
11
|
output = wiki.generate_html(pageweb)
|
11
12
|
end
|
12
13
|
|
data/lib/Wiki2Go/Web.rb
CHANGED
@@ -10,18 +10,18 @@ module Wiki2Go
|
|
10
10
|
|
11
11
|
class Web
|
12
12
|
# The name of the subwiki
|
13
|
-
|
13
|
+
attr_accessor :name
|
14
14
|
# The page of the subwiki
|
15
15
|
attr_accessor :current_page
|
16
16
|
# The 'verb' (action) that was executed
|
17
|
-
|
17
|
+
attr_accessor :verb
|
18
18
|
# URL to be used as the base for all URLs
|
19
|
-
|
20
|
-
|
19
|
+
attr_accessor :server
|
20
|
+
attr_accessor :port
|
21
21
|
# extension for scripts
|
22
|
-
|
22
|
+
attr_accessor :script_extension
|
23
23
|
# directory containing scripts
|
24
|
-
|
24
|
+
attr_accessor :script_prefix
|
25
25
|
|
26
26
|
MARKER = "#-#"
|
27
27
|
|
data/lib/Wiki2Go/Wiki2Go.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "Wiki2Go/WikiFormatter"
|
4
4
|
|
5
5
|
require 'Web2Go/ERB_Interpreter'
|
6
|
+
require 'Web2Go/MockRequest'
|
6
7
|
|
7
8
|
module Wiki2Go
|
8
9
|
|
@@ -176,13 +177,15 @@ module Wiki2Go
|
|
176
177
|
files.each do |file|
|
177
178
|
@config.log("Generating file #{file}")
|
178
179
|
report << "<li>#{file}</li>\r\n"
|
179
|
-
pageweb =
|
180
|
+
pageweb = @config.static_web(web)
|
181
|
+
pageweb.current_page = file
|
182
|
+
# pageweb = Wiki2Go::Web.new(web.server,web.port,web.script_prefix,"view",web.name,file)
|
180
183
|
save_html(pageweb)
|
181
184
|
end
|
182
185
|
changes = @config.storage.read_changes_in(web.name,20,true)
|
183
186
|
save_rss(web,changes)
|
184
187
|
report << "</ul>\r\n"
|
185
|
-
return report
|
188
|
+
return report.join
|
186
189
|
end
|
187
190
|
|
188
191
|
def admin(request)
|
@@ -214,8 +217,10 @@ module Wiki2Go
|
|
214
217
|
end
|
215
218
|
|
216
219
|
def save_html(web)
|
220
|
+
@config.log("Save html for #{web.inspect}")
|
217
221
|
if @config.generate_html then
|
218
222
|
static_web = @config.static_web(web)
|
223
|
+
@config.log("Save html for static #{static_web.inspect}")
|
219
224
|
@config.storage.save_html(static_web.name,static_web.current_page, view_html(static_web))
|
220
225
|
end
|
221
226
|
end
|
data/lib/Wiki2Go/cgi/changes.rb
CHANGED
data/lib/Wiki2Go/cgi/display.rb
CHANGED
data/lib/Wiki2Go/cgi/edit.rb
CHANGED
data/lib/Wiki2Go/cgi/redirect.rb
CHANGED
data/lib/Wiki2Go/cgi/save.rb
CHANGED
data/lib/Wiki2Go/cgi/search.rb
CHANGED
data/lib/Wiki2Go/cgi/upload.rb
CHANGED
data/lib/Wiki2Go/cgi/versions.rb
CHANGED
data/lib/Wiki2Go/cgi/view.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.10
|
3
3
|
specification_version: 1
|
4
4
|
name: Wiki2Go
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.14.
|
7
|
-
date: 2005-06-
|
6
|
+
version: 1.14.4
|
7
|
+
date: 2005-06-25
|
8
8
|
summary: Wiki2Go is a Ruby Wiki
|
9
9
|
require_paths:
|
10
10
|
- lib
|