junebug-wiki 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,105 @@
1
+ = 0.0.19 2006-11-22
2
+
3
+ * *BE SURE TO READ THE RELEASE NOTES*
4
+ * 'Recent Pages' page improvements
5
+ * Atom feed improvements
6
+ * Rename gem from junebug to junebug-wiki
7
+ * Renamed 'static' dir to 'public'
8
+ * Performance improvements
9
+
10
+ = 0.0.18 2006-11-21
11
+
12
+ * Changed diff output to compare unformatted text
13
+ * Converted to using hoe
14
+ * Quicksave option (doesn't increment version)
15
+ * Signup redirect bugfix
16
+ * External lib dir (ext)
17
+
18
+ = 0.0.17 2006-11-19
19
+
20
+ * Quick bugfix for login redirects behind proxy
21
+
22
+ = 0.0.16 2006-11-19
23
+
24
+ * Style tweaks
25
+ * Login/logout redirects you back to the page you were on
26
+
27
+ = 0.0.15 2006-11-17
28
+
29
+ * Loosen up mongrel requirements for windows users -- thanks deejay
30
+ * Bugfix for static file issue #6536. Thanks zimbatm
31
+ * Added css for wrapping pre text
32
+ * Changed wikiword syntax to [[link]]
33
+ * Unit testing improvements
34
+ * Command line help
35
+
36
+ = 0.0.14 2006-11-14
37
+
38
+ * Page title cleanup
39
+ * Rake task reorg
40
+ * Dump task
41
+ * Added error checking to generator
42
+
43
+ = 0.0.13 2006-11-14
44
+
45
+ * Link style improvement/simplification
46
+ * Autolinking urls
47
+ * use user.role to determine admin rights
48
+ * is_admin?, logged_in?
49
+
50
+ = 0.0.12 2006-11-13
51
+
52
+ * content div bugfix
53
+
54
+ = 0.0.11 2006-11-13
55
+
56
+ * Added revert
57
+ * Versioning bugfix
58
+ * Changed delete operation
59
+ * Added 'role' user field
60
+
61
+ = 0.0.10 2006-11-12
62
+
63
+ * Submit bugfix
64
+ * More unit tests
65
+
66
+ = 0.0.9 2006-11-10
67
+
68
+ * Mosquito unit tests
69
+
70
+ = 0.0.8 2006-11-08
71
+
72
+ * Style work
73
+ * Add rss link to head
74
+ * Stylesheet update rake task
75
+
76
+ = 0.0.7 2006-11-07
77
+
78
+ * Redirect bugfix for proxied sites
79
+
80
+ = 0.0.6 2006-11-07
81
+
82
+ * Delete pages
83
+ * More style work
84
+
85
+ = 0.0.5 2006-11-06
86
+
87
+ * Style cleanups
88
+ * Security fix
89
+ * Format test page
90
+
91
+ = 0.0.4 2006-11-05
92
+
93
+ * Readonly pages
94
+ * Start page
95
+ * Bugfixes
96
+
97
+ = 0.0.3 2006-10-30
98
+
99
+ * User accounts
100
+ * Daemonize
101
+ * Default page fixtures
102
+
103
+ = 0.0.2 2006-10-22
104
+
105
+ * Initial release
@@ -0,0 +1,36 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ RELEASE_NOTES.txt
5
+ Rakefile
6
+ bin/junebug
7
+ deploy/Rakefile
8
+ deploy/config.yml
9
+ deploy/console
10
+ deploy/public/images/feed-icon-14x14.png
11
+ deploy/public/style/base.css
12
+ deploy/public/style/yui/fonts.css
13
+ deploy/public/style/yui/grids.css
14
+ deploy/public/style/yui/reset.css
15
+ deploy/wiki
16
+ dump/junebug_pages.yml
17
+ lib/junebug.rb
18
+ lib/junebug/config.rb
19
+ lib/junebug/controllers.rb
20
+ lib/junebug/ext/acts_as_versioned.rb
21
+ lib/junebug/ext/diff.rb
22
+ lib/junebug/ext/mosquito.rb
23
+ lib/junebug/generator.rb
24
+ lib/junebug/helpers.rb
25
+ lib/junebug/models.rb
26
+ lib/junebug/tasks.rb
27
+ lib/junebug/tasks/dump.rake
28
+ lib/junebug/tasks/update.rake
29
+ lib/junebug/version.rb
30
+ lib/junebug/views.rb
31
+ setup.rb
32
+ test/fixtures/junebug_page_versions.yml
33
+ test/fixtures/junebug_pages.yml
34
+ test/fixtures/junebug_users.yml
35
+ test/test_helper.rb
36
+ test/wiki_test.rb
@@ -0,0 +1,87 @@
1
+ = JUNEBUG WIKI
2
+
3
+ * http://www.junebugwiki.com
4
+ * http://rubyforge.org/projects/junebug/
5
+ * tim.myrtle@gmail.com
6
+
7
+
8
+ == DESCRIPTION:
9
+
10
+ Junebug is a minimalist wiki, running on Camping.
11
+
12
+ This is an alpha release. Use at your own risk. Please do not use this for anything important.
13
+
14
+
15
+ == SYNOPSIS:
16
+
17
+ To create your Junebug wiki:
18
+
19
+ % junebug testwiki
20
+
21
+ This creates a directory 'testwiki' with the necessary files.
22
+
23
+ % cd testwiki
24
+ % ruby wiki run
25
+
26
+ View your new wiki at: http://localhost:3301
27
+
28
+ If everything is running fine, you can set the wiki to run in the background. Hit ctrl-C to kill the wiki, and then type
29
+
30
+ % ruby wiki start
31
+
32
+ You can change default configuration (host, port, startpage, etc.. ) by editing the config.yml file. For the changes to take effect, just restart the wiki:
33
+
34
+ % ruby wiki restart
35
+
36
+
37
+ == REQUIREMENTS:
38
+
39
+ * Ruby and rubygems
40
+ * Sqlite3
41
+
42
+ _why has set up a page describing how to get sqlite3 set up on ruby for various platforms: http://code.whytheluckystiff.net/camping/wiki/BeAlertWhenOnSqlite3
43
+
44
+ Please follow the instructions _why has provided. In particular, make sure that you have _why's latest sqlite3-ruby gem installed.
45
+
46
+
47
+ == INSTALL:
48
+
49
+ % gem install junebug --include-dependencies
50
+
51
+
52
+ == NOTES:
53
+
54
+ Starting and stopping the wiki:
55
+
56
+ % ruby wiki [start|stop|restart|run]
57
+
58
+
59
+ == CREDITS:
60
+
61
+ Thans to _why for camping http://code.whytheluckystiff.net/camping/wiki and his tepee wiki example which was the starting point for Junebug, and also to Chris Wanstrath for cheat http://cheat.errtheblog.com/ .
62
+
63
+
64
+ == LICENSE:
65
+
66
+ (The MIT License)
67
+
68
+ Copyright (c) 2006 Tim Myrtle
69
+
70
+ Permission is hereby granted, free of charge, to any person obtaining a copy
71
+ of this software and associated documentation files (the "Software"), to
72
+ deal in the Software without restriction, including without limitation the
73
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
74
+ sell copies of the Software, and to permit persons to whom the Software is
75
+ furnished to do so, subject to the following conditions:
76
+
77
+ The above copyright notice and this permission notice shall be included in
78
+ all copies or substantial portions of the Software.
79
+
80
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
81
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
82
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
83
+ THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
84
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
85
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
86
+
87
+
@@ -0,0 +1,25 @@
1
+ = 0.0.19 2006-11-22
2
+
3
+ Existing junebug installations will need to make the following changes:
4
+
5
+ # The name of the gem has changed to junebug-wiki. This means that to update junebug, you will need to:
6
+
7
+ gem uninstall junebug
8
+ gem install junebug-wiki
9
+
10
+ # An additional configuration parameter was added to config.yml. To update existing wikis, add the parameter:
11
+
12
+ feedtitle: 'Wiki Updates'
13
+
14
+ # The 'static' directory has been renamed to 'public'. You will need to rename this directory manually, or just run 'rake update:deploydir'.
15
+
16
+ Sorry for all the instability -- but I figure it is better now when the userbase is 3 than a month from now when it's 30 (ha!)
17
+
18
+
19
+ = 0.0.15 2006-11-17
20
+
21
+ The wikiword syntax changed in this release from just straight WikiLink to [[WikiLink]]. Just using camelcase was having trouble coexisting with textile, so I opted instead for the instiki convention which is less problematic.
22
+
23
+ This change will reqire updating any pre-existing pages to the new wikiword syntax.
24
+
25
+ Note that this format also supports the [[WikiLink|different label]] syntax.
@@ -0,0 +1,63 @@
1
+ $:.unshift './lib'
2
+
3
+ require 'rubygems'
4
+ require 'rake'
5
+ require 'rake/clean'
6
+ require 'rake/testtask'
7
+ require 'rake/packagetask'
8
+ require 'rake/gempackagetask'
9
+ require 'rake/rdoctask'
10
+ require 'rake/contrib/rubyforgepublisher'
11
+ require 'fileutils'
12
+ require 'hoe'
13
+ include FileUtils
14
+ require File.join(File.dirname(__FILE__), 'lib', 'junebug', 'version')
15
+
16
+ AUTHOR = "Tim Myrtle" # can also be an array of Authors
17
+ EMAIL = "tim.myrtle@gmail.com"
18
+ DESCRIPTION = "Junebug is a minimalist ruby wiki running on Camping."
19
+ GEM_NAME = "junebug-wiki" # what ppl will type to install your gem
20
+ RUBYFORGE_PROJECT = "junebug" # The unix name for your project
21
+ HOMEPATH = "http://www.junebugwiki.com"
22
+ RELEASE_TYPES = %w( gem ) # can use: gem, tar, zip
23
+
24
+ #NAME = "junebug" # I don't think this is used
25
+ REV = nil # File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
26
+ VERS = ENV['VERSION'] || (Junebug::VERSION::STRING + (REV ? ".#{REV}" : ""))
27
+ CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/*.db', '**/*.log', 'config.yml', 'deploy/dump/*']
28
+ TEST = ["test/**/*_test.rb"]
29
+ RDOC_OPTS = ['--quiet', '--title', "junebug documentation",
30
+ "--opname", "index.html", "--line-numbers", "--main", "README", "--inline-source"]
31
+
32
+ # Generate all the Rake tasks
33
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
34
+ hoe = Hoe.new(GEM_NAME, VERS) do |p|
35
+ p.author = AUTHOR
36
+ p.description = DESCRIPTION
37
+ p.email = EMAIL
38
+ p.summary = DESCRIPTION
39
+ p.url = HOMEPATH
40
+ p.rubyforge_name = RUBYFORGE_PROJECT
41
+ p.test_globs = TEST
42
+ p.clean_globs = CLEAN
43
+ p.need_tar = false
44
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
45
+
46
+ # == Optional
47
+ #p.changes - A description of the release's latest changes.
48
+ #p.spec_extras - A hash of extra values to set in the gemspec.
49
+ p.extra_deps = [
50
+ ['mongrel', '>=0.3.13.3'],
51
+ ['camping', '>=1.5'],
52
+ ['RedCloth', '>=3.0.4'],
53
+ ['daemons', '>=1.0.3'],
54
+ ['sqlite3-ruby', '>=1.1.0.1'],
55
+ ['activerecord', '>=1.14.4']
56
+ ]
57
+ end
58
+
59
+ #rake test RUBY_FLAGS=''
60
+
61
+
62
+
63
+
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ $:.unshift File.dirname(__FILE__) + "/../lib"
3
+
4
+ require 'rubygems'
5
+ require 'junebug/generator'
6
+
7
+ ENV['INTERACTIVE']='1'
8
+
9
+ Junebug::Generator.generate(ARGV)
10
+
11
+
12
+
@@ -0,0 +1,10 @@
1
+ $:.unshift "../lib"
2
+
3
+ require 'rubygems'
4
+ require 'rake'
5
+
6
+ require 'junebug/tasks'
7
+
8
+
9
+
10
+
@@ -0,0 +1,15 @@
1
+ # this what you want to be the default wiki page
2
+ startpage: JunebugWiki
3
+
4
+ # server configuration
5
+ host: 0.0.0.0
6
+ port: 3301
7
+
8
+ # if you want to have the wiki root running on something other than /
9
+ sitepath: /
10
+
11
+ # configuring rss
12
+ feedtitle: 'Wiki Updates'
13
+ url: http://localhost:3301
14
+ feed: http://localhost:3301/all/feed
15
+
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift File.dirname(__FILE__) + "/../lib"
4
+
5
+ require 'rubygems'
6
+ require 'junebug/config'
7
+
8
+ system "camping #{Junebug::Config.script} -C -d junebug.db -l junebug.log"
@@ -0,0 +1,274 @@
1
+ /* Baseline Junebug style */
2
+
3
+ a:link, a:visited {
4
+ /* text-decoration: none;*/
5
+ color: #0000cc;
6
+ }
7
+ a:hover {
8
+ /* text-decoration: underline;*/
9
+ color: #0000cc;
10
+ }
11
+
12
+ form { display: inline; }
13
+
14
+ span.actions a {
15
+ margin-right: 5px;
16
+ }
17
+
18
+ input.button {
19
+ margin: 5px 4px;
20
+ }
21
+
22
+ input, textarea {
23
+ padding: 2px;
24
+ margin-bottom: 5px;
25
+ /* font-family:"Bitstream Vera Sans Mono", "Monaco", "Courier", monospace;*/
26
+ }
27
+
28
+ input, textarea, pre, code {
29
+ font-family: monospace;
30
+ }
31
+
32
+ textarea {
33
+ width: 100%;
34
+ }
35
+
36
+ del {
37
+ color: #999;
38
+ background-color: #ddd;
39
+ }
40
+
41
+ ins {
42
+ background-color: #cfc;
43
+ text-decoration: none;
44
+ color: #000;
45
+ }
46
+
47
+
48
+ /* PAGE STRUCTURE */
49
+ body {
50
+ background:#d7d7d7;
51
+ }
52
+
53
+ #doc {
54
+ font-family: 'Lucida Grande', 'Trebuchet MS', Arial, Helvetica, sans-serif;
55
+ }
56
+
57
+ #hd {
58
+ /* border-top: 6px solid #809fff;*/
59
+ background-color: #6677aa;
60
+ padding: 8px 25px;
61
+ color: #ffffff;
62
+ }
63
+
64
+ #hd a {
65
+ color: #ffffff;
66
+ }
67
+
68
+ #hd h1 a {
69
+ color: #ffffff;
70
+ }
71
+ #hd h1 a:link, #hd h1 a:visited {
72
+ text-decoration: none;
73
+ }
74
+
75
+
76
+ #hd h1 {
77
+ font-size: 167%;
78
+ padding-bottom: 5px;
79
+ font-weight: normal;
80
+ }
81
+
82
+ #bd {
83
+ background-color: #ffffff;
84
+ border:5px solid #929292;
85
+ border-width:0 5px 5px 0;
86
+ }
87
+
88
+ #yui-main{
89
+ }
90
+
91
+ .yui-b{
92
+ }
93
+
94
+ #ft {
95
+ border: 1px solid #eee;
96
+ background-color: #ddd;
97
+ color: #333;
98
+ font-size: 100%;
99
+ padding: 8px;
100
+ margin-bottom: 10px;
101
+ line-height: 150%;
102
+ }
103
+
104
+ .formbox {
105
+ border-top: 1px solid #ccc;
106
+ background-color: #eee;
107
+ padding: 0 15px 10px 15px;
108
+ }
109
+
110
+ .login {
111
+ position: absolute;
112
+ left: 50%;
113
+ width: 220px;
114
+ margin-left: -150px;
115
+ margin-top: 50px;
116
+ background-color: #ddf;
117
+ padding: 20px 40px;
118
+ border: 4px solid #aaf;
119
+ text-align: center;
120
+ }
121
+
122
+ .login h1 {
123
+ font-size: 140%;
124
+ margin-bottom: 10px;
125
+ }
126
+
127
+ .login label {
128
+ font-weight: bold;
129
+ }
130
+
131
+ .login p.notice {
132
+ font-weight: bold;
133
+ background-color: #ffe;
134
+ border: 2px solid #ffa;
135
+ padding: 3px;
136
+ margin: 10px 0;
137
+ color: #822;
138
+ }
139
+
140
+ .admin {
141
+ float: left;
142
+ /* background-color: #ffa;*/
143
+ }
144
+
145
+ .admin input.button {
146
+ background-color: #ffa;
147
+ font-size: 85%;
148
+ margin: 0;
149
+ }
150
+
151
+ /* WIKI CONTENT STYLES */
152
+ .content {
153
+ font-size: 107%;
154
+ padding: 25px;
155
+ min-height: 300px;
156
+ }
157
+
158
+ .content h2, .content h3, .content h4, .content h5 {
159
+ /* color: #04766f;*/
160
+ font-weight: normal;
161
+ color: #447744;
162
+ border-bottom: 2px dotted #bbb;
163
+ margin-left: -5px;
164
+ margin-top: 20px;
165
+ margin-bottom: 10px;
166
+ padding: 1px 5px;
167
+ }
168
+
169
+ .content h1 {
170
+ font-size: 182%;
171
+ margin-bottom: 10px;
172
+ }
173
+
174
+ .content h2 {
175
+ font-size: 140%;
176
+ border-bottom: 2px dotted #bbb;
177
+ /* margin-top: 25px;*/
178
+ /* margin-bottom: 10px;*/
179
+ background-color: #edf9ef;
180
+ }
181
+
182
+ .content h3 {
183
+ font-size: 129%;
184
+ /* margin-top: 25px;*/
185
+ /* margin-bottom: 10px;*/
186
+ }
187
+
188
+ .content h4 {
189
+ font-size: 107%;
190
+ /* margin-top: 15px;*/
191
+ /* margin-bottom: 10px;*/
192
+ }
193
+
194
+ .content h5 {
195
+ font-size: 100%;
196
+ /* margin-top: 15px;*/
197
+ /* margin-bottom: 10px;*/
198
+ }
199
+
200
+
201
+ .content ul {
202
+ list-style-type: square;
203
+ margin: 10px 0px 10px 15px;
204
+ }
205
+
206
+ .content li {
207
+ line-height: 150%;
208
+ }
209
+
210
+ .content ol {
211
+ list-style-type: decimal;
212
+ margin: 10px 0px 10px 24px;
213
+ }
214
+
215
+ .content p {
216
+ line-height: 145%;
217
+ margin: 15px 0px;
218
+ }
219
+
220
+ .content em {
221
+ font-style: italic;
222
+ }
223
+
224
+ .content strong {
225
+ font-weight: bold;
226
+ /* background-color: #ffffcc;
227
+ padding: 3px;*/
228
+ }
229
+
230
+ .content label {
231
+ font-weight: bold;
232
+ }
233
+
234
+ .content code {
235
+ /* font-family:"Bitstream Vera Sans Mono", "Monaco", "Courier", monospace;*/
236
+ background: #f4f4f4;
237
+ padding: 2px;
238
+ }
239
+
240
+ .content pre code{
241
+ padding: 0px;
242
+ }
243
+
244
+ .content pre {
245
+ /* font-family:"Bitstream Vera Sans Mono", "Monaco", "Courier", monospace;*/
246
+ display: block;
247
+ background: #f4f4f4;
248
+ border: 1px solid #ddd;
249
+ padding: 8px 20px;
250
+ margin: 15px 0px;
251
+ }
252
+
253
+ /* http://longren.org/2006/09/27/wrapping-text-inside-pre-tags */
254
+ /* Browser specific (not valid) styles to make preformatted text wrap */
255
+ .content pre {
256
+ white-space: pre-wrap; /* css-3 */
257
+ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
258
+ white-space: -pre-wrap; /* Opera 4-6 */
259
+ white-space: -o-pre-wrap; /* Opera 7 */
260
+ word-wrap: break-word; /* Internet Explorer 5.5+ */
261
+ }
262
+
263
+ .content table {
264
+ }
265
+
266
+ .content th, .content td {
267
+ padding: 2px 5px;
268
+ border: solid #eee;
269
+ }
270
+
271
+ .content th {
272
+ font-weight: bold;
273
+ background-color: #d7e0ff;
274
+ }