junebug 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,18 @@
1
+ Copyright (c) 2006 Tim Myrtle
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to
5
+ deal in the Software without restriction, including without limitation the
6
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
+ sell copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16
+ THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,60 @@
1
+ = Junebug: Minimalist Ruby Wiki
2
+
3
+ Junebug is a minimalist wiki, running on a minimalist web framework.
4
+
5
+
6
+ == Status
7
+
8
+ Junebug v0.0.3 release, 2006-10-31
9
+
10
+ This is an alpha release. Use at your own risk. Please do not use this for anything important.
11
+
12
+
13
+ == Dependencies
14
+
15
+ * Ruby and rubygems
16
+
17
+ * Sqlite3
18
+
19
+ _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
20
+
21
+ Please follow the instructions _why has provided. In particular, make sure that you have _why's latest sqlite3-ruby gem installed.
22
+
23
+
24
+ == Quickstart
25
+
26
+ Install junebug
27
+
28
+ > gem install junebug --include-dependencies
29
+
30
+ To create your Junebug wiki:
31
+
32
+ > junebug testwiki
33
+
34
+ This creates a directory 'testwiki' with the necessary files.
35
+
36
+ > cd testwiki
37
+ > ./wiki start
38
+
39
+ View your new wiki at: http://localhost:3301
40
+
41
+ You can change default configuration (host, port, startpage, etc.. ) by editing the config.yml file
42
+
43
+
44
+ == Notes
45
+
46
+ Starting and stopping the wiki:
47
+
48
+ > ./wiki start
49
+ > ./wiki stop
50
+
51
+
52
+ == Credits
53
+
54
+ 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/ .
55
+
56
+
57
+ == Contact
58
+
59
+ Tim Myrtle
60
+ tim.myrtle@gmail.com
data/bin/junebug ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ $:.unshift File.dirname(__FILE__) + "/../lib"
3
+
4
+ require 'rubygems'
5
+ require 'junebug/generator'
6
+
7
+ if ARGV.first.empty?
8
+ puts "Usage: junebug wikiname"
9
+ exit
10
+ end
11
+
12
+ Junebug::Generator.generate(ARGV)
13
+
14
+
15
+
data/deploy/config.yml ADDED
@@ -0,0 +1,11 @@
1
+ # this what you want to be the default wiki page
2
+ startpage: JunebugWiki
3
+ # server configuration
4
+ host: 0.0.0.0
5
+ port: 3301
6
+ # change this if you want to have the wiki root running on something other than /
7
+ sitepath: /
8
+ # these are for configuring the rss feed
9
+ url: http://localhost:3301
10
+ feed: http://localhost:3301/all/feed
11
+
data/deploy/console ADDED
@@ -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,181 @@
1
+
2
+ form { display: inline; }
3
+
4
+ span.actions a {
5
+ margin-right: 5px;
6
+ }
7
+
8
+ input.button {
9
+ margin-right: 5px;
10
+ }
11
+
12
+ input, textarea {
13
+ padding: 2px;
14
+ margin-bottom: 5px;
15
+ }
16
+
17
+ del {
18
+ color: #999;
19
+ background-color: #ddd;
20
+ }
21
+
22
+ ins {
23
+ background-color: #cfc;
24
+ text-decoration: none;
25
+ color: #000;
26
+ }
27
+
28
+
29
+ /* PAGE STRUCTURE */
30
+ #doc {
31
+ font-family: "Lucida Grande", Verdana, sans-serif;
32
+ /* background-color: #EFE6CE;*/
33
+ }
34
+
35
+ #hd {
36
+ border-top: 8px solid #4e0dc4;
37
+ background-color: #3f276a;
38
+ padding: 8px;
39
+ /* font-size: 100%;*/
40
+ color: #ffffff;
41
+ }
42
+
43
+ #hd a:link, #hd a:visited {
44
+ text-decoration: none;
45
+ }
46
+ #hd a:hover {
47
+ text-decoration: underline;
48
+ }
49
+
50
+ #hd a {
51
+ color: #ffffff;
52
+ }
53
+
54
+ #hd h1 {
55
+ font-size: 167%;
56
+ padding-bottom: 10px;
57
+ }
58
+
59
+ #bd {
60
+ padding: 8px;
61
+ /* font-size: 100%;*/
62
+ }
63
+
64
+ #yui-main{
65
+ /* font-size: 100%;*/
66
+ }
67
+
68
+ .yui-b{
69
+ /* font-size: 100%;*/
70
+ }
71
+
72
+ #ft {
73
+ border: 1px solid #ddd;
74
+ background-color: #eee;
75
+ font-size: 100%;
76
+ padding: 8px;
77
+ margin-bottom: 10px;
78
+ }
79
+
80
+ .formbox {
81
+ border-top: 1px solid #ccc;
82
+ background-color: #eee;
83
+ padding: 0 15px 10px 15px;
84
+ }
85
+
86
+ .login {
87
+ position: absolute;
88
+ left: 50%;
89
+ width: 220px;
90
+ margin-left: -150px;
91
+ margin-top: 50px;
92
+ background-color: #ddf;
93
+ padding: 20px 40px;
94
+ border: 4px solid #aaf;
95
+ text-align: center;
96
+ }
97
+
98
+ .login h1 {
99
+ font-size: 140%;
100
+ margin-bottom: 10px;
101
+ }
102
+
103
+ .login label {
104
+ font-weight: bold;
105
+ }
106
+
107
+ .login p.notice {
108
+ font-weight: bold;
109
+ background-color: #ffe;
110
+ border: 2px solid #ffa;
111
+ padding: 3px;
112
+ margin: 10px 0;
113
+ color: #822;
114
+ }
115
+
116
+
117
+ /* CONTENT STYLES */
118
+ .content {
119
+ font-size: 100%;
120
+ }
121
+
122
+ .content h1, .content h2, .content h3, .content h4 {
123
+ margin-bottom: 10px;
124
+ }
125
+
126
+ .content h1 {
127
+ font-size: 182%;
128
+ }
129
+
130
+ .content h2 {
131
+ font-size: 152%;
132
+ border-bottom: 1px dotted #bbb;
133
+ background-color: #eef;
134
+ }
135
+
136
+ .content h3 {
137
+ font-size: 129%;
138
+ border-bottom: 1px dotted #bbb;
139
+ }
140
+
141
+ .content h4 {
142
+ font-size: 107%;
143
+ }
144
+
145
+ .content ul {
146
+ list-style-type: square;
147
+ margin: 10px 0px 10px 18px;
148
+ }
149
+
150
+ .content ol {
151
+ list-style-type: decimal;
152
+ margin: 10px 0px 10px 24px;
153
+ }
154
+
155
+ .content p {
156
+ margin: 10px 0px;
157
+ }
158
+
159
+ .content strong {
160
+ font-weight: bold;
161
+ }
162
+
163
+ .content label {
164
+ font-weight: bold;
165
+ }
166
+
167
+ .content pre {
168
+ color: #00FF00;
169
+ background: #000;
170
+ overflow: auto;
171
+ font-size: 100%;
172
+ font-family: "courier new", courier, monospace;
173
+ padding: 10px;
174
+
175
+ /* http://longren.org/2006/09/27/wrapping-text-inside-pre-tags */
176
+ white-space: pre-wrap; /* css-3 */
177
+ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
178
+ white-space: -pre-wrap; /* Opera 4-6 */
179
+ white-space: -o-pre-wrap; /* Opera 7 */
180
+ word-wrap: break-word; /* Internet Explorer 5.5+ */
181
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ Copyright (c) 2006, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.net/yui/license.txt
5
+ version: 0.11.3
6
+ */
7
+
8
+ /**
9
+ * 84.5% for !IE, keywords for IE
10
+ * Percents could work for IE, but for backCompat purposes, we are using
11
+ keywords.
12
+ * x-small is for IE < 6 and IE6 quirks mode.
13
+ *
14
+ */
15
+ body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-
16
+ small;}
17
+ table {font-size:inherit;font:100%;}
18
+
19
+ /**
20
+ * 99% for safari; 100% is too large
21
+ */
22
+ select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
23
+
24
+ /**
25
+ * Bump up !IE to get to 13px equivalent
26
+ */
27
+ pre, code {font:115% monospace;*font-size:100%;}
28
+
29
+ /**
30
+ * Default line-height based on font-size rather than "computed-value"
31
+ * see: http://www.w3.org/TR/CSS21/visudet.html#line-height
32
+ */
33
+ body * {line-height:1.22em;}
34
+
@@ -0,0 +1,88 @@
1
+ /*
2
+ Copyright (c) 2006, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.net/yui/license.txt
5
+ version: 0.11.3
6
+ */
7
+ body {
8
+ text-align:center;
9
+ }
10
+
11
+ #doc {
12
+ width:57.69em;
13
+ *width:56.3em; /* IE */
14
+ min-width:750px;
15
+ margin:auto;
16
+ text-align:left;
17
+ }
18
+
19
+ #hd,#bd {margin-bottom:1em;text-align:left;}
20
+ #ft {/*font-size:77%;font-family:verdana;*/clear:both;}
21
+
22
+ /* rules for main templates */
23
+ .yui-t1 #yui-main .yui-b, .yui-t2 #yui-main .yui-b, .yui-t3 #yui-main .yui-b,
24
+ .yui-t4 .yui-b, .yui-t5 .yui-b, .yui-t6 .yui-b {float:right;}
25
+ .yui-t1 .yui-b, .yui-t2 .yui-b, .yui-t3 .yui-b, .yui-t4 #yui-main .yui-b, .yui-
26
+ t5 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {float:left;}
27
+
28
+ /* t1: L160 */
29
+ .yui-t1 #yui-main .yui-b {width:76%;min-width:570px;}
30
+ .yui-t1 .yui-b {width:21.33%;min-width:160px;}
31
+
32
+ /* t2 & t4: L180 & R180 */
33
+ .yui-t2 #yui-main .yui-b, .yui-t4 #yui-main .yui-b {width:73.4%;min-
34
+ width:550px;}
35
+ .yui-t2 .yui-b, .yui-t4 .yui-b {width:24%;min-width:180px;}
36
+
37
+ /* t3 & t6: L300 & R300 */
38
+ .yui-t3 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {width:57.6%;min-
39
+ width:430px;}
40
+ .yui-t3 .yui-b, .yui-t6 .yui-b {width:40%;min-width:300px;}
41
+
42
+ /* t5: R240 */
43
+ .yui-t5 #yui-main .yui-b {width:65.4%;min-width:490px;}
44
+ .yui-t5 .yui-b {width:32%;min-width:240px;}
45
+
46
+ /* t7: 750 */
47
+
48
+
49
+
50
+ /* grid-generic rules for all templates */
51
+
52
+ /* all modules and grids nested in a grid get floated */
53
+ .yui-g .yui-u, .yui-g .yui-g, .yui-ge .yui-u, .yui-gf .yui-u {
54
+ float:right;
55
+ display:inline; /* IE */
56
+ }
57
+
58
+ /* float left and kill margin on first for added flex */
59
+ .yui-g .first, .yui-gd .first, .yui-ge .first, .yui-gf .first {float:left; }
60
+
61
+ /* 2 col */
62
+ .yui-g .yui-u, .yui-g .yui-g {width:49.1%;}
63
+ .yui-g .yui-g .yui-u {width:48.1%;} /* smaller for nested to preserve margins */
64
+
65
+ /* 3 col */
66
+ .yui-gb .yui-u, .yui-gc .yui-u, .yui-gd .yui-u {
67
+ float:left; /* need to reverse the order for 3 */
68
+ margin-left:2%; *margin-left:1.895%;
69
+ width:32%;
70
+ }
71
+
72
+ .yui-gb .first, .yui-gc .first, .yui-gd .first {margin-left:0;}
73
+
74
+ /* colspan 2 */
75
+ .yui-gc .first, .yui-gd .yui-u {width:66%;}
76
+ .yui-gd .first {width:32%;}
77
+
78
+ /* colspan 3 */
79
+ .yui-ge .yui-u {width:24%;}
80
+ .yui-ge .first, .yui-gf .yui-u {width:74.2%;}
81
+ .yui-gf .first {width:24%;}
82
+ .yui-ge .first {width:74.2%;}
83
+
84
+ /* self clear floated parent containers */
85
+ #bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui-
86
+ ge:after, .yui-gf:after
87
+ {content:".";display:block;height:0;clear:both;visibility:hidden;}
88
+ #bd, .yui-g, .yui-gb, .yui-gc, .yui-gd, .yui-ge, .yui-gf {zoom:1;} /* IE */
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright (c) 2006, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.net/yui/license.txt
5
+ version: 0.11.3
6
+ */
7
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
8
+ table{border-collapse:collapse;border-spacing:0;}
9
+ fieldset,img{border:0;}
10
+ address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
11
+ ol,ul {list-style:none;}
12
+ caption,th {text-align:left;}
13
+ h1,h2,h3,h4,h5,h6{font-size:100%;}
14
+ q:before,q:after{content:'';}
data/deploy/wiki ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift File.dirname(__FILE__) + "/../lib"
4
+
5
+ require 'rubygems'
6
+ require 'daemons'
7
+ require 'fileutils'
8
+ require 'junebug/config'
9
+
10
+ JUNEBUG_ROOT = ENV['JUNEBUG_ROOT'] = File.dirname(File.expand_path(__FILE__))
11
+
12
+ Daemons.run(Junebug::Config.script, :dir_mode=>:normal, :dir=> JUNEBUG_ROOT)
13
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ - updated_at: 2006-11-01 00:19:02 -08:00
3
+ title: JunebugWiki
4
+ readonly:
5
+ body: |
6
+ h1. Welcome to Junebug!
7
+
8
+ This is your default start page.
9
+
10
+
11
+
12
+ id: 1
13
+ version: 1
14
+ user_id: 1
15
+ created_at: 2006-10-29 16:19:34 -08:00
16
+ - updated_at: 2006-11-01 00:10:27 -08:00
17
+ title: JunebugHelp
18
+ readonly:
19
+ body: This is a work in progress
20
+ id: 2
21
+ version: 1
22
+ user_id: 1
23
+ created_at: 2006-11-01 00:10:07 -08:00