rethoth 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +26 -0
  3. data/bin/thoth +233 -0
  4. data/lib/proto/config.ru +45 -0
  5. data/lib/proto/thoth.conf.sample +206 -0
  6. data/lib/thoth/cache.rb +53 -0
  7. data/lib/thoth/config.rb +158 -0
  8. data/lib/thoth/controller/admin.rb +75 -0
  9. data/lib/thoth/controller/api/comment.rb +73 -0
  10. data/lib/thoth/controller/api/page.rb +134 -0
  11. data/lib/thoth/controller/api/post.rb +122 -0
  12. data/lib/thoth/controller/api/tag.rb +59 -0
  13. data/lib/thoth/controller/archive.rb +50 -0
  14. data/lib/thoth/controller/comment.rb +173 -0
  15. data/lib/thoth/controller/main.rb +193 -0
  16. data/lib/thoth/controller/media.rb +172 -0
  17. data/lib/thoth/controller/page.rb +167 -0
  18. data/lib/thoth/controller/post.rb +310 -0
  19. data/lib/thoth/controller/search.rb +86 -0
  20. data/lib/thoth/controller/tag.rb +107 -0
  21. data/lib/thoth/controller.rb +48 -0
  22. data/lib/thoth/errors.rb +35 -0
  23. data/lib/thoth/helper/admin.rb +86 -0
  24. data/lib/thoth/helper/cookie.rb +45 -0
  25. data/lib/thoth/helper/error.rb +122 -0
  26. data/lib/thoth/helper/pagination.rb +131 -0
  27. data/lib/thoth/helper/wiki.rb +77 -0
  28. data/lib/thoth/helper/ysearch.rb +89 -0
  29. data/lib/thoth/importer/pants.rb +81 -0
  30. data/lib/thoth/importer/poseidon.rb +54 -0
  31. data/lib/thoth/importer/thoth.rb +103 -0
  32. data/lib/thoth/importer.rb +131 -0
  33. data/lib/thoth/layout/default.rhtml +47 -0
  34. data/lib/thoth/middleware/minify.rb +82 -0
  35. data/lib/thoth/migrate/001_create_schema.rb +108 -0
  36. data/lib/thoth/migrate/002_add_media_size.rb +37 -0
  37. data/lib/thoth/migrate/003_add_post_draft.rb +38 -0
  38. data/lib/thoth/migrate/004_add_comment_email.rb +37 -0
  39. data/lib/thoth/migrate/005_add_page_position.rb +37 -0
  40. data/lib/thoth/migrate/006_add_comment_close_delete.rb +43 -0
  41. data/lib/thoth/migrate/007_add_comment_summary.rb +37 -0
  42. data/lib/thoth/model/comment.rb +216 -0
  43. data/lib/thoth/model/media.rb +87 -0
  44. data/lib/thoth/model/page.rb +204 -0
  45. data/lib/thoth/model/post.rb +262 -0
  46. data/lib/thoth/model/tag.rb +80 -0
  47. data/lib/thoth/model/tags_posts_map.rb +34 -0
  48. data/lib/thoth/monkeypatch/sequel/model/errors.rb +37 -0
  49. data/lib/thoth/plugin/thoth_delicious.rb +105 -0
  50. data/lib/thoth/plugin/thoth_flickr.rb +86 -0
  51. data/lib/thoth/plugin/thoth_pinboard.rb +98 -0
  52. data/lib/thoth/plugin/thoth_tags.rb +68 -0
  53. data/lib/thoth/plugin/thoth_twitter.rb +175 -0
  54. data/lib/thoth/plugin.rb +59 -0
  55. data/lib/thoth/public/css/admin.css +223 -0
  56. data/lib/thoth/public/css/thoth.css +592 -0
  57. data/lib/thoth/public/images/admin-sprite.png +0 -0
  58. data/lib/thoth/public/images/thoth-sprite.png +0 -0
  59. data/lib/thoth/public/js/admin/comments.js +116 -0
  60. data/lib/thoth/public/js/admin/name.js +244 -0
  61. data/lib/thoth/public/js/admin/tagcomplete.js +332 -0
  62. data/lib/thoth/public/js/lazyload-min.js +4 -0
  63. data/lib/thoth/public/js/thoth.js +203 -0
  64. data/lib/thoth/public/robots.txt +5 -0
  65. data/lib/thoth/version.rb +37 -0
  66. data/lib/thoth/view/admin/index.rhtml +1 -0
  67. data/lib/thoth/view/admin/login.rhtml +23 -0
  68. data/lib/thoth/view/admin/toolbar.rhtml +117 -0
  69. data/lib/thoth/view/admin/welcome.rhtml +58 -0
  70. data/lib/thoth/view/archive/index.rhtml +24 -0
  71. data/lib/thoth/view/comment/comment.rhtml +47 -0
  72. data/lib/thoth/view/comment/delete.rhtml +15 -0
  73. data/lib/thoth/view/comment/form.rhtml +81 -0
  74. data/lib/thoth/view/comment/index.rhtml +68 -0
  75. data/lib/thoth/view/comment/list.rhtml +48 -0
  76. data/lib/thoth/view/media/delete.rhtml +15 -0
  77. data/lib/thoth/view/media/edit.rhtml +12 -0
  78. data/lib/thoth/view/media/form.rhtml +7 -0
  79. data/lib/thoth/view/media/list.rhtml +35 -0
  80. data/lib/thoth/view/media/media.rhtml +44 -0
  81. data/lib/thoth/view/media/new.rhtml +7 -0
  82. data/lib/thoth/view/page/delete.rhtml +15 -0
  83. data/lib/thoth/view/page/edit.rhtml +15 -0
  84. data/lib/thoth/view/page/form.rhtml +57 -0
  85. data/lib/thoth/view/page/index.rhtml +9 -0
  86. data/lib/thoth/view/page/list.rhtml +49 -0
  87. data/lib/thoth/view/page/new.rhtml +15 -0
  88. data/lib/thoth/view/post/comments.rhtml +12 -0
  89. data/lib/thoth/view/post/compact.rhtml +48 -0
  90. data/lib/thoth/view/post/delete.rhtml +15 -0
  91. data/lib/thoth/view/post/edit.rhtml +15 -0
  92. data/lib/thoth/view/post/form.rhtml +83 -0
  93. data/lib/thoth/view/post/index.rhtml +48 -0
  94. data/lib/thoth/view/post/list.rhtml +61 -0
  95. data/lib/thoth/view/post/new.rhtml +15 -0
  96. data/lib/thoth/view/post/tiny.rhtml +4 -0
  97. data/lib/thoth/view/search/index.rhtml +45 -0
  98. data/lib/thoth/view/tag/index.rhtml +34 -0
  99. data/lib/thoth/view/thoth/css.rhtml +9 -0
  100. data/lib/thoth/view/thoth/footer.rhtml +15 -0
  101. data/lib/thoth/view/thoth/header.rhtml +23 -0
  102. data/lib/thoth/view/thoth/index.rhtml +11 -0
  103. data/lib/thoth/view/thoth/js.rhtml +6 -0
  104. data/lib/thoth/view/thoth/sidebar.rhtml +38 -0
  105. data/lib/thoth/view/thoth/util/pager.rhtml +23 -0
  106. data/lib/thoth/view/thoth/util/simple_pager.rhtml +15 -0
  107. data/lib/thoth/view/thoth/util/table_sortheader.rhtml +20 -0
  108. data/lib/thoth.rb +394 -0
  109. metadata +409 -0
