instiki 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +174 -165
- data/README +68 -68
- data/app/controllers/admin_controller.rb +94 -94
- data/app/controllers/application.rb +135 -131
- data/app/controllers/file_controller.rb +129 -129
- data/app/controllers/wiki_controller.rb +354 -354
- data/app/helpers/application_helper.rb +68 -68
- data/app/models/author.rb +3 -3
- data/app/models/chunks/category.rb +33 -33
- data/app/models/chunks/chunk.rb +86 -86
- data/app/models/chunks/engines.rb +61 -54
- data/app/models/chunks/include.rb +41 -41
- data/app/models/chunks/literal.rb +31 -31
- data/app/models/chunks/nowiki.rb +28 -28
- data/app/models/chunks/test.rb +18 -18
- data/app/models/chunks/uri.rb +182 -182
- data/app/models/chunks/wiki.rb +141 -141
- data/app/models/file_yard.rb +58 -58
- data/app/models/page.rb +112 -112
- data/app/models/page_lock.rb +22 -22
- data/app/models/page_set.rb +89 -89
- data/app/models/revision.rb +123 -123
- data/app/models/web.rb +182 -176
- data/app/models/wiki_content.rb +207 -207
- data/app/models/wiki_service.rb +233 -233
- data/app/models/wiki_words.rb +23 -23
- data/app/views/admin/create_system.rhtml +83 -83
- data/app/views/admin/create_web.rhtml +69 -69
- data/app/views/admin/edit_web.rhtml +137 -136
- data/app/views/file/file.rhtml +18 -18
- data/app/views/file/import.rhtml +22 -22
- data/app/views/layouts/default.rhtml +86 -85
- data/app/views/markdown_help.rhtml +12 -12
- data/app/views/mixed_help.rhtml +6 -6
- data/app/views/navigation.rhtml +30 -30
- data/app/views/rdoc_help.rhtml +12 -12
- data/app/views/textile_help.rhtml +24 -24
- data/app/views/wiki/authors.rhtml +11 -11
- data/app/views/wiki/edit.rhtml +39 -39
- data/app/views/wiki/export.rhtml +12 -12
- data/app/views/wiki/feeds.rhtml +14 -14
- data/app/views/wiki/list.rhtml +64 -64
- data/app/views/wiki/locked.rhtml +23 -23
- data/app/views/wiki/login.rhtml +14 -14
- data/app/views/wiki/new.rhtml +31 -31
- data/app/views/wiki/page.rhtml +115 -115
- data/app/views/wiki/print.rhtml +14 -14
- data/app/views/wiki/published.rhtml +9 -9
- data/app/views/wiki/recently_revised.rhtml +26 -26
- data/app/views/wiki/revision.rhtml +103 -103
- data/app/views/wiki/rollback.rhtml +36 -36
- data/app/views/wiki/rss_feed.rhtml +22 -22
- data/app/views/wiki/search.rhtml +38 -38
- data/app/views/wiki/tex.rhtml +22 -22
- data/app/views/wiki/tex_web.rhtml +34 -34
- data/app/views/wiki/web_list.rhtml +18 -18
- data/app/views/wiki_words_help.rhtml +9 -9
- data/config/environment.rb +82 -82
- data/config/environments/development.rb +5 -5
- data/config/environments/production.rb +4 -4
- data/config/environments/test.rb +17 -17
- data/config/routes.rb +18 -18
- data/lib/active_record_stub.rb +31 -31
- data/lib/bluecloth_tweaked.rb +1127 -0
- data/lib/diff.rb +444 -444
- data/lib/instiki_errors.rb +14 -14
- data/lib/rdocsupport.rb +151 -151
- data/lib/redcloth_for_tex.rb +736 -736
- data/natives/osx/desktop_launcher/AppDelegate.h +18 -18
- data/natives/osx/desktop_launcher/AppDelegate.mm +109 -109
- data/natives/osx/desktop_launcher/Credits.html +15 -15
- data/natives/osx/desktop_launcher/English.lproj/MainMenu.nib/classes.nib +12 -12
- data/natives/osx/desktop_launcher/English.lproj/MainMenu.nib/info.nib +24 -24
- data/natives/osx/desktop_launcher/Info.plist +12 -12
- data/natives/osx/desktop_launcher/Instiki.xcode/project.pbxproj +592 -592
- data/natives/osx/desktop_launcher/Instiki_Prefix.pch +7 -7
- data/natives/osx/desktop_launcher/MakeDMG.sh +9 -9
- data/natives/osx/desktop_launcher/main.mm +14 -14
- data/natives/osx/desktop_launcher/version.plist +16 -16
- data/public/404.html +5 -5
- data/public/500.html +5 -5
- data/public/dispatch.rb +9 -9
- data/public/javascripts/edit_web.js +52 -52
- data/public/javascripts/prototype.js +336 -336
- data/public/stylesheets/instiki.css +222 -222
- data/script/breakpointer +4 -4
- data/script/server +93 -93
- metadata +4 -3
data/script/server
CHANGED
@@ -1,93 +1,93 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
|
3
|
-
require 'webrick'
|
4
|
-
require 'optparse'
|
5
|
-
require 'fileutils'
|
6
|
-
|
7
|
-
pwd = File.expand_path(File.dirname(__FILE__) + "/..")
|
8
|
-
|
9
|
-
OPTIONS = {
|
10
|
-
# Overridable options
|
11
|
-
:port => 2500,
|
12
|
-
:ip => '0.0.0.0',
|
13
|
-
:environment => 'production',
|
14
|
-
:server_root => File.expand_path(File.dirname(__FILE__) + '/../public/'),
|
15
|
-
:server_type => WEBrick::SimpleServer,
|
16
|
-
:storage => "#{File.expand_path(FileUtils.pwd)}/storage",
|
17
|
-
}
|
18
|
-
|
19
|
-
ARGV.options do |opts|
|
20
|
-
script_name = File.basename($0)
|
21
|
-
opts.banner = "Usage: ruby #{script_name} [options]"
|
22
|
-
|
23
|
-
opts.separator ''
|
24
|
-
|
25
|
-
opts.on('-p', '--port=port', Integer,
|
26
|
-
'Runs Instiki on the specified port.',
|
27
|
-
'Default: 2500') { |OPTIONS[:port]| }
|
28
|
-
opts.on('-b', '--binding=ip', String,
|
29
|
-
'Binds Rails to the specified ip.',
|
30
|
-
'Default: 0.0.0.0') { |OPTIONS[:ip]| }
|
31
|
-
opts.on('-e', '--environment=name', String,
|
32
|
-
'Specifies the environment to run this server under (test/development/production).',
|
33
|
-
'Default: production') { |OPTIONS[:environment]| }
|
34
|
-
opts.on('-d', '--daemon',
|
35
|
-
'Make Instiki run as a Daemon (only works if fork is available -- meaning on *nix).'
|
36
|
-
) { OPTIONS[:server_type] = WEBrick::Daemon }
|
37
|
-
opts.on('-s', '--simple', '--simple-server',
|
38
|
-
'[deprecated] Forces Instiki not to run as a Daemon if fork is available.',
|
39
|
-
'Since version 0.10.0 this option is ignored.'
|
40
|
-
) { puts "Warning: -s (--simple) option is deprecated. See instiki --help for details." }
|
41
|
-
opts.on('-t', '--storage=storage', String,
|
42
|
-
'Makes Instiki use the specified directory for storage.',
|
43
|
-
'Default: ./storage/[port]') { |OPTIONS[:storage]| }
|
44
|
-
opts.on('-x', '--notex',
|
45
|
-
'Blocks wiki exports to TeX and PDF, even when pdflatex is available.'
|
46
|
-
) { |OPTIONS[:notex]| }
|
47
|
-
opts.on('-v', '--verbose',
|
48
|
-
'Enables debug-level logging'
|
49
|
-
) { OPTIONS[:verbose] = true }
|
50
|
-
|
51
|
-
opts.separator ''
|
52
|
-
|
53
|
-
opts.on('-h', '--help',
|
54
|
-
'Show this help message.') { puts opts; exit }
|
55
|
-
|
56
|
-
opts.parse!
|
57
|
-
end
|
58
|
-
|
59
|
-
if OPTIONS[:environment] == 'production'
|
60
|
-
storage_path = "#{OPTIONS[:storage]}/#{OPTIONS[:port]}"
|
61
|
-
else
|
62
|
-
storage_path = "#{OPTIONS[:storage]}/#{OPTIONS[:environment]}/#{OPTIONS[:port]}"
|
63
|
-
end
|
64
|
-
FileUtils.mkdir_p(storage_path)
|
65
|
-
|
66
|
-
ENV['RAILS_ENV'] = OPTIONS[:environment]
|
67
|
-
INSTIKI_DEBUG_LOG = OPTIONS[:verbose]
|
68
|
-
require File.expand_path(File.dirname(__FILE__) + '/../config/environment')
|
69
|
-
WikiService.storage_path = storage_path
|
70
|
-
|
71
|
-
if OPTIONS[:notex]
|
72
|
-
OPTIONS[:pdflatex] = false
|
73
|
-
else
|
74
|
-
begin
|
75
|
-
OPTIONS[:pdflatex] = system "pdflatex -version"
|
76
|
-
rescue Errno::ENOENT
|
77
|
-
OPTIONS[:pdflatex] = false
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
if defined? INSTIKI_BATCH_JOB
|
82
|
-
require 'application'
|
83
|
-
else
|
84
|
-
puts "=> Starting Instiki on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}"
|
85
|
-
puts "=> Data files are stored in #{storage_path}"
|
86
|
-
|
87
|
-
require 'webrick_server'
|
88
|
-
require_dependency 'application'
|
89
|
-
|
90
|
-
OPTIONS[:index_controller] = 'wiki'
|
91
|
-
ApplicationController.wiki = WikiService.instance
|
92
|
-
DispatchServlet.dispatch(OPTIONS)
|
93
|
-
end
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
require 'webrick'
|
4
|
+
require 'optparse'
|
5
|
+
require 'fileutils'
|
6
|
+
|
7
|
+
pwd = File.expand_path(File.dirname(__FILE__) + "/..")
|
8
|
+
|
9
|
+
OPTIONS = {
|
10
|
+
# Overridable options
|
11
|
+
:port => 2500,
|
12
|
+
:ip => '0.0.0.0',
|
13
|
+
:environment => 'production',
|
14
|
+
:server_root => File.expand_path(File.dirname(__FILE__) + '/../public/'),
|
15
|
+
:server_type => WEBrick::SimpleServer,
|
16
|
+
:storage => "#{File.expand_path(FileUtils.pwd)}/storage",
|
17
|
+
}
|
18
|
+
|
19
|
+
ARGV.options do |opts|
|
20
|
+
script_name = File.basename($0)
|
21
|
+
opts.banner = "Usage: ruby #{script_name} [options]"
|
22
|
+
|
23
|
+
opts.separator ''
|
24
|
+
|
25
|
+
opts.on('-p', '--port=port', Integer,
|
26
|
+
'Runs Instiki on the specified port.',
|
27
|
+
'Default: 2500') { |OPTIONS[:port]| }
|
28
|
+
opts.on('-b', '--binding=ip', String,
|
29
|
+
'Binds Rails to the specified ip.',
|
30
|
+
'Default: 0.0.0.0') { |OPTIONS[:ip]| }
|
31
|
+
opts.on('-e', '--environment=name', String,
|
32
|
+
'Specifies the environment to run this server under (test/development/production).',
|
33
|
+
'Default: production') { |OPTIONS[:environment]| }
|
34
|
+
opts.on('-d', '--daemon',
|
35
|
+
'Make Instiki run as a Daemon (only works if fork is available -- meaning on *nix).'
|
36
|
+
) { OPTIONS[:server_type] = WEBrick::Daemon }
|
37
|
+
opts.on('-s', '--simple', '--simple-server',
|
38
|
+
'[deprecated] Forces Instiki not to run as a Daemon if fork is available.',
|
39
|
+
'Since version 0.10.0 this option is ignored.'
|
40
|
+
) { puts "Warning: -s (--simple) option is deprecated. See instiki --help for details." }
|
41
|
+
opts.on('-t', '--storage=storage', String,
|
42
|
+
'Makes Instiki use the specified directory for storage.',
|
43
|
+
'Default: ./storage/[port]') { |OPTIONS[:storage]| }
|
44
|
+
opts.on('-x', '--notex',
|
45
|
+
'Blocks wiki exports to TeX and PDF, even when pdflatex is available.'
|
46
|
+
) { |OPTIONS[:notex]| }
|
47
|
+
opts.on('-v', '--verbose',
|
48
|
+
'Enables debug-level logging'
|
49
|
+
) { OPTIONS[:verbose] = true }
|
50
|
+
|
51
|
+
opts.separator ''
|
52
|
+
|
53
|
+
opts.on('-h', '--help',
|
54
|
+
'Show this help message.') { puts opts; exit }
|
55
|
+
|
56
|
+
opts.parse!
|
57
|
+
end
|
58
|
+
|
59
|
+
if OPTIONS[:environment] == 'production'
|
60
|
+
storage_path = "#{OPTIONS[:storage]}/#{OPTIONS[:port]}"
|
61
|
+
else
|
62
|
+
storage_path = "#{OPTIONS[:storage]}/#{OPTIONS[:environment]}/#{OPTIONS[:port]}"
|
63
|
+
end
|
64
|
+
FileUtils.mkdir_p(storage_path)
|
65
|
+
|
66
|
+
ENV['RAILS_ENV'] = OPTIONS[:environment]
|
67
|
+
INSTIKI_DEBUG_LOG = OPTIONS[:verbose]
|
68
|
+
require File.expand_path(File.dirname(__FILE__) + '/../config/environment')
|
69
|
+
WikiService.storage_path = storage_path
|
70
|
+
|
71
|
+
if OPTIONS[:notex]
|
72
|
+
OPTIONS[:pdflatex] = false
|
73
|
+
else
|
74
|
+
begin
|
75
|
+
OPTIONS[:pdflatex] = system "pdflatex -version"
|
76
|
+
rescue Errno::ENOENT
|
77
|
+
OPTIONS[:pdflatex] = false
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
if defined? INSTIKI_BATCH_JOB
|
82
|
+
require 'application'
|
83
|
+
else
|
84
|
+
puts "=> Starting Instiki on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}"
|
85
|
+
puts "=> Data files are stored in #{storage_path}"
|
86
|
+
|
87
|
+
require 'webrick_server'
|
88
|
+
require_dependency 'application'
|
89
|
+
|
90
|
+
OPTIONS[:index_controller] = 'wiki'
|
91
|
+
ApplicationController.wiki = WikiService.instance
|
92
|
+
DispatchServlet.dispatch(OPTIONS)
|
93
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: instiki
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.10.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.10.1
|
7
|
+
date: 2005-05-01
|
8
8
|
summary: Easy to install WikiClone running on WEBrick and Madeleine
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- app/views/wiki/tex_web.rhtml
|
88
88
|
- app/views/wiki/web_list.rhtml
|
89
89
|
- lib/active_record_stub.rb
|
90
|
+
- lib/bluecloth_tweaked.rb
|
90
91
|
- lib/diff.rb
|
91
92
|
- lib/instiki_errors.rb
|
92
93
|
- lib/rdocsupport.rb
|
@@ -155,7 +156,7 @@ dependencies:
|
|
155
156
|
-
|
156
157
|
- "="
|
157
158
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.5.
|
159
|
+
version: 0.5.8
|
159
160
|
version:
|
160
161
|
- !ruby/object:Gem::Dependency
|
161
162
|
name: rails
|