Soks 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +1 -0
- data/bin/soks-create-wiki.rb +9 -2
- data/lib/helpers/default-helpers.rb +1 -0
- data/lib/helpers/maintenance-helpers.rb +2 -2
- data/lib/soks-servlet.rb +1 -1
- data/lib/soks-view.rb +1 -1
- data/lib/soks.rb +2 -0
- data/templates/default/content/Api%20for%20classes%20to%20modify%20the%20wiki.textile +4 -0
- data/templates/default/content/Automatic%20counters.textile +22 -0
- data/templates/default/content/Automatic%20exporters.textile +23 -0
- data/templates/default/content/Automatic%20importers.textile +57 -0
- data/templates/default/content/Automatic%20maintenance%20helpers.textile +39 -0
- data/templates/default/content/Bug%3A%20Page%2Einserted%5Finto%20is%20never%20purged.textile +17 -0
- data/templates/default/content/How%20to%20hack%20soks.textile +9 -6
- data/templates/default/content/How%20to%20re%2Dbuild%20the%20page%20cache.textile +71 -0
- data/templates/default/content/How%20to%20upgrade%20soks.textile +10 -0
- data/templates/default/content/How%20to%20use%20the%20Automatic%20Helper%20classes.textile +12 -0
- data/templates/default/content/List%20of%20changes.textile +12 -1
- data/templates/default/content/News%3A%20Version%201%2D0%2D1%20released.textile +12 -0
- data/templates/default/content/Pages%20to%20include%20in%20the%20distribution.textile +9 -6
- data/templates/default/content/README.textile +1 -0
- data/templates/default/content/Recent%20changes%20to%20this%20site.textile +80 -83
- data/templates/default/content/Site%20Index.textile +16 -1
- data/templates/default/start.rb +3 -1
- data/templates/default/version.txt +1 -1
- data/templates/default/views/frame.rhtml +1 -1
- data/test/test_soks-servlet.rb +1 -1
- metadata +10 -13
- data/TODO.txt +0 -31
- data/lib/helpers/mail2wiki-test.rb +0 -15
- data/lib/soks-drb.rb +0 -20
- data/lib/soks-fcgi.rb +0 -127
- data/templates/default/attachment/blank.gif +0 -0
- data/templates/default/attachment/pngbehavior.htc +0 -86
- data/templates/default/attachment/tiny-logo thumb.bmp +0 -0
- data/templates/default/content/Bug%3A%20E%2Dmail%20addresses%20with%20hyphens%20not%20recognised.textile +0 -17
- data/test/stress_url_calls.rb +0 -33
- data/test/stress_urls.txt +0 -68
@@ -1,86 +0,0 @@
|
|
1
|
-
<public:component lightWeight="true">
|
2
|
-
<public:attach event="onpropertychange" onevent="propertyChanged()" />
|
3
|
-
<public:attach event="onbeforeprint" onevent="beforePrint()" for="window"/>
|
4
|
-
<public:attach event="onafterprint" onevent="afterPrint()" for="window"/>
|
5
|
-
<script>
|
6
|
-
|
7
|
-
/*
|
8
|
-
* PNG Behavior
|
9
|
-
*
|
10
|
-
* This script was created by Erik Arvidsson (http://webfx.eae.net/contact.html#erik)
|
11
|
-
* for WebFX (http://webfx.eae.net)
|
12
|
-
* Copyright 2002-2004
|
13
|
-
*
|
14
|
-
* For usage see license at http://webfx.eae.net/license.html
|
15
|
-
*
|
16
|
-
* Version: 1.02
|
17
|
-
* Created: 2001-??-?? First working version
|
18
|
-
* Updated: 2002-03-28 Fixed issue when starting with a non png image and
|
19
|
-
* switching between non png images
|
20
|
-
* 2003-01-06 Fixed RegExp to correctly work with IE 5.0x
|
21
|
-
* 2004-05-09 When printing revert to original
|
22
|
-
*
|
23
|
-
*/
|
24
|
-
|
25
|
-
var supported = /MSIE ((5\.5)|[6789])/.test(navigator.userAgent) &&
|
26
|
-
navigator.platform == "Win32";
|
27
|
-
|
28
|
-
var realSrc;
|
29
|
-
var blankSrc = "blank.gif";
|
30
|
-
var isPrinting = false;
|
31
|
-
|
32
|
-
if (supported) fixImage();
|
33
|
-
|
34
|
-
function propertyChanged() {
|
35
|
-
if (!supported || isPrinting) return;
|
36
|
-
|
37
|
-
var pName = event.propertyName;
|
38
|
-
if (pName != "src") return;
|
39
|
-
// if not set to blank
|
40
|
-
if (!new RegExp(blankSrc).test(src))
|
41
|
-
fixImage();
|
42
|
-
};
|
43
|
-
|
44
|
-
function fixImage() {
|
45
|
-
// get src
|
46
|
-
var src = element.src;
|
47
|
-
|
48
|
-
// check for real change
|
49
|
-
if (src == realSrc && /\.png$/i.test(src)) {
|
50
|
-
element.src = blankSrc;
|
51
|
-
return;
|
52
|
-
}
|
53
|
-
|
54
|
-
if ( ! new RegExp(blankSrc).test(src)) {
|
55
|
-
// backup old src
|
56
|
-
realSrc = src;
|
57
|
-
}
|
58
|
-
|
59
|
-
// test for png
|
60
|
-
if (/\.png$/i.test(realSrc)) {
|
61
|
-
// set blank image
|
62
|
-
element.src = blankSrc;
|
63
|
-
// set filter
|
64
|
-
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft." +
|
65
|
-
"AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
|
66
|
-
}
|
67
|
-
else {
|
68
|
-
// remove filter
|
69
|
-
element.runtimeStyle.filter = "";
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
function beforePrint() {
|
74
|
-
isPrinting = true;
|
75
|
-
element.src = realSrc;
|
76
|
-
element.runtimeStyle.filter = "";
|
77
|
-
realSrc = null;
|
78
|
-
}
|
79
|
-
|
80
|
-
function afterPrint() {
|
81
|
-
isPrinting = false;
|
82
|
-
fixImage();
|
83
|
-
}
|
84
|
-
|
85
|
-
</script>
|
86
|
-
</public:component>
|
Binary file
|
@@ -1,17 +0,0 @@
|
|
1
|
-
The email:
|
2
|
-
|
3
|
-
first-second@somewhere.com
|
4
|
-
|
5
|
-
results in the link
|
6
|
-
|
7
|
-
==mailto:second@somewhere.com==
|
8
|
-
|
9
|
-
The workaround is to type
|
10
|
-
|
11
|
-
=="first-second@somewhere.com":mailto:first-second@somewhere.com==
|
12
|
-
|
13
|
-
like
|
14
|
-
|
15
|
-
"first-second@somewhere.com":mailto:first-second@somewhere.com
|
16
|
-
|
17
|
-
Tag: Include this page in the distribution
|
data/test/stress_url_calls.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'open-uri'
|
2
|
-
urls = IO.readlines(ARGV[0])
|
3
|
-
end_time = Time.now + (ARGV[1] || 60).to_i
|
4
|
-
threads = (ARGV[2] || 10).to_i
|
5
|
-
sleep_time = 0.1
|
6
|
-
|
7
|
-
def time
|
8
|
-
start = Time.now
|
9
|
-
yield
|
10
|
-
Time.now - start
|
11
|
-
end
|
12
|
-
|
13
|
-
threads.times do |i|
|
14
|
-
Thread.new(i) do |i|
|
15
|
-
total_elapsed = 0.0
|
16
|
-
count = 0
|
17
|
-
while Time.now < end_time
|
18
|
-
url = urls[rand(urls.size)]
|
19
|
-
elapsed = time do
|
20
|
-
open( url ) do |f|
|
21
|
-
f.each_line {|line| } # ignore contents
|
22
|
-
end
|
23
|
-
end
|
24
|
-
total_elapsed += elapsed
|
25
|
-
count += 1
|
26
|
-
p "#{i}: #{elapsed}"
|
27
|
-
sleep sleep_time
|
28
|
-
end
|
29
|
-
p "#{i}: Average #{1.0/(total_elapsed/count)} req/s"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
sleep( (end_time - Time.now)+5 )
|
data/test/stress_urls.txt
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
http://localhost:8000/view/2005%20Aug
|
2
|
-
http://localhost:8000/view/2005%20Dec
|
3
|
-
http://localhost:8000/view/2005%20Jul
|
4
|
-
http://localhost:8000/view/2005%20Jun
|
5
|
-
http://localhost:8000/view/2005%20May
|
6
|
-
http://localhost:8000/view/2005%20Nov
|
7
|
-
http://localhost:8000/view/2005%20Oct
|
8
|
-
http://localhost:8000/view/2005%20Sep
|
9
|
-
http://localhost:8000/view/2006%20Apr
|
10
|
-
http://localhost:8000/view/2006%20Feb
|
11
|
-
http://localhost:8000/view/2006%20Jan
|
12
|
-
http://localhost:8000/view/2006%20Mar
|
13
|
-
http://localhost:8000/view/2006%20May
|
14
|
-
http://localhost:8000/view/Picture%20of%20a%20pair%20of%20soks
|
15
|
-
http://localhost:8000/view/All%20News
|
16
|
-
http://localhost:8000/view/Api%20for%20classes%20to%20modify%20the%20wiki
|
17
|
-
http://localhost:8000/view/Author
|
18
|
-
http://localhost:8000/view/Automatic%20linking%20between%20pages
|
19
|
-
http://localhost:8000/view/Automatic%20Summaries
|
20
|
-
http://localhost:8000/view/Bil
|
21
|
-
http://localhost:8000/view/Bil%20Kleb
|
22
|
-
http://localhost:8000/view/Bill%20Wood
|
23
|
-
http://localhost:8000/view/bug:%20competing%20edits
|
24
|
-
http://localhost:8000/view/Bug:%20Does%20not%20make%20use%20of%20if-modified-since%20r
|
25
|
-
http://localhost:8000/view/Bug:%20GEM%20limits%20title%20lengths
|
26
|
-
http://localhost:8000/view/Bug:%20notextile%20does%20not%20prevent%20page%20inserts
|
27
|
-
http://localhost:8000/view/Bug:%20RSS%20feed%20does%20not%20validate
|
28
|
-
http://localhost:8000/view/Bug:%20Textile%20mishandles%20paragraphs
|
29
|
-
http://localhost:8000/view/Bug:%20Type%20a%20title%20here
|
30
|
-
http://localhost:8000/view/Bug:%20Unanticipated%20Rollbacks
|
31
|
-
http://localhost:8000/view/ctrl-n
|
32
|
-
http://localhost:8000/view/Home%20Page
|
33
|
-
http://localhost:8000/view/How%20to%20administrate%20this%20wiki
|
34
|
-
http://localhost:8000/view/How%20to%20change%20the%20way%20this%20wiki%20looks
|
35
|
-
http://localhost:8000/view/How%20to%20export%20a%20site%20from%20this%20wiki
|
36
|
-
http://localhost:8000/view/How%20to%20get%20the%20latest%20Soks%20from%20cvs
|
37
|
-
http://localhost:8000/view/How%20to%20hack%20soks
|
38
|
-
http://localhost:8000/view/How%20to%20import%20a%20site%20from%20instiki
|
39
|
-
http://localhost:8000/view/How%20to%20import%20data%20to%20this%20wiki
|
40
|
-
http://localhost:8000/view/How%20to%20install%20Soks
|
41
|
-
http://localhost:8000/view/How%20to%20password%20protect%20your%20wiki
|
42
|
-
http://localhost:8000/view/How%20to%20report%20a%20bug
|
43
|
-
http://localhost:8000/view/How%20to%20use%20the%20keyboard%20shortcuts
|
44
|
-
http://localhost:8000/view/How%20to%20use%20this%20wiki
|
45
|
-
http://localhost:8000/view/Instructions%20and%20Howtos
|
46
|
-
http://localhost:8000/view/Known%20bugs
|
47
|
-
http://localhost:8000/view/Latest%20News
|
48
|
-
http://localhost:8000/view/let%20me%20know
|
49
|
-
http://localhost:8000/view/List%20of%20changes
|
50
|
-
http://localhost:8000/view/New%20page%20templates%20or%20categories%20code
|
51
|
-
http://localhost:8000/view/New%20Recent%20Changes%20class
|
52
|
-
http://localhost:8000/view/News:%20Version%200.0.6%20Released
|
53
|
-
http://localhost:8000/view/Per%20Wiki%20Templates
|
54
|
-
http://localhost:8000/view/Planned%20Features
|
55
|
-
http://localhost:8000/view/Popular%20Pages
|
56
|
-
http://localhost:8000/view/Prolific%20Viewers
|
57
|
-
http://localhost:8000/view/README
|
58
|
-
http://localhost:8000/view/Recent%20Blog%20Entries
|
59
|
-
http://localhost:8000/view/Recent%20changes%20to%20this%20site
|
60
|
-
http://localhost:8000/view/RSS%20feed
|
61
|
-
http://localhost:8000/view/Ruby
|
62
|
-
http://localhost:8000/view/sandbox
|
63
|
-
http://localhost:8000/view/Sidebar%20Page
|
64
|
-
http://localhost:8000/view/Skorgu
|
65
|
-
http://localhost:8000/view/SOKS%20features
|
66
|
-
http://localhost:8000/view/Soks%20Licence
|
67
|
-
http://localhost:8000/view/tamc
|
68
|
-
http://localhost:8000/view/tamc2
|