cortex-reaver 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/bin/cortex_reaver +3 -4
- data/lib/cortex_reaver.rb +270 -110
- data/lib/cortex_reaver/cache.rb +23 -0
- data/lib/cortex_reaver/config.rb +178 -74
- data/lib/cortex_reaver/controller/admin.rb +64 -4
- data/lib/cortex_reaver/controller/comment.rb +4 -4
- data/lib/cortex_reaver/controller/controller.rb +3 -3
- data/lib/cortex_reaver/controller/journal.rb +4 -2
- data/lib/cortex_reaver/controller/main.rb +117 -26
- data/lib/cortex_reaver/controller/page.rb +7 -0
- data/lib/cortex_reaver/controller/photograph.rb +12 -10
- data/lib/cortex_reaver/controller/tag.rb +1 -1
- data/lib/cortex_reaver/controller/user.rb +7 -2
- data/lib/cortex_reaver/helper/attachments.rb +2 -2
- data/lib/cortex_reaver/helper/crud.rb +7 -7
- data/lib/cortex_reaver/helper/feeds.rb +56 -38
- data/lib/cortex_reaver/helper/form.rb +12 -16
- data/lib/cortex_reaver/helper/navigation.rb +35 -16
- data/lib/cortex_reaver/helper/photographs.rb +2 -2
- data/lib/cortex_reaver/helper/sidebar.rb +44 -0
- data/lib/cortex_reaver/helper/tags.rb +32 -9
- data/lib/cortex_reaver/helper/workflow.rb +2 -14
- data/lib/cortex_reaver/layout/blank.rhtml +27 -31
- data/lib/cortex_reaver/layout/text.rhtml +54 -67
- data/lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb +79 -0
- data/lib/cortex_reaver/model/comment.rb +7 -8
- data/lib/cortex_reaver/model/page.rb +5 -3
- data/lib/cortex_reaver/model/photograph.rb +57 -13
- data/lib/cortex_reaver/model/tag.rb +1 -4
- data/lib/cortex_reaver/model/user.rb +6 -3
- data/lib/cortex_reaver/plugin.rb +1 -1
- data/lib/cortex_reaver/plugins/twitter.rb +185 -0
- data/lib/cortex_reaver/public/css/actions.css +31 -0
- data/lib/cortex_reaver/public/css/admin.css +50 -27
- data/lib/cortex_reaver/public/css/attachments.css +11 -0
- data/lib/cortex_reaver/public/css/autotags.css +38 -0
- data/lib/cortex_reaver/public/css/code.css +10 -2
- data/lib/cortex_reaver/public/css/colophon.css +10 -0
- data/lib/cortex_reaver/public/css/commments.css +7 -0
- data/lib/cortex_reaver/public/css/custom.css +1 -0
- data/lib/cortex_reaver/public/css/flash.css +17 -0
- data/lib/cortex_reaver/public/css/fonts.css +22 -0
- data/lib/cortex_reaver/public/css/form.css +15 -3
- data/lib/cortex_reaver/public/css/generics.css +39 -0
- data/lib/cortex_reaver/public/css/icons.css +4 -0
- data/lib/cortex_reaver/public/css/journals.css +3 -0
- data/lib/cortex_reaver/public/css/main.css +30 -312
- data/lib/cortex_reaver/public/css/pagination.css +50 -0
- data/lib/cortex_reaver/public/css/photo-show.css +87 -0
- data/lib/cortex_reaver/public/css/photo.css +28 -97
- data/lib/cortex_reaver/public/css/progress.css +35 -0
- data/lib/cortex_reaver/public/css/sidebar.css +83 -0
- data/lib/cortex_reaver/public/css/table-of-contents.css +26 -0
- data/lib/cortex_reaver/public/css/table.css +3 -0
- data/lib/cortex_reaver/public/css/tags.css +29 -0
- data/lib/cortex_reaver/public/css/text.css +19 -1
- data/lib/cortex_reaver/public/css/top_actions.css +50 -0
- data/lib/cortex_reaver/public/css/users.css +3 -0
- data/lib/cortex_reaver/public/images/admin/icons.png +0 -0
- data/lib/cortex_reaver/public/images/admin/icons.xcf +0 -0
- data/lib/cortex_reaver/public/images/background_tile.png +0 -0
- data/lib/cortex_reaver/public/images/edit_34.png +0 -0
- data/lib/cortex_reaver/public/images/edit_34_prelight.png +0 -0
- data/lib/cortex_reaver/public/images/elided.png +0 -0
- data/lib/cortex_reaver/public/images/grid_34.png +0 -0
- data/lib/cortex_reaver/public/images/grid_34_prelight.png +0 -0
- data/lib/cortex_reaver/public/images/next_11.png +0 -0
- data/lib/cortex_reaver/public/images/next_34.png +0 -0
- data/lib/cortex_reaver/public/images/next_34_prelight.png +0 -0
- data/lib/cortex_reaver/public/images/prev_11.png +0 -0
- data/lib/cortex_reaver/public/images/prev_34.png +0 -0
- data/lib/cortex_reaver/public/images/prev_34_prelight.png +0 -0
- data/lib/cortex_reaver/public/js/admin.js +15 -22
- data/lib/cortex_reaver/public/js/autotags.js +120 -0
- data/lib/cortex_reaver/public/js/jquery.autocomplete.js +135 -176
- data/lib/cortex_reaver/public/js/jquery.color.js +124 -0
- data/lib/cortex_reaver/public/js/jquery.corners.min.js +7 -0
- data/lib/cortex_reaver/public/js/jquery.hotkeys-0.7.9.js +244 -0
- data/lib/cortex_reaver/public/js/jquery.js +4361 -4
- data/lib/cortex_reaver/public/js/jquery.periodicalupdater.js +98 -0
- data/lib/cortex_reaver/public/js/photo.js +3 -32
- data/lib/cortex_reaver/public/robots.txt +3 -0
- data/lib/cortex_reaver/snippets/ramaze/cache/memcached.rb +13 -10
- data/lib/cortex_reaver/snippets/range.rb +9 -0
- data/lib/cortex_reaver/support/attachments.rb +12 -0
- data/lib/cortex_reaver/support/comments.rb +1 -3
- data/lib/cortex_reaver/support/renderer.rb +20 -17
- data/lib/cortex_reaver/support/sequenceable.rb +6 -6
- data/lib/cortex_reaver/support/tags.rb +15 -7
- data/lib/cortex_reaver/version.rb +1 -1
- data/lib/cortex_reaver/view/admin/configuration.rhtml +7 -0
- data/lib/cortex_reaver/view/admin/index.rhtml +3 -0
- data/lib/cortex_reaver/view/admin/regenerate_photo_sizes.rhtml +16 -0
- data/lib/cortex_reaver/view/adminbox.rhtml +34 -44
- data/lib/cortex_reaver/view/comments/comment.rhtml +1 -1
- data/lib/cortex_reaver/view/comments/form.rhtml +1 -2
- data/lib/cortex_reaver/view/comments/post_form.rhtml +2 -10
- data/lib/cortex_reaver/view/head.rhtml +11 -0
- data/lib/cortex_reaver/view/journals/journal.rhtml +3 -3
- data/lib/cortex_reaver/view/journals/show.rhtml +0 -4
- data/lib/cortex_reaver/view/js.rhtml +1 -0
- data/lib/cortex_reaver/view/pages/list.rhtml +3 -23
- data/lib/cortex_reaver/view/pages/row.rhtml +13 -0
- data/lib/cortex_reaver/view/photographs/grid.rhtml +30 -36
- data/lib/cortex_reaver/view/photographs/show.rhtml +42 -108
- data/lib/cortex_reaver/view/sidebar/explore_photos.rhtml +7 -0
- data/lib/cortex_reaver/view/sidebar/photographs.rhtml +15 -0
- data/lib/cortex_reaver/view/sidebar/sections.rhtml +4 -0
- data/lib/cortex_reaver/view/sidebar/twitter.rhtml +12 -0
- data/lib/cortex_reaver/view/tags/show.rhtml +0 -10
- data/lib/cortex_reaver/view/tracker.rhtml +0 -0
- data/lib/cortex_reaver/view/users/list.rhtml +1 -7
- data/lib/cortex_reaver/view/users/login.rhtml +1 -1
- metadata +103 -43
- data/lib/cortex_reaver/controller/project.rb +0 -53
- data/lib/cortex_reaver/helper/template.rb +0 -37
- data/lib/cortex_reaver/model/project.rb +0 -57
- data/lib/cortex_reaver/public/css/ramaze_error.css +0 -90
- data/lib/cortex_reaver/public/images/atom-xml-icon.png +0 -0
- data/lib/cortex_reaver/public/images/body.png +0 -0
- data/lib/cortex_reaver/public/images/border_bottom.png +0 -0
- data/lib/cortex_reaver/public/images/border_bottom_left.png +0 -0
- data/lib/cortex_reaver/public/images/border_bottom_right.png +0 -0
- data/lib/cortex_reaver/public/images/border_left.png +0 -0
- data/lib/cortex_reaver/public/images/border_right.png +0 -0
- data/lib/cortex_reaver/public/images/border_top.png +0 -0
- data/lib/cortex_reaver/public/images/border_top_left.png +0 -0
- data/lib/cortex_reaver/public/images/border_top_right.png +0 -0
- data/lib/cortex_reaver/public/images/header.png +0 -0
- data/lib/cortex_reaver/public/images/header.xcf +0 -0
- data/lib/cortex_reaver/public/images/indicator.gif +0 -0
- data/lib/cortex_reaver/public/images/rss-xml-icon.png +0 -0
- data/lib/cortex_reaver/public/images/sections.png +0 -0
- data/lib/cortex_reaver/public/images/sections_highlight.png +0 -0
- data/lib/cortex_reaver/public/js/jquery.autocompletefb.js +0 -125
- data/lib/cortex_reaver/view/photographs/sidebar.rhtml +0 -7
- data/lib/cortex_reaver/view/projects/form.rhtml +0 -14
- data/lib/cortex_reaver/view/projects/list.rhtml +0 -31
- data/lib/cortex_reaver/view/projects/show.rhtml +0 -42
- data/lib/proto/cortex_reaver.yaml +0 -47
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cortex-reaver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Kingsbury
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-30 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,17 +20,17 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "2009.
|
23
|
+
version: "2009.07"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
26
|
+
name: libxml-ruby
|
27
27
|
type: :runtime
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.3
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: erubis
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0
|
53
|
+
version: 1.1.0
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: BlueCloth
|
@@ -70,47 +70,77 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - ~>
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 3.
|
73
|
+
version: 3.5.0
|
74
74
|
version:
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: thin
|
77
77
|
type: :runtime
|
78
78
|
version_requirement:
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 1.2.4
|
84
84
|
version:
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
86
|
+
name: exifr
|
87
87
|
type: :runtime
|
88
88
|
version_requirement:
|
89
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 0.10.7
|
94
94
|
version:
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
96
|
+
name: construct
|
97
97
|
type: :runtime
|
98
98
|
version_requirement:
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.1.2
|
104
|
+
version:
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rmagick
|
107
|
+
type: :runtime
|
108
|
+
version_requirement:
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 2.5.1
|
114
|
+
version:
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: cssmin
|
117
|
+
type: :runtime
|
118
|
+
version_requirement:
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 1.0.2
|
124
|
+
version:
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: jsmin
|
127
|
+
type: :runtime
|
128
|
+
version_requirement:
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 1.0.1
|
104
134
|
version:
|
105
135
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
136
|
+
name: json
|
107
137
|
type: :runtime
|
108
138
|
version_requirement:
|
109
139
|
version_requirements: !ruby/object:Gem::Requirement
|
110
140
|
requirements:
|
111
141
|
- - ~>
|
112
142
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
143
|
+
version: 1.1.9
|
114
144
|
version:
|
115
145
|
description:
|
116
146
|
email: aphyr@aphyr.com
|
@@ -130,49 +160,70 @@ files:
|
|
130
160
|
- lib/cortex_reaver/public
|
131
161
|
- lib/cortex_reaver/public/css
|
132
162
|
- lib/cortex_reaver/public/css/custom.css
|
163
|
+
- lib/cortex_reaver/public/css/table.css
|
164
|
+
- lib/cortex_reaver/public/css/icons.css
|
165
|
+
- lib/cortex_reaver/public/css/actions.css
|
166
|
+
- lib/cortex_reaver/public/css/journals.css
|
167
|
+
- lib/cortex_reaver/public/css/fonts.css
|
133
168
|
- lib/cortex_reaver/public/css/text.css
|
169
|
+
- lib/cortex_reaver/public/css/colophon.css
|
170
|
+
- lib/cortex_reaver/public/css/table-of-contents.css
|
171
|
+
- lib/cortex_reaver/public/css/photo-show.css
|
172
|
+
- lib/cortex_reaver/public/css/flash.css
|
173
|
+
- lib/cortex_reaver/public/css/top_actions.css
|
134
174
|
- lib/cortex_reaver/public/css/form.css
|
175
|
+
- lib/cortex_reaver/public/css/tags.css
|
176
|
+
- lib/cortex_reaver/public/css/autotags.css
|
135
177
|
- lib/cortex_reaver/public/css/admin.css
|
178
|
+
- lib/cortex_reaver/public/css/generics.css
|
179
|
+
- lib/cortex_reaver/public/css/pagination.css
|
136
180
|
- lib/cortex_reaver/public/css/photo.css
|
137
181
|
- lib/cortex_reaver/public/css/main.css
|
138
|
-
- lib/cortex_reaver/public/css/
|
182
|
+
- lib/cortex_reaver/public/css/sidebar.css
|
183
|
+
- lib/cortex_reaver/public/css/commments.css
|
184
|
+
- lib/cortex_reaver/public/css/attachments.css
|
185
|
+
- lib/cortex_reaver/public/css/progress.css
|
139
186
|
- lib/cortex_reaver/public/css/code.css
|
187
|
+
- lib/cortex_reaver/public/css/users.css
|
140
188
|
- lib/cortex_reaver/public/images
|
141
|
-
- lib/cortex_reaver/public/images/
|
142
|
-
- lib/cortex_reaver/public/images/
|
143
|
-
- lib/cortex_reaver/public/images/
|
144
|
-
- lib/cortex_reaver/public/images/atom-xml-icon.png
|
189
|
+
- lib/cortex_reaver/public/images/next_34_prelight.png
|
190
|
+
- lib/cortex_reaver/public/images/grid_34_prelight.png
|
191
|
+
- lib/cortex_reaver/public/images/prev_34.png
|
145
192
|
- lib/cortex_reaver/public/images/tag.gif
|
146
|
-
- lib/cortex_reaver/public/images/
|
147
|
-
- lib/cortex_reaver/public/images/border_left.png
|
148
|
-
- lib/cortex_reaver/public/images/header.png
|
193
|
+
- lib/cortex_reaver/public/images/prev_34_prelight.png
|
149
194
|
- lib/cortex_reaver/public/images/header_background.png
|
150
195
|
- lib/cortex_reaver/public/images/delete.gif
|
151
|
-
- lib/cortex_reaver/public/images/indicator.gif
|
152
|
-
- lib/cortex_reaver/public/images/border_bottom.png
|
153
|
-
- lib/cortex_reaver/public/images/header.xcf
|
154
196
|
- lib/cortex_reaver/public/images/parent.gif
|
155
|
-
- lib/cortex_reaver/public/images/
|
156
|
-
- lib/cortex_reaver/public/images/
|
157
|
-
- lib/cortex_reaver/public/images/
|
197
|
+
- lib/cortex_reaver/public/images/edit_34.png
|
198
|
+
- lib/cortex_reaver/public/images/grid_34.png
|
199
|
+
- lib/cortex_reaver/public/images/edit_34_prelight.png
|
200
|
+
- lib/cortex_reaver/public/images/admin
|
201
|
+
- lib/cortex_reaver/public/images/admin/icons.xcf
|
202
|
+
- lib/cortex_reaver/public/images/admin/icons.png
|
203
|
+
- lib/cortex_reaver/public/images/elided.png
|
204
|
+
- lib/cortex_reaver/public/images/next_34.png
|
205
|
+
- lib/cortex_reaver/public/images/next_11.png
|
158
206
|
- lib/cortex_reaver/public/images/CortexReaver.gif
|
159
207
|
- lib/cortex_reaver/public/images/dark_trans.png
|
160
|
-
- lib/cortex_reaver/public/images/
|
208
|
+
- lib/cortex_reaver/public/images/background_tile.png
|
209
|
+
- lib/cortex_reaver/public/images/prev_11.png
|
161
210
|
- lib/cortex_reaver/public/images/comment.gif
|
162
211
|
- lib/cortex_reaver/public/images/edit.gif
|
163
|
-
- lib/cortex_reaver/public/images/sections.png
|
164
|
-
- lib/cortex_reaver/public/images/border_right.png
|
165
212
|
- lib/cortex_reaver/public/js
|
166
213
|
- lib/cortex_reaver/public/js/jquery.dimensions.js
|
167
214
|
- lib/cortex_reaver/public/js/cookie.js
|
168
215
|
- lib/cortex_reaver/public/js/admin.js
|
169
216
|
- lib/cortex_reaver/public/js/jquery.autocomplete.js
|
170
|
-
- lib/cortex_reaver/public/js/jquery.autocompletefb.js
|
171
217
|
- lib/cortex_reaver/public/js/jquery.js
|
172
218
|
- lib/cortex_reaver/public/js/jquery.bgiframe.min.js
|
173
219
|
- lib/cortex_reaver/public/js/photo.js
|
220
|
+
- lib/cortex_reaver/public/js/jquery.periodicalupdater.js
|
221
|
+
- lib/cortex_reaver/public/js/jquery.color.js
|
222
|
+
- lib/cortex_reaver/public/js/jquery.corners.min.js
|
223
|
+
- lib/cortex_reaver/public/js/autotags.js
|
224
|
+
- lib/cortex_reaver/public/js/jquery.hotkeys-0.7.9.js
|
225
|
+
- lib/cortex_reaver/public/robots.txt
|
174
226
|
- lib/cortex_reaver/model
|
175
|
-
- lib/cortex_reaver/model/project.rb
|
176
227
|
- lib/cortex_reaver/model/tag.rb
|
177
228
|
- lib/cortex_reaver/model/model.rb
|
178
229
|
- lib/cortex_reaver/model/comment.rb
|
@@ -181,6 +232,8 @@ files:
|
|
181
232
|
- lib/cortex_reaver/model/user.rb
|
182
233
|
- lib/cortex_reaver/model/page.rb
|
183
234
|
- lib/cortex_reaver/plugin.rb
|
235
|
+
- lib/cortex_reaver/plugins
|
236
|
+
- lib/cortex_reaver/plugins/twitter.rb
|
184
237
|
- lib/cortex_reaver/version.rb
|
185
238
|
- lib/cortex_reaver/snippets
|
186
239
|
- lib/cortex_reaver/snippets/numeric.rb
|
@@ -188,13 +241,20 @@ files:
|
|
188
241
|
- lib/cortex_reaver/snippets/ramaze
|
189
242
|
- lib/cortex_reaver/snippets/ramaze/cache
|
190
243
|
- lib/cortex_reaver/snippets/ramaze/cache/memcached.rb
|
244
|
+
- lib/cortex_reaver/snippets/range.rb
|
191
245
|
- lib/cortex_reaver/view
|
246
|
+
- lib/cortex_reaver/view/sidebar
|
247
|
+
- lib/cortex_reaver/view/sidebar/twitter.rhtml
|
248
|
+
- lib/cortex_reaver/view/sidebar/photographs.rhtml
|
249
|
+
- lib/cortex_reaver/view/sidebar/explore_photos.rhtml
|
250
|
+
- lib/cortex_reaver/view/sidebar/sections.rhtml
|
192
251
|
- lib/cortex_reaver/view/journals
|
193
252
|
- lib/cortex_reaver/view/journals/short.rhtml
|
194
253
|
- lib/cortex_reaver/view/journals/form.rhtml
|
195
254
|
- lib/cortex_reaver/view/journals/list.rhtml
|
196
255
|
- lib/cortex_reaver/view/journals/show.rhtml
|
197
256
|
- lib/cortex_reaver/view/journals/journal.rhtml
|
257
|
+
- lib/cortex_reaver/view/tracker.rhtml
|
198
258
|
- lib/cortex_reaver/view/users
|
199
259
|
- lib/cortex_reaver/view/users/form.rhtml
|
200
260
|
- lib/cortex_reaver/view/users/login.rhtml
|
@@ -212,14 +272,12 @@ files:
|
|
212
272
|
- lib/cortex_reaver/view/documentation/formatting.rhtml
|
213
273
|
- lib/cortex_reaver/view/admin
|
214
274
|
- lib/cortex_reaver/view/admin/index.rhtml
|
275
|
+
- lib/cortex_reaver/view/admin/configuration.rhtml
|
276
|
+
- lib/cortex_reaver/view/admin/regenerate_photo_sizes.rhtml
|
215
277
|
- lib/cortex_reaver/view/admin/update_tags.rhtml
|
216
|
-
- lib/cortex_reaver/view/
|
217
|
-
- lib/cortex_reaver/view/projects/form.rhtml
|
218
|
-
- lib/cortex_reaver/view/projects/list.rhtml
|
219
|
-
- lib/cortex_reaver/view/projects/show.rhtml
|
278
|
+
- lib/cortex_reaver/view/js.rhtml
|
220
279
|
- lib/cortex_reaver/view/photographs
|
221
280
|
- lib/cortex_reaver/view/photographs/form.rhtml
|
222
|
-
- lib/cortex_reaver/view/photographs/sidebar.rhtml
|
223
281
|
- lib/cortex_reaver/view/photographs/list.rhtml
|
224
282
|
- lib/cortex_reaver/view/photographs/grid.rhtml
|
225
283
|
- lib/cortex_reaver/view/photographs/show.rhtml
|
@@ -230,11 +288,14 @@ files:
|
|
230
288
|
- lib/cortex_reaver/view/pages/form.rhtml
|
231
289
|
- lib/cortex_reaver/view/pages/list.rhtml
|
232
290
|
- lib/cortex_reaver/view/pages/show.rhtml
|
291
|
+
- lib/cortex_reaver/view/pages/row.rhtml
|
233
292
|
- lib/cortex_reaver/view/tags
|
234
293
|
- lib/cortex_reaver/view/tags/form.rhtml
|
235
294
|
- lib/cortex_reaver/view/tags/list.rhtml
|
236
295
|
- lib/cortex_reaver/view/tags/show.rhtml
|
237
296
|
- lib/cortex_reaver/view/adminbox.rhtml
|
297
|
+
- lib/cortex_reaver/view/head.rhtml
|
298
|
+
- lib/cortex_reaver/cache.rb
|
238
299
|
- lib/cortex_reaver/migrations
|
239
300
|
- lib/cortex_reaver/migrations/003_journals.rb
|
240
301
|
- lib/cortex_reaver/migrations/009_mysql.rb
|
@@ -246,11 +307,11 @@ files:
|
|
246
307
|
- lib/cortex_reaver/migrations/008_config.rb
|
247
308
|
- lib/cortex_reaver/migrations/012_created_by_edited_by.rb
|
248
309
|
- lib/cortex_reaver/migrations/007_comments.rb
|
310
|
+
- lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb
|
249
311
|
- lib/cortex_reaver/migrations/013_draft.rb
|
250
312
|
- lib/cortex_reaver/migrations/001_users.rb
|
251
313
|
- lib/cortex_reaver/migrations/004_photographs.rb
|
252
314
|
- lib/cortex_reaver/controller
|
253
|
-
- lib/cortex_reaver/controller/project.rb
|
254
315
|
- lib/cortex_reaver/controller/tag.rb
|
255
316
|
- lib/cortex_reaver/controller/main.rb
|
256
317
|
- lib/cortex_reaver/controller/comment.rb
|
@@ -276,9 +337,9 @@ files:
|
|
276
337
|
- lib/cortex_reaver/support/cached_rendering.rb
|
277
338
|
- lib/cortex_reaver/helper
|
278
339
|
- lib/cortex_reaver/helper/feeds.rb
|
340
|
+
- lib/cortex_reaver/helper/sidebar.rb
|
279
341
|
- lib/cortex_reaver/helper/workflow.rb
|
280
342
|
- lib/cortex_reaver/helper/attachments.rb
|
281
|
-
- lib/cortex_reaver/helper/template.rb
|
282
343
|
- lib/cortex_reaver/helper/navigation.rb
|
283
344
|
- lib/cortex_reaver/helper/crud.rb
|
284
345
|
- lib/cortex_reaver/helper/photographs.rb
|
@@ -291,7 +352,6 @@ files:
|
|
291
352
|
- lib/cortex_reaver/helper/date.rb
|
292
353
|
- lib/cortex_reaver/helper/error.rb
|
293
354
|
- lib/proto
|
294
|
-
- lib/proto/cortex_reaver.yaml
|
295
355
|
- LICENSE
|
296
356
|
- README
|
297
357
|
has_rdoc: true
|
@@ -305,7 +365,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
305
365
|
requirements:
|
306
366
|
- - ">="
|
307
367
|
- !ruby/object:Gem::Version
|
308
|
-
version: 1.8.
|
368
|
+
version: 1.8.6
|
309
369
|
version:
|
310
370
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
371
|
requirements:
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module CortexReaver
|
2
|
-
class ProjectController < Controller
|
3
|
-
MODEL = Project
|
4
|
-
|
5
|
-
map '/projects'
|
6
|
-
|
7
|
-
layout(:text) do |name, wish|
|
8
|
-
!request.xhr? and name != 'atom'
|
9
|
-
end
|
10
|
-
|
11
|
-
alias_view :edit, :form
|
12
|
-
alias_view :new, :form
|
13
|
-
|
14
|
-
helper :cache,
|
15
|
-
:date,
|
16
|
-
:tags,
|
17
|
-
:canonical,
|
18
|
-
:crud,
|
19
|
-
:attachments,
|
20
|
-
:feeds
|
21
|
-
|
22
|
-
cache_action(:method => :index, :ttl => 120) do
|
23
|
-
user.id.to_i.to_s + flash.inspect
|
24
|
-
end
|
25
|
-
|
26
|
-
on_second_save do |project, request|
|
27
|
-
project.tags = request[:tags]
|
28
|
-
add_attachments(project, request[:attachments])
|
29
|
-
project.body = request[:body]
|
30
|
-
|
31
|
-
Ramaze::Cache.action.clear
|
32
|
-
end
|
33
|
-
|
34
|
-
on_save do |project, request|
|
35
|
-
project.title = request[:title]
|
36
|
-
project.name = Project.canonicalize request[:name], :id => project.id
|
37
|
-
project.description = request[:description]
|
38
|
-
project.draft = request[:draft]
|
39
|
-
end
|
40
|
-
|
41
|
-
on_create do |project, request|
|
42
|
-
project.creator = session[:user]
|
43
|
-
end
|
44
|
-
|
45
|
-
on_update do |project, request|
|
46
|
-
project.updater = session[:user]
|
47
|
-
end
|
48
|
-
|
49
|
-
for_feed do |project, x|
|
50
|
-
x.content project.body_cache, :type => 'html'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
module Ramaze
|
2
|
-
module Helper
|
3
|
-
# Simple render_template method
|
4
|
-
module Template
|
5
|
-
# # HACK: find the template to render
|
6
|
-
# def render_template(path)
|
7
|
-
# opts = Ramaze::App[:cortex_reaver].options
|
8
|
-
#
|
9
|
-
# # Construct possible directories
|
10
|
-
# roots = opts.roots.map do |root|
|
11
|
-
# opts.views.map do |view|
|
12
|
-
# root = File.join(root, view)
|
13
|
-
#
|
14
|
-
# if path[0..0] != '/'
|
15
|
-
# # Append controller map as well
|
16
|
-
# File.join(root, Ramaze::Current.action.node.mapping)
|
17
|
-
# else
|
18
|
-
# root
|
19
|
-
# end
|
20
|
-
# end
|
21
|
-
# end
|
22
|
-
# roots.flatten!
|
23
|
-
#
|
24
|
-
# # Try to find the path in each root
|
25
|
-
# roots.each do |root|
|
26
|
-
# file = File.join(root, path)
|
27
|
-
# if File.exists? file
|
28
|
-
# return render_file(file)
|
29
|
-
# end
|
30
|
-
# end
|
31
|
-
#
|
32
|
-
# # Lookup failed
|
33
|
-
# raise RuntimeError.new("No template #{path} in any of #{roots.inspect}")
|
34
|
-
# end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
module CortexReaver
|
2
|
-
class Project < Sequel::Model(:projects)
|
3
|
-
plugin :timestamps
|
4
|
-
plugin :cached_rendering
|
5
|
-
plugin :canonical
|
6
|
-
plugin :attachments
|
7
|
-
plugin :comments
|
8
|
-
plugin :tags
|
9
|
-
plugin :sequenceable
|
10
|
-
plugin :viewable
|
11
|
-
include CortexReaver::Model::Renderer
|
12
|
-
|
13
|
-
many_to_many :tags, :class => 'CortexReaver::Tag'
|
14
|
-
many_to_one :creator, :class => 'CortexReaver::User', :key => 'created_by'
|
15
|
-
many_to_one :updater, :class => 'CortexReaver::User', :key => 'updated_by'
|
16
|
-
one_to_many :comments, :class => 'CortexReaver::Comment'
|
17
|
-
|
18
|
-
|
19
|
-
render :body
|
20
|
-
|
21
|
-
def self.atom_url
|
22
|
-
'/projects/atom'
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.get(id)
|
26
|
-
self[:name => id] || self[id]
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.recent
|
30
|
-
reverse_order(:updated_on).limit(16)
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.url
|
34
|
-
'/projects'
|
35
|
-
end
|
36
|
-
|
37
|
-
def atom_url
|
38
|
-
'/projects/atom/' + name
|
39
|
-
end
|
40
|
-
|
41
|
-
def to_s
|
42
|
-
title || name
|
43
|
-
end
|
44
|
-
|
45
|
-
def url
|
46
|
-
'/projects/show/' + name
|
47
|
-
end
|
48
|
-
|
49
|
-
def validate
|
50
|
-
validates_unique :name
|
51
|
-
validates_presence :name
|
52
|
-
validates_max_length 255, :name
|
53
|
-
validates_presence :title
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
57
|
-
end
|