metadata ADDED
@@ -0,0 +1,409 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rethoth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
5
+ platform: ruby
6
+ authors:
7
+ - John Pagonis
8
+ - Ryan Grove
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2017-06-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ramaze
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '2012.12'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2012.12.08
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - "~>"
29
+ - !ruby/object:Gem::Version
30
+ version: '2012.12'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2012.12.08
34
+ - !ruby/object:Gem::Dependency
35
+ name: innate
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2015.10'
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2015.10.28
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '2015.10'
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 2015.10.28
54
+ - !ruby/object:Gem::Dependency
55
+ name: builder
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.2'
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 3.2.2
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '3.2'
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 3.2.2
74
+ - !ruby/object:Gem::Dependency
75
+ name: cssmin
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.0'
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 1.0.3
84
+ type: :runtime
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.0'
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 1.0.3
94
+ - !ruby/object:Gem::Dependency
95
+ name: erubis
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '2.7'
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 2.7.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.7'
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 2.7.0
114
+ - !ruby/object:Gem::Dependency
115
+ name: json_pure
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - "~>"
119
+ - !ruby/object:Gem::Version
120
+ version: '2.0'
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 2.0.2
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '2.0'
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: 2.0.2
134
+ - !ruby/object:Gem::Dependency
135
+ name: jsmin
136
+ requirement: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '1.0'
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: 1.0.1
144
+ type: :runtime
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: '1.0'
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 1.0.1
154
+ - !ruby/object:Gem::Dependency
155
+ name: RedCloth
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '4.3'
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: 4.3.2
164
+ type: :runtime
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '4.3'
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 4.3.2
174
+ - !ruby/object:Gem::Dependency
175
+ name: sanitize
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '4.4'
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: 4.4.0
184
+ type: :runtime
185
+ prerelease: false
186
+ version_requirements: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: '4.4'
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 4.4.0
194
+ - !ruby/object:Gem::Dependency
195
+ name: sequel
196
+ requirement: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '4.42'
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: 4.42.0
204
+ type: :runtime
205
+ prerelease: false
206
+ version_requirements: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: '4.42'
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: 4.42.0
214
+ - !ruby/object:Gem::Dependency
215
+ name: bacon
216
+ requirement: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: '1.2'
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: 1.2.0
224
+ type: :development
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '1.2'
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: 1.2.0
234
+ - !ruby/object:Gem::Dependency
235
+ name: rake
236
+ requirement: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - "~>"
239
+ - !ruby/object:Gem::Version
240
+ version: '12.0'
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: 12.0.0
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '12.0'
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: 12.0.0
254
+ description: " Rethoth is a simple to understand, run and maintain Ruby blogging
255
+ engine\n\n Rethoth is written in Ruby and is based on the Ramaze web framework
256
+ and the Sequel database toolkit. \n Rethoth is a modern port, to 2017, of the
257
+ original Thoth created by @ryangrove.\n \n Rethoth demonstrates how to easily
258
+ build a useful MVC-style app in Ruby without having to deal directly with meta-programming
259
+ and DSL magic.\n \n Rethoth is an example of how to build a web application
260
+ in Ruby without the need to learn Rails and ActiveRecord.\n \n Rethoth is
261
+ ideal for newcomers to Ruby who have experience with other web frameworks and want
262
+ to quickly appreciate the language and become productive with it.\n"
263
+ email: john@pagonis.org
264
+ executables:
265
+ - thoth
266
+ extensions: []
267
+ extra_rdoc_files: []
268
+ files:
269
+ - LICENSE
270
+ - bin/thoth
271
+ - lib/proto/config.ru
272
+ - lib/proto/thoth.conf.sample
273
+ - lib/thoth.rb
274
+ - lib/thoth/cache.rb
275
+ - lib/thoth/config.rb
276
+ - lib/thoth/controller.rb
277
+ - lib/thoth/controller/admin.rb
278
+ - lib/thoth/controller/api/comment.rb
279
+ - lib/thoth/controller/api/page.rb
280
+ - lib/thoth/controller/api/post.rb
281
+ - lib/thoth/controller/api/tag.rb
282
+ - lib/thoth/controller/archive.rb
283
+ - lib/thoth/controller/comment.rb
284
+ - lib/thoth/controller/main.rb
285
+ - lib/thoth/controller/media.rb
286
+ - lib/thoth/controller/page.rb
287
+ - lib/thoth/controller/post.rb
288
+ - lib/thoth/controller/search.rb
289
+ - lib/thoth/controller/tag.rb
290
+ - lib/thoth/errors.rb
291
+ - lib/thoth/helper/admin.rb
292
+ - lib/thoth/helper/cookie.rb
293
+ - lib/thoth/helper/error.rb
294
+ - lib/thoth/helper/pagination.rb
295
+ - lib/thoth/helper/wiki.rb
296
+ - lib/thoth/helper/ysearch.rb
297
+ - lib/thoth/importer.rb
298
+ - lib/thoth/importer/pants.rb
299
+ - lib/thoth/importer/poseidon.rb
300
+ - lib/thoth/importer/thoth.rb
301
+ - lib/thoth/layout/default.rhtml
302
+ - lib/thoth/middleware/minify.rb
303
+ - lib/thoth/migrate/001_create_schema.rb
304
+ - lib/thoth/migrate/002_add_media_size.rb
305
+ - lib/thoth/migrate/003_add_post_draft.rb
306
+ - lib/thoth/migrate/004_add_comment_email.rb
307
+ - lib/thoth/migrate/005_add_page_position.rb
308
+ - lib/thoth/migrate/006_add_comment_close_delete.rb
309
+ - lib/thoth/migrate/007_add_comment_summary.rb
310
+ - lib/thoth/model/comment.rb
311
+ - lib/thoth/model/media.rb
312
+ - lib/thoth/model/page.rb
313
+ - lib/thoth/model/post.rb
314
+ - lib/thoth/model/tag.rb
315
+ - lib/thoth/model/tags_posts_map.rb
316
+ - lib/thoth/monkeypatch/sequel/model/errors.rb
317
+ - lib/thoth/plugin.rb
318
+ - lib/thoth/plugin/thoth_delicious.rb
319
+ - lib/thoth/plugin/thoth_flickr.rb
320
+ - lib/thoth/plugin/thoth_pinboard.rb
321
+ - lib/thoth/plugin/thoth_tags.rb
322
+ - lib/thoth/plugin/thoth_twitter.rb
323
+ - lib/thoth/public/css/admin.css
324
+ - lib/thoth/public/css/thoth.css
325
+ - lib/thoth/public/images/admin-sprite.png
326
+ - lib/thoth/public/images/thoth-sprite.png
327
+ - lib/thoth/public/js/admin/comments.js
328
+ - lib/thoth/public/js/admin/name.js
329
+ - lib/thoth/public/js/admin/tagcomplete.js
330
+ - lib/thoth/public/js/lazyload-min.js
331
+ - lib/thoth/public/js/thoth.js
332
+ - lib/thoth/public/robots.txt
333
+ - lib/thoth/version.rb
334
+ - lib/thoth/view/admin/index.rhtml
335
+ - lib/thoth/view/admin/login.rhtml
336
+ - lib/thoth/view/admin/toolbar.rhtml
337
+ - lib/thoth/view/admin/welcome.rhtml
338
+ - lib/thoth/view/archive/index.rhtml
339
+ - lib/thoth/view/comment/comment.rhtml
340
+ - lib/thoth/view/comment/delete.rhtml
341
+ - lib/thoth/view/comment/form.rhtml
342
+ - lib/thoth/view/comment/index.rhtml
343
+ - lib/thoth/view/comment/list.rhtml
344
+ - lib/thoth/view/media/delete.rhtml
345
+ - lib/thoth/view/media/edit.rhtml
346
+ - lib/thoth/view/media/form.rhtml
347
+ - lib/thoth/view/media/list.rhtml
348
+ - lib/thoth/view/media/media.rhtml
349
+ - lib/thoth/view/media/new.rhtml
350
+ - lib/thoth/view/page/delete.rhtml
351
+ - lib/thoth/view/page/edit.rhtml
352
+ - lib/thoth/view/page/form.rhtml
353
+ - lib/thoth/view/page/index.rhtml
354
+ - lib/thoth/view/page/list.rhtml
355
+ - lib/thoth/view/page/new.rhtml
356
+ - lib/thoth/view/post/comments.rhtml
357
+ - lib/thoth/view/post/compact.rhtml
358
+ - lib/thoth/view/post/delete.rhtml
359
+ - lib/thoth/view/post/edit.rhtml
360
+ - lib/thoth/view/post/form.rhtml
361
+ - lib/thoth/view/post/index.rhtml
362
+ - lib/thoth/view/post/list.rhtml
363
+ - lib/thoth/view/post/new.rhtml
364
+ - lib/thoth/view/post/tiny.rhtml
365
+ - lib/thoth/view/search/index.rhtml
366
+ - lib/thoth/view/tag/index.rhtml
367
+ - lib/thoth/view/thoth/css.rhtml
368
+ - lib/thoth/view/thoth/footer.rhtml
369
+ - lib/thoth/view/thoth/header.rhtml
370
+ - lib/thoth/view/thoth/index.rhtml
371
+ - lib/thoth/view/thoth/js.rhtml
372
+ - lib/thoth/view/thoth/sidebar.rhtml
373
+ - lib/thoth/view/thoth/util/pager.rhtml
374
+ - lib/thoth/view/thoth/util/simple_pager.rhtml
375
+ - lib/thoth/view/thoth/util/table_sortheader.rhtml
376
+ homepage: https://github.com/pagojo/rethoth
377
+ licenses:
378
+ - BSD-3-Clause
379
+ metadata: {}
380
+ post_install_message: |
381
+ ================================================================================
382
+ Thank you for installing Rethoth. If you haven't already, you may need to install
383
+ one or more of the following gems:
384
+
385
+ sqlite3 - If you want to use Rethoth with a SQLite database
386
+ mysql2 - If you want to use Rethoth with a MySQL database
387
+ passenger - If you want to run Rethoth under Apache using Phusion Passenger
388
+ thin - If you want to run Rethoth using Thin
389
+ ================================================================================
390
+ rdoc_options: []
391
+ require_paths:
392
+ - lib
393
+ required_ruby_version: !ruby/object:Gem::Requirement
394
+ requirements:
395
+ - - ">="
396
+ - !ruby/object:Gem::Version
397
+ version: 2.3.0
398
+ required_rubygems_version: !ruby/object:Gem::Requirement
399
+ requirements:
400
+ - - ">="
401
+ - !ruby/object:Gem::Version
402
+ version: '0'
403
+ requirements: []
404
+ rubyforge_project:
405
+ rubygems_version: 2.6.12
406
+ signing_key:
407
+ specification_version: 4
408
+ summary: A simple to understand, run and maintain Ruby blogging engine.
409
+ test_files: []