Soks 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +7 -3
- data/README.txt +16 -21
- data/bin/soks-create-wiki.rb +3 -2
- data/contrib/redcloth-2.0.11.rb +1 -1
- data/lib/soks-helpers.rb +7 -4
- data/lib/soks-model.rb +17 -9
- data/lib/soks-storage.rb +55 -72
- data/lib/soks-view.rb +32 -87
- data/templates/default/attachment/stylesheet.css +7 -0
- data/templates/default/content/All%20News.textile +9 -0
- data/templates/default/content/Author.textile +12 -0
- data/templates/default/content/Automatic%20Summaries.textile +77 -0
- data/templates/default/content/Automatic%20linking%20between%20pages.textile +5 -0
- data/templates/default/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +1 -0
- data/templates/default/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +1 -0
- data/templates/default/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -0
- data/templates/default/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -0
- data/templates/default/content/Bug%3A%20GEM%20limits%20title%20lengths.textile +1 -0
- data/templates/default/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +1 -0
- data/templates/default/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +1 -0
- data/templates/default/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -0
- data/templates/default/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -0
- data/templates/default/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +1 -0
- data/templates/default/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +1 -0
- data/templates/default/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +1 -0
- data/templates/default/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +1 -0
- data/templates/default/content/{Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%20sometimes%20not%20linked.textile → Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile} +3 -0
- data/templates/default/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +9 -0
- data/templates/default/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +15 -0
- data/templates/default/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +3 -0
- data/templates/default/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +3 -0
- data/templates/default/content/{Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in%20html.textile → Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile} +2 -0
- data/templates/default/content/Home%20Page.textile +19 -0
- data/templates/default/content/How%20to%20hack%20soks.textile +1 -1
- data/templates/default/content/How%20to%20install%20Soks.textile +27 -0
- data/templates/default/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +13 -0
- data/templates/default/content/How%20to%20use%20this%20wiki.textile +2 -2
- data/templates/default/content/Instructions%20and%20Howtos.textile +17 -0
- data/templates/default/content/Known%20bugs.textile +16 -0
- data/templates/default/content/Latest%20News.textile +9 -0
- data/templates/default/content/Picture%20of%20Type%20a%20title%20here.textile +1 -0
- data/templates/default/content/README.textile +61 -0
- data/templates/default/content/RSS%20feed.textile +7 -0
- data/templates/default/content/Recent%20Blog%20Entries.textile +5 -0
- data/templates/default/content/Recent%20Changes%20to%20This%20Site.textile +96 -0
- data/templates/default/content/Recent%20News.textile +9 -0
- data/templates/default/content/Ruby.textile +9 -0
- data/templates/default/content/SOKS%20features.textile +12 -0
- data/templates/default/content/Site%20Index.textile +55 -0
- data/templates/default/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +3 -0
- data/templates/default/content/let%20me%20know.textile +1 -0
- data/templates/default/content/sandbox.textile +2 -0
- data/templates/default/content/tamc2.textile +1 -0
- data/templates/default/content/test%20page.textile +1 -0
- data/templates/default/start.rb +10 -4
- data/templates/default/version.txt +1 -1
- data/templates/default/views/Page_rss.rhtml +1 -1
- data/templates/default/views/frame.rhtml +3 -2
- data/templates/instiki/content/All%20News.textile +9 -0
- data/templates/instiki/content/Author.textile +12 -0
- data/templates/instiki/content/Automatic%20Summaries.textile +77 -0
- data/templates/instiki/content/Automatic%20linking%20between%20pages.textile +5 -0
- data/templates/instiki/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -0
- data/templates/instiki/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -0
- data/templates/instiki/content/Bug%3A%20GEM%20limits%20title%20lengths.textile +1 -0
- data/templates/instiki/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +1 -0
- data/templates/instiki/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -0
- data/templates/instiki/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +1 -0
- data/templates/instiki/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +3 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile +13 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +9 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +15 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +3 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +3 -0
- data/templates/instiki/content/Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile +5 -0
- data/templates/instiki/content/Home%20Page.textile +19 -0
- data/templates/instiki/content/How%20to%20hack%20soks.textile +1 -1
- data/templates/instiki/content/How%20to%20install%20Soks.textile +27 -0
- data/templates/instiki/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +13 -0
- data/templates/instiki/content/{Pointers%20on%20how%20to%20use%20this%20wiki.textile → How%20to%20use%20this%20wiki.textile} +2 -2
- data/templates/instiki/content/Instructions%20and%20Howtos.textile +17 -0
- data/templates/instiki/content/Known%20bugs.textile +14 -6
- data/templates/instiki/content/Latest%20News.textile +9 -0
- data/templates/instiki/content/List%20of%20changes.textile +2 -1
- data/templates/instiki/content/Picture%20of%20Type%20a%20title%20here.textile +1 -0
- data/templates/instiki/content/Picture%20of%20a%20pair%20of%20soks.textile +1 -1
- data/templates/instiki/content/README.textile +61 -0
- data/templates/instiki/content/RSS%20feed.textile +7 -0
- data/templates/instiki/content/Recent%20Blog%20Entries.textile +3 -1
- data/templates/instiki/content/Recent%20Changes%20to%20This%20Site.textile +95 -47
- data/templates/instiki/content/Recent%20News.textile +9 -0
- data/templates/instiki/content/Ruby.textile +9 -0
- data/templates/instiki/content/SOKS%20features.textile +12 -0
- data/templates/instiki/content/Site%20Index.textile +54 -15
- data/templates/instiki/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +3 -0
- data/templates/instiki/content/let%20me%20know.textile +1 -0
- data/templates/instiki/content/sandbox.textile +2 -0
- data/templates/instiki/content/tamc2.textile +1 -0
- data/templates/instiki/content/test%20page.textile +1 -0
- data/templates/instiki/start.rb +27 -0
- data/templates/instiki/version.txt +1 -1
- data/templates/rails/content/All%20News.textile +9 -0
- data/templates/rails/content/Author.textile +12 -0
- data/templates/rails/content/Automatic%20Summaries.textile +77 -0
- data/templates/rails/content/Automatic%20linking%20between%20pages.textile +5 -0
- data/templates/rails/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +1 -0
- data/templates/rails/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +1 -0
- data/templates/rails/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +1 -0
- data/templates/rails/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +1 -0
- data/templates/rails/content/Bug%3A%20GEM%20limits%20title%20lengths.textile +1 -0
- data/templates/rails/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +1 -0
- data/templates/rails/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +1 -0
- data/templates/rails/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +1 -0
- data/templates/rails/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +1 -0
- data/templates/rails/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +1 -0
- data/templates/rails/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +1 -0
- data/templates/rails/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +1 -0
- data/templates/rails/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +1 -0
- data/templates/rails/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +3 -0
- data/templates/rails/content/Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile +13 -0
- data/templates/rails/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +9 -0
- data/templates/rails/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +15 -0
- data/templates/rails/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +3 -0
- data/templates/rails/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +3 -0
- data/templates/rails/content/Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile +5 -0
- data/templates/rails/content/Home%20Page.textile +19 -0
- data/templates/rails/content/How%20to%20hack%20soks.textile +1 -1
- data/templates/rails/content/How%20to%20install%20Soks.textile +27 -0
- data/templates/rails/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +13 -0
- data/templates/rails/content/{Pointers%20on%20how%20to%20use%20this%20wiki.textile → How%20to%20use%20this%20wiki.textile} +2 -2
- data/templates/rails/content/Instructions%20and%20Howtos.textile +17 -0
- data/templates/rails/content/Known%20bugs.textile +14 -6
- data/templates/rails/content/Latest%20News.textile +9 -0
- data/templates/rails/content/List%20of%20changes.textile +2 -1
- data/templates/rails/content/Picture%20of%20Type%20a%20title%20here.textile +1 -0
- data/templates/rails/content/Picture%20of%20a%20pair%20of%20soks.textile +1 -1
- data/templates/rails/content/README.textile +61 -0
- data/templates/rails/content/RSS%20feed.textile +7 -0
- data/templates/rails/content/Recent%20Blog%20Entries.textile +3 -1
- data/templates/rails/content/Recent%20Changes%20to%20This%20Site.textile +95 -47
- data/templates/rails/content/Recent%20News.textile +9 -0
- data/templates/rails/content/Ruby.textile +9 -0
- data/templates/rails/content/SOKS%20features.textile +12 -0
- data/templates/rails/content/Site%20Index.textile +54 -15
- data/templates/rails/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +3 -0
- data/templates/rails/content/let%20me%20know.textile +1 -0
- data/templates/rails/content/sandbox.textile +2 -0
- data/templates/rails/content/tamc2.textile +1 -0
- data/templates/rails/content/test%20page.textile +1 -0
- data/templates/rails/start.rb +28 -0
- data/templates/rails/version.txt +1 -1
- metadata +132 -15
- data/templates/default/content/home%20page.textile +0 -17
- data/templates/instiki/content/AutomaticSummary.textile +0 -24
- data/templates/instiki/content/home%20page.textile +0 -23
- data/templates/rails/content/AutomaticSummary.textile +0 -24
- data/templates/rails/content/home%20page.textile +0 -23
- /data/templates/instiki/content/{Pointers%20on%20adjusting%20the%20settings.textile → How%20to%20administrate%20this%20wiki.textile} +0 -0
- /data/templates/instiki/content/{Improving%20the%20style%20of%20this%20wiki.textile → How%20to%20change%20the%20way%20this%20wiki%20looks.textile} +0 -0
- /data/templates/rails/content/{Pointers%20on%20adjusting%20the%20settings.textile → How%20to%20administrate%20this%20wiki.textile} +0 -0
- /data/templates/rails/content/{Improving%20the%20style%20of%20this%20wiki.textile → How%20to%20change%20the%20way%20this%20wiki%20looks.textile} +0 -0
@@ -18,7 +18,7 @@ RSS::Maker.make("2.0") do |maker|
|
|
18
18
|
maker.items.do_sort = true
|
19
19
|
|
20
20
|
count = 0
|
21
|
-
|
21
|
+
page.revisions.reverse_each do |revision|
|
22
22
|
break if (count +=1) == 15
|
23
23
|
item = maker.items.new_item
|
24
24
|
item.link = "#{$SETTINGS[:url]}/#{pagename}"
|
@@ -16,12 +16,13 @@
|
|
16
16
|
<div id='menu'>
|
17
17
|
<a href='/Home Page' accesskey='H' ><img width='149' src='/attachment/logo.png' alt='<%= @wikiname %>' /></a>
|
18
18
|
<form method='get' action='/find/<%= pagename %>' >
|
19
|
-
<input name='regex' value='' size='18' />
|
19
|
+
<input class='search' name='regex' value='' size='18' />
|
20
20
|
<input name='action' value='search' type='submit' />
|
21
21
|
</form>
|
22
22
|
<a href='/site index' accesskey='I' >Site Index</a>
|
23
23
|
<a href='/recent changes to this site' accesskey='R' >Recent Changes</a>
|
24
|
-
<% if page %>
|
24
|
+
<% if page %>
|
25
|
+
<br />
|
25
26
|
<% page.links_to.each do |linkedpage| %>
|
26
27
|
<a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a>
|
27
28
|
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
h1. The Author
|
2
|
+
|
3
|
+
Soks was written by Tom Counsell. He can be reached at tamc@rubyforge.org.
|
4
|
+
|
5
|
+
Further details can be found at http://tom.counsell.org.
|
6
|
+
|
7
|
+
h2. Thanks to
|
8
|
+
|
9
|
+
* Sebastien Clediere for a patch to fix uploads on windows
|
10
|
+
* _why for the RedCloth library
|
11
|
+
* Austin Ziegler for the Diff:LCS library
|
12
|
+
* Matz and ruby-core for the ruby language
|
@@ -0,0 +1,77 @@
|
|
1
|
+
h1. Automatic Summaries
|
2
|
+
|
3
|
+
Any class can register to be notified of changes to the wiki by:
|
4
|
+
<code>
|
5
|
+
@wiki.watch_for( :page_created ) { |event, page, revision| do whatever you want }
|
6
|
+
@wiki.watch_for( :page_revised ) { |event, page, revision| do whatever you want }
|
7
|
+
@wiki.watch_for( :page_deleted ) { |event, page, revision| do whatever you want }
|
8
|
+
</code>
|
9
|
+
|
10
|
+
These notifications are sent by a separate low priority thread from the one that is interacting with the user. Using these notifications a class can make changes to the wiki by calling:
|
11
|
+
<code>
|
12
|
+
@wiki.revise( pagename, newcontent, author )
|
13
|
+
</code>
|
14
|
+
|
15
|
+
In soks-helpers.rb you will find some classes that make use of this api. One particular one is the AutomaticSummary class. This watches for changes to the wiki, and if the page that is changed matches a given regexp, adds it to a summary page.
|
16
|
+
|
17
|
+
It has quite a powerful set of settings, defaults are:
|
18
|
+
<code>
|
19
|
+
DEFAULT_SETTINGS = {
|
20
|
+
:regexp_for_title => /.*/, # These three regexps act as an AND
|
21
|
+
:regexp_for_author => nil,
|
22
|
+
:regexp_for_content => nil,
|
23
|
+
:max_pages_to_show => nil,
|
24
|
+
:pagename => 'Summary',
|
25
|
+
:author => 'AutomaticSummary',
|
26
|
+
:lines_to_include => nil, # If nil then justs puts a link, otherwise includes X number of lines from the page in the summary
|
27
|
+
:only_new_pages => false, # Otherwise includes changes
|
28
|
+
:sort_pages_by => :created_on, # Could be :revised_on or :score or :name or :name_for_index, or :author
|
29
|
+
:reverse_sort => false,
|
30
|
+
:include_metadata => false, # If true includes author and time in summary
|
31
|
+
:summarise_revisions => false, # If true, then can contain several revisions for same page
|
32
|
+
:remove_deleted_pages => true, # If false will keep references to deleted pages
|
33
|
+
}
|
34
|
+
</code>
|
35
|
+
|
36
|
+
Two examples of its use, included in the soks-helpers.rb file, are the Site Index and the Recent Changes page:
|
37
|
+
|
38
|
+
<code>
|
39
|
+
AutomaticSummary.new( wiki, {
|
40
|
+
:regexp_for_title => /.*/ # Match all pages
|
41
|
+
:pagename => 'Site Index',
|
42
|
+
:author => 'Automatic Site Indexer',
|
43
|
+
:only_new_pages => true,
|
44
|
+
:sort_pages_by => :name_for_index,
|
45
|
+
} )
|
46
|
+
</code>
|
47
|
+
|
48
|
+
<code>
|
49
|
+
AutomaticSummary.new( wiki, {
|
50
|
+
:regexp_for_title => /.*/ # Match all pages
|
51
|
+
:pagename => 'Recent Changes',
|
52
|
+
:author => 'Automatic Recent Changes',
|
53
|
+
:only_new_pages => false,
|
54
|
+
:sort_pages_by => :revised_on,
|
55
|
+
:include_metadata => true,
|
56
|
+
:summarise_revisions => true,
|
57
|
+
:reverse_sort => true,
|
58
|
+
:remove_deleted_pages => false,
|
59
|
+
})
|
60
|
+
</code>
|
61
|
+
|
62
|
+
You might also use it to construct a basic blog class:
|
63
|
+
<code>
|
64
|
+
AutomaticSummary.new( wiki, {
|
65
|
+
:regexp_for_title => /^Blog:.*/ # Match all pages starting with blog
|
66
|
+
:pagename => 'Recent Blog Entries',
|
67
|
+
:author => 'Automatic Blog Watcher',
|
68
|
+
:max_pages_to_show => 10 # Only show the ten most recent blogs
|
69
|
+
:lines_to_include => 20 # Show the first 20 lines of each blog entry
|
70
|
+
:only_new_pages =>true,
|
71
|
+
:sort_pages_by => :created_on,
|
72
|
+
:include_metadata => true,
|
73
|
+
:reverse_sort => true,
|
74
|
+
})
|
75
|
+
</code>
|
76
|
+
|
77
|
+
If you have any other ideas or examples, please add them here
|
@@ -0,0 +1,5 @@
|
|
1
|
+
h1. Automatic linking between pages
|
2
|
+
|
3
|
+
Any reference to the title of another page in the wiki will be automatically linked. e.g. home page is linked to the home page.
|
4
|
+
|
5
|
+
The links are made left to right, top to bottom, with the longest possible link made at any given time.
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed bug: automatic link links to stuff inside <html> tags]]
|
@@ -0,0 +1 @@
|
|
1
|
+
Currently tells the browser to not cache any page. This is wasteful of bandwidth and increases server load. Should handle the if-modified-since request headers to return 'not modified' messages instead.
|
@@ -0,0 +1 @@
|
|
1
|
+
On the right hand side of a page are normally links to other pages that link to this page. In some cases these might have several copies of the same link.
|
@@ -0,0 +1 @@
|
|
1
|
+
External links, such as www.slashdot.org incorrectly include trailing punctuation like the full stop on the end of this sentence: www.slashdot.org.
|
@@ -0,0 +1 @@
|
|
1
|
+
It seems that Ruby GEM limits filename lengths, which means there is a limit on title lengths. I am unclear what the limit for filename length is? and how this varies by platform?
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: In a list of links, the last link is sometimes not linked]]
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: Inserted pages are not refreshed when new autolinks are made]]
|
@@ -0,0 +1 @@
|
|
1
|
+
By default no robots.txt or favicon.ico (and no way of including favicon.ico at all?)
|
@@ -0,0 +1 @@
|
|
1
|
+
Any page that has anything like an html tag <pre><html></pre> or whatever cannot be autolinked, and if a forced link is made then server errors occur.
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: RSS feed shows oldest 15 revisions (not newest!)]]
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: Search box width does not match column width]]
|
data/templates/instiki/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: Site Index updates on every revision]]
|
@@ -0,0 +1 @@
|
|
1
|
+
content moved to [[Fixed Bug: Symbols are not always correctly rendered in html]]
|
@@ -0,0 +1,13 @@
|
|
1
|
+
In a list of links, the last link is sometimes not linked.
|
2
|
+
|
3
|
+
e.g: 'How to administrate this wiki' might not be linked in this list:
|
4
|
+
|
5
|
+
* How to export a site from this wiki
|
6
|
+
* How to hack soks
|
7
|
+
* How to import a site from instiki
|
8
|
+
* How to use this wiki
|
9
|
+
* How to change the way this wiki looks
|
10
|
+
* How to administrate this wiki
|
11
|
+
|
12
|
+
|
13
|
+
Fixed in v0-0-4
|
@@ -0,0 +1,9 @@
|
|
1
|
+
If page one inserts the content of page two using [ [ insert page two ]] then if the content of page two is changed, page one correctly updates. However, if a page three is created, and this is automatically linked from page two, it does not automatically trigger a refresh on page one.
|
2
|
+
|
3
|
+
Solution is probably to modify /lib/soks-view.rb to put:
|
4
|
+
<code>
|
5
|
+
page.inserted_into.each { |page| refresh_redcloth( page ) }
|
6
|
+
</code>
|
7
|
+
On line 453, or somerwhere nearby in the refresh_redcloth method.
|
8
|
+
|
9
|
+
Fixed in v0-0-4
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The RSS feed only includes 15 items (in order to meet with the standard as I understand it). Unfortunately when the number of revisions > 15 it only shows the oldest revisions. Dopey.
|
2
|
+
|
3
|
+
Fixed in v0-0-4
|
4
|
+
|
5
|
+
Fix is in templates/default/views/Page_rss.rhtml
|
6
|
+
|
7
|
+
Replace
|
8
|
+
<code>
|
9
|
+
for revision in page.revisions
|
10
|
+
</code>
|
11
|
+
|
12
|
+
with
|
13
|
+
<code>
|
14
|
+
page.revisions.reverse_each do |revision|
|
15
|
+
</code>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
h1. Congratulations, you have installed SOKS
|
2
|
+
|
3
|
+
Welcome to Soks. It is yet another wiki, written in ruby. Please bear in mind that it is alpha, and therefore do not trust your mission critical sites to it. Please feel free to use and adapt, the soks licence is free and liberal (although if you feel like contributing towards a new mac for the author that would be apreciated).
|
4
|
+
|
5
|
+
p{background:yellow;padding:10px;}. A limited selection of help and bug reports are included here. For more information, and to share experiences, please visit http://soks.counsell.org
|
6
|
+
|
7
|
+
[[insert SOKS features]]
|
8
|
+
|
9
|
+
[[insert Instructions and Howtos]]
|
10
|
+
|
11
|
+
[[insert known bugs]]
|
12
|
+
|
13
|
+
h2. Feedback
|
14
|
+
|
15
|
+
* Please send me your feedback. tamc@rubyforge.com.
|
16
|
+
* Or submit a bug at http://rubyforge.org/projects/soks/.
|
17
|
+
* To keep track of developments, you may wish to subscribe to the mailing list at http://rubyforge.org/projects/soks.
|
18
|
+
|
19
|
+
[[insert picture of a pair of soks]]
|
@@ -58,4 +58,4 @@ The WikiServlet deals with file uploads by separately writing the uploaded file
|
|
58
58
|
|
59
59
|
h4. soks-helpers.rb
|
60
60
|
|
61
|
-
These are a series of classes that may be optionally loaded by a wiki's start.rb script. They receive notifications of page changes from the View object and can use this information to update other pages in the wiki.
|
61
|
+
These are a series of classes that may be optionally loaded by a wiki's start.rb script. They receive notifications of page changes from the View object and can use this information to update other pages in the wiki. See automatic summaries for a little more detail.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
h1. How to install Soks
|
2
|
+
|
3
|
+
h2. Requirements
|
4
|
+
|
5
|
+
Essential: Ruby 1.8.2 from http://www.ruby-lang.org/en/
|
6
|
+
Preferred: Ruby Gems from http://rubyforge.org/projects/rubygems/
|
7
|
+
|
8
|
+
h2. The easy install
|
9
|
+
|
10
|
+
If you have ruby gems, type:
|
11
|
+
<code>
|
12
|
+
gem install Soks
|
13
|
+
soks-create-wiki.rb
|
14
|
+
</code>
|
15
|
+
|
16
|
+
...and then surf to http://localhost:8000
|
17
|
+
|
18
|
+
h2. The harder install
|
19
|
+
|
20
|
+
Download the latest version of Soks from http://rubyforge.org/frs/?group_id=481
|
21
|
+
|
22
|
+
<code>
|
23
|
+
tar -xvzf Soks-0.0.3.tgz
|
24
|
+
ruby Soks-0.0.3/bin/soks-create-wiki.rb
|
25
|
+
</code>
|
26
|
+
|
27
|
+
...and then surf to http://localhost:8000
|
@@ -0,0 +1,13 @@
|
|
1
|
+
h1. Keyboard Shortcuts
|
2
|
+
|
3
|
+
Soks has a number of keyboard short cuts. Depending on your browser, only some of them will work:
|
4
|
+
|
5
|
+
* ctrl-n : New page. Will use whatever text you had selected as the title of the new page (definitely only works on a few browsers)
|
6
|
+
* ctrl-e: Edit page, and if you are editing:
|
7
|
+
** ctrl-s saves the page
|
8
|
+
** ctrl-c cancels the editing
|
9
|
+
** ctrl-u undos the previous edit
|
10
|
+
** ctrl-a shows all the previous changes
|
11
|
+
* ctrl-h: Home page
|
12
|
+
* ctrl-i: Site Index
|
13
|
+
* ctrl-r: Recent changes to this site
|
@@ -10,11 +10,11 @@ There are several ways to add pages to soks:
|
|
10
10
|
|
11
11
|
Yes, this means it is very easy to create orphaned pages. No I don't think this is a problem, because there is a site index.
|
12
12
|
|
13
|
-
fn1. This only works on some browsers. It doesn't seem to work on Mac Firefox or Mac OmniWeb. It does on Mac Safari. Please report your successes and
|
13
|
+
fn1. This only works on some browsers. It doesn't seem to work on Mac Firefox or Mac OmniWeb. It does on Mac Safari. Please report your successes and failures.
|
14
14
|
|
15
15
|
h2. Editing Pages
|
16
16
|
|
17
|
-
* To edit a page, click edit.
|
17
|
+
* To edit a page, click edit this page at the bottom of the page.
|
18
18
|
* The pages are written in textile. A reference is at http://hobix.com/textile/quick.html
|
19
19
|
* Links to other pages within this wiki, and to web addresses, and to e-mail addresses, happen automatically
|
20
20
|
* To force a link put it inside double square brackets e.g. <notextile>[[a forced link]]</notextile>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
h2. Instructions and Howtos
|
2
|
+
|
3
|
+
p{font-size: x-small;}. Instructions and Howtos was created automatically from pages whose title matches /^How to /i.
|
4
|
+
|
5
|
+
<automaticsummary>
|
6
|
+
|
7
|
+
* [[ How to administrate this wiki ]]
|
8
|
+
* [[ How to change the way this wiki looks ]]
|
9
|
+
* [[ How to export a site from this wiki ]]
|
10
|
+
* [[ How to hack soks ]]
|
11
|
+
* [[ How to import a site from instiki ]]
|
12
|
+
* [[ How to install Soks ]]
|
13
|
+
* [[ How to use the keyboard shortcuts ]]
|
14
|
+
* [[ How to use this wiki ]]
|
15
|
+
|
16
|
+
|
17
|
+
</automaticsummary>
|
@@ -1,8 +1,16 @@
|
|
1
|
-
|
1
|
+
h2. Known bugs
|
2
2
|
|
3
|
-
|
3
|
+
p{font-size: x-small;}. Known bugs was created automatically from pages whose title matches /^Bug:/i.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
*
|
8
|
-
|
5
|
+
<automaticsummary>
|
6
|
+
|
7
|
+
* [[ Bug: Does not make use of if-modified-since request headers ]] revised on 2005 Jan 25 18:23 by AutomaticImport
|
8
|
+
* [[ Bug: Duplicate links-to a page sometimes appear ]] revised on 2005 Jan 25 18:23 by AutomaticImport
|
9
|
+
* [[ Bug: External links incorrectly include trailing punctuation ]] revised on 2005 Jan 25 18:23 by AutomaticImport
|
10
|
+
* [[ Bug: Uploads are not password protected ]] revised on 2005 Jan 25 18:23 by AutomaticImport
|
11
|
+
* [[ Bug: Page titles cannot have html tags in them ]] revised on 2005 Jan 26 08:11 by tamc2
|
12
|
+
* [[ Bug: No robots.txt or favicon.ico ]] revised on 2005 Jan 26 08:12 by tamc2
|
13
|
+
* [[ Bug: GEM limits title lengths ]] revised on 2005 Jan 26 08:55 by tamc2
|
14
|
+
|
15
|
+
|
16
|
+
</automaticsummary>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
h1. List of changes
|
2
2
|
|
3
|
-
h2. Between v-0-
|
3
|
+
h2. Between v-0-0-3 and v-0-0-2
|
4
4
|
|
5
5
|
h3. Features
|
6
6
|
|
@@ -14,6 +14,7 @@ h3. Features
|
|
14
14
|
* Kill list of words that will not be automatically linked (default set is the 30 most common English language words).
|
15
15
|
* The soks-create-wiki command can now be interactive (or can use command line options including --help and --no-interaction). It also manages upgrades from the previous version of Soks.
|
16
16
|
* There are some demo templates: default is the standard, rails looks a bit like www.rubyonrails.com and instiki which looks a bit like www.instiki.org.
|
17
|
+
* A meta data view of a page. Clicking on the page's title on the top left of the screen brings up a list of the links from and too that page, and a list of the people who have contributed to the page.
|
17
18
|
|
18
19
|
h3. Refactorings
|
19
20
|
|
@@ -0,0 +1 @@
|
|
1
|
+
page deleted
|
@@ -1 +1 @@
|
|
1
|
-
/attachment/logo.
|
1
|
+
/attachment/logo.png
|
@@ -0,0 +1,61 @@
|
|
1
|
+
h1. SOKS: Another Ruby Wiki
|
2
|
+
|
3
|
+
* This application is a Wiki (a system to allow the easy and collaborative editing of web pages).
|
4
|
+
* The project has been kindly hosted at http://rubyforge.org/projects/soks/
|
5
|
+
|
6
|
+
Quickstart:
|
7
|
+
1. gem install Soks
|
8
|
+
2. soks-create-wiki.rb
|
9
|
+
3. http://localhost:8000
|
10
|
+
|
11
|
+
h2. REQUIRES
|
12
|
+
|
13
|
+
* Ruby 1.8.2
|
14
|
+
* A number of additional libraries are contained in contrib.
|
15
|
+
|
16
|
+
h2. AUTHOR
|
17
|
+
|
18
|
+
* This software is copyright (c) Thomas Counsell 2004, 2005. tamc@rubyforge.org
|
19
|
+
* It is licensed under the Ruby Licence, a liberal open source licence. See LICENCE for more details.
|
20
|
+
|
21
|
+
h2. INSTALL
|
22
|
+
|
23
|
+
Preferably:
|
24
|
+
1. Install rubygems from http://rubyforge.org/projects/rubygems/
|
25
|
+
2. gem install Soks (you may need to be root first)
|
26
|
+
|
27
|
+
Alternatively
|
28
|
+
1. Download the tar or zip file from http://rubyforge.org/projects/soks/
|
29
|
+
2. Unzip or untar it
|
30
|
+
3. Change into the soks directory
|
31
|
+
|
32
|
+
h2. USE
|
33
|
+
|
34
|
+
execute soks-create-wiki.rb (will be in your path if installed by gems, otherwise ./bin/soks-create-wiki.rb from the soks directory)
|
35
|
+
This will create a folder called soks-wiki in the current directory and launch the wiki. Surfing to http://localhost:8000 to see it (it is initially accessible from localhost only)
|
36
|
+
|
37
|
+
To restart the wiki change into the soks-wiki directory and execute ruby start.rb
|
38
|
+
|
39
|
+
To change the settings (url, port, etc) edit the start.rb file in the soks-wiki directory.
|
40
|
+
|
41
|
+
h2. FEATURES
|
42
|
+
|
43
|
+
1. Runs on its own webrick server (no independent web server required)
|
44
|
+
2. Uses textile as its text coding (a proto-standard)
|
45
|
+
3, Uses a combination of flat and yaml files for storage (no database, and page content human readable outside of soks)
|
46
|
+
3. Allows uploads
|
47
|
+
4. Allows authentication
|
48
|
+
5. Automatically links pages within the wiki
|
49
|
+
6. Pages can be deleted and moved easily (and these can be undone)
|
50
|
+
7. Has a mechanism for external classes to manipulate the wiki to provide, for instance, automatic calendar pages, or automatic summaries or blog like pages.
|
51
|
+
|
52
|
+
h2. BUGS
|
53
|
+
|
54
|
+
I suspect there are many, as befits its version number. In particular it has:
|
55
|
+
* Not got any way of securing pictures or attachments added to the wiki
|
56
|
+
* Uses RedCloth 2.0.11 which has some formatting bugs (and no doubt some extra ones introduced by my clumsy extentions). RedCloth 3.0.1 is included but not enabled because it tends to hit stack overflows frequently for me.
|
57
|
+
|
58
|
+
h2. RELEASES
|
59
|
+
|
60
|
+
2005 Jan 24 - soks-0.0.3 - Second public release (alpha)
|
61
|
+
2005 Jan 11 - soks-0.0.2 - First public release (alpha)
|