tb_blog 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +6 -14
  2. data/Readme.markdown +3 -2
  3. data/app/assets/javascripts/admin/blog/application.js +1 -0
  4. data/app/assets/javascripts/{spud/admin → admin/blog}/post_categories.js +0 -3
  5. data/app/assets/javascripts/{spud/admin → admin/blog}/posts.js +0 -6
  6. data/app/controllers/{spud/admin → admin}/news_posts_controller.rb +13 -11
  7. data/app/controllers/{spud/admin → admin}/post_categories_controller.rb +9 -7
  8. data/app/controllers/{spud/admin → admin}/post_comments_controller.rb +6 -7
  9. data/app/controllers/{spud/admin → admin}/posts_controller.rb +14 -11
  10. data/app/controllers/blog/sitemaps_controller.rb +10 -0
  11. data/app/controllers/blog_controller.rb +25 -34
  12. data/app/controllers/news_controller.rb +5 -21
  13. data/app/helpers/admin/news_posts_helper.rb +2 -0
  14. data/app/helpers/admin/post_categories_helper.rb +2 -0
  15. data/app/helpers/admin/post_comments_helper.rb +3 -0
  16. data/app/helpers/{spud/admin → admin}/posts_helper.rb +1 -1
  17. data/app/helpers/blog/sitemaps_helper.rb +2 -0
  18. data/app/helpers/blog_helper.rb +0 -1
  19. data/app/models/spud_post.rb +30 -21
  20. data/app/models/spud_post_categories_post.rb +2 -3
  21. data/app/models/spud_post_category.rb +9 -2
  22. data/app/models/spud_post_comment.rb +1 -3
  23. data/app/models/spud_post_site.rb +0 -1
  24. data/app/views/admin/news_posts/edit.html.erb +3 -0
  25. data/app/views/admin/news_posts/index.html.erb +42 -0
  26. data/app/views/admin/news_posts/new.html.erb +3 -0
  27. data/app/views/{spud/admin → admin}/post_categories/_category.html.erb +2 -2
  28. data/app/views/{spud/admin → admin}/post_categories/_form.html.erb +1 -1
  29. data/app/views/{spud/admin → admin}/post_categories/index.html.erb +1 -1
  30. data/app/views/admin/post_categories/new.html.erb +1 -0
  31. data/app/views/{spud/admin → admin}/post_comments/index.html.erb +3 -3
  32. data/app/views/{spud/admin → admin}/posts/_category.html.erb +1 -1
  33. data/app/views/{spud/admin → admin}/posts/_form.html.erb +3 -3
  34. data/app/views/admin/posts/edit.html.erb +3 -0
  35. data/app/views/admin/posts/index.html.erb +48 -0
  36. data/app/views/admin/posts/new.html.erb +3 -0
  37. data/app/views/blog/_comment.html.erb +6 -4
  38. data/app/views/blog/_comment_form.html.erb +0 -2
  39. data/app/views/blog/index.html.erb +30 -28
  40. data/app/views/blog/show.html.erb +35 -31
  41. data/app/views/news/index.html.erb +26 -24
  42. data/app/views/news/show.html.erb +25 -21
  43. data/config/routes.rb +14 -15
  44. data/lib/spud_blog/configuration.rb +1 -2
  45. data/lib/spud_blog/engine.rb +13 -10
  46. data/lib/spud_blog/version.rb +1 -1
  47. data/lib/tb_blog.rb +1 -1
  48. data/spec/controllers/admin/posts_controller_spec.rb +5 -0
  49. data/spec/dummy/config/application.rb +5 -2
  50. data/spec/dummy/config/environments/production.rb +1 -1
  51. data/spec/dummy/config/environments/test.rb +5 -6
  52. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  53. data/spec/dummy/db/migrate/20140110180411_create_spud_roles.tb_core.rb +11 -0
  54. data/spec/dummy/db/migrate/20140110180412_create_spud_permissions.tb_core.rb +11 -0
  55. data/spec/dummy/db/migrate/20140110180413_create_spud_role_permissions.tb_core.rb +12 -0
  56. data/spec/dummy/db/migrate/20140110180414_drop_spud_admin_permissions.tb_core.rb +16 -0
  57. data/spec/dummy/db/migrate/20140110180415_create_spud_permalinks.tb_permalinks.rb +12 -0
  58. data/spec/dummy/db/migrate/20140110180416_add_site_id_to_spud_permalinks.tb_permalinks.rb +7 -0
  59. data/spec/dummy/db/migrate/20140110180417_modify_site_id_for_spud_permalinks.tb_permalinks.rb +12 -0
  60. data/spec/dummy/db/migrate/20140110180418_create_spud_posts.tb_blog.rb +16 -0
  61. data/spec/dummy/db/migrate/20140110180419_create_spud_post_categories.tb_blog.rb +14 -0
  62. data/spec/dummy/db/migrate/20140110180420_create_spud_post_comments.tb_blog.rb +14 -0
  63. data/spec/dummy/db/migrate/20140110180421_add_url_to_spud_posts.tb_blog.rb +7 -0
  64. data/spec/dummy/db/migrate/20140110180422_add_url_to_spud_post_categories.tb_blog.rb +9 -0
  65. data/spec/dummy/db/migrate/20140110180423_add_is_news_to_spud_posts.tb_blog.rb +7 -0
  66. data/spec/dummy/db/migrate/20140110180424_add_meta_to_posts.tb_blog.rb +7 -0
  67. data/spec/dummy/db/migrate/20140110180425_add_comments_counter_to_spud_posts.tb_blog.rb +13 -0
  68. data/spec/dummy/db/migrate/20140110180426_create_spud_post_sites.tb_blog.rb +12 -0
  69. data/spec/dummy/db/migrate/20140110180427_add_spam_fields_to_spud_post_comments.tb_blog.rb +9 -0
  70. data/spec/dummy/db/migrate/20140110180428_add_permalink_to_spud_post_comments.tb_blog.rb +6 -0
  71. data/spec/dummy/db/migrate/20140110180429_add_nested_set_to_post_categories.tb_blog.rb +22 -0
  72. data/spec/dummy/db/migrate/20140110180430_add_content_format_to_spud_posts.tb_blog.rb +6 -0
  73. data/spec/dummy/db/migrate/20140110180431_add_content_processed_to_spud_post.tb_blog.rb +6 -0
  74. data/spec/dummy/db/migrate/20140113162805_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
  75. data/spec/dummy/db/schema.rb +100 -59
  76. metadata +123 -104
  77. data/app/assets/javascripts/spud/blog/sitemaps.js +0 -2
  78. data/app/assets/javascripts/spud/blog.js +0 -41
  79. data/app/assets/stylesheets/news.css +0 -4
  80. data/app/assets/stylesheets/spud/blog/sitemaps.css +0 -4
  81. data/app/assets/stylesheets/spud/blog/validity.css +0 -3
  82. data/app/controllers/spud/blog/sitemaps_controller.rb +0 -9
  83. data/app/helpers/spud/admin/news_posts_helper.rb +0 -2
  84. data/app/helpers/spud/admin/post_categories_helper.rb +0 -2
  85. data/app/helpers/spud/admin/post_comments_helper.rb +0 -3
  86. data/app/helpers/spud/blog/sitemaps_helper.rb +0 -2
  87. data/app/models/spud_post_category_sweeper.rb +0 -41
  88. data/app/models/spud_post_comment_sweeper.rb +0 -33
  89. data/app/models/spud_post_sweeper.rb +0 -47
  90. data/app/views/spud/admin/news_posts/edit.html.erb +0 -3
  91. data/app/views/spud/admin/news_posts/index.html.erb +0 -44
  92. data/app/views/spud/admin/news_posts/new.html.erb +0 -3
  93. data/app/views/spud/admin/post_categories/new.html.erb +0 -1
  94. data/app/views/spud/admin/posts/edit.html.erb +0 -3
  95. data/app/views/spud/admin/posts/index.html.erb +0 -49
  96. data/app/views/spud/admin/posts/new.html.erb +0 -3
  97. data/spec/controllers/spud/admin/posts_controller_spec.rb +0 -5
  98. data/spec/dummy/log/development.log +0 -263
  99. data/spec/dummy/log/test.log +0 -3339
  100. /data/app/assets/javascripts/{spud/admin → admin/blog}/post_comments.js +0 -0
  101. /data/app/assets/stylesheets/{spud/admin/posts.css.scss → admin/blog/application.css.scss} +0 -0
  102. /data/app/views/{spud/admin → admin}/post_categories/edit.html.erb +0 -0
  103. /data/app/views/{spud/blog → blog}/sitemaps/show.xml.builder +0 -0
metadata CHANGED
@@ -1,127 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Greg Woods
7
+ - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.2
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.2
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tb_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tb_permalinks
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: truncate_html
56
+ name: tb_liquid
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: awesome_nested_set
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: '1.0'
76
62
  type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ! '>='
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '1.0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: redcarpet
70
+ name: truncate_html
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ! '>='
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
75
  version: '0'
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ! '>='
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
- name: liquid
84
+ name: awesome_nested_set
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ! '>='
87
+ - - '='
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: 3.0.0.rc.3
104
90
  type: :runtime
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ! '>='
94
+ - - '='
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: 3.0.0.rc.3
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: mysql2
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - '='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: 0.3.11
103
+ version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - '='
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: 0.3.11
110
+ version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: rspec
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -154,28 +140,28 @@ dependencies:
154
140
  name: shoulda
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ~>
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
145
  version: 3.0.1
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - ~>
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
152
  version: 3.0.1
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: factory_girl
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ~>
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
159
  version: '3.0'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ~>
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
166
  version: '3.0'
181
167
  - !ruby/object:Gem::Dependency
@@ -198,26 +184,26 @@ dependencies:
198
184
  requirements:
199
185
  - - '='
200
186
  - !ruby/object:Gem::Version
201
- version: 0.7.1
187
+ version: 1.0.0.RC1
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - '='
207
193
  - !ruby/object:Gem::Version
208
- version: 0.7.1
194
+ version: 1.0.0.RC1
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: simplecov
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
- - - ~>
199
+ - - "~>"
214
200
  - !ruby/object:Gem::Version
215
201
  version: 0.6.4
216
202
  type: :development
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
- - - ~>
206
+ - - "~>"
221
207
  - !ruby/object:Gem::Version
222
208
  version: 0.6.4
223
209
  description: Twice Baked blogging/news and rss engine.
@@ -227,63 +213,59 @@ executables: []
227
213
  extensions: []
228
214
  extra_rdoc_files: []
229
215
  files:
216
+ - MIT-LICENSE
217
+ - Rakefile
218
+ - Readme.markdown
230
219
  - app/assets/images/spud/admin/news_thumb.png
231
220
  - app/assets/images/spud/admin/news_thumb@2x.png
232
221
  - app/assets/images/spud/admin/posts_thumb.png
233
- - app/assets/javascripts/spud/admin/post_categories.js
234
- - app/assets/javascripts/spud/admin/post_comments.js
235
- - app/assets/javascripts/spud/admin/posts.js
236
- - app/assets/javascripts/spud/blog/sitemaps.js
237
- - app/assets/javascripts/spud/blog.js
238
- - app/assets/stylesheets/news.css
239
- - app/assets/stylesheets/spud/admin/posts.css.scss
240
- - app/assets/stylesheets/spud/blog/sitemaps.css
241
- - app/assets/stylesheets/spud/blog/validity.css
222
+ - app/assets/javascripts/admin/blog/application.js
223
+ - app/assets/javascripts/admin/blog/post_categories.js
224
+ - app/assets/javascripts/admin/blog/post_comments.js
225
+ - app/assets/javascripts/admin/blog/posts.js
226
+ - app/assets/stylesheets/admin/blog/application.css.scss
227
+ - app/controllers/admin/news_posts_controller.rb
228
+ - app/controllers/admin/post_categories_controller.rb
229
+ - app/controllers/admin/post_comments_controller.rb
230
+ - app/controllers/admin/posts_controller.rb
231
+ - app/controllers/blog/sitemaps_controller.rb
242
232
  - app/controllers/blog_controller.rb
243
233
  - app/controllers/news_controller.rb
244
- - app/controllers/spud/admin/news_posts_controller.rb
245
- - app/controllers/spud/admin/post_categories_controller.rb
246
- - app/controllers/spud/admin/post_comments_controller.rb
247
- - app/controllers/spud/admin/posts_controller.rb
248
- - app/controllers/spud/blog/sitemaps_controller.rb
234
+ - app/helpers/admin/news_posts_helper.rb
235
+ - app/helpers/admin/post_categories_helper.rb
236
+ - app/helpers/admin/post_comments_helper.rb
237
+ - app/helpers/admin/posts_helper.rb
238
+ - app/helpers/blog/sitemaps_helper.rb
249
239
  - app/helpers/blog_helper.rb
250
240
  - app/helpers/news_helper.rb
251
- - app/helpers/spud/admin/news_posts_helper.rb
252
- - app/helpers/spud/admin/post_categories_helper.rb
253
- - app/helpers/spud/admin/post_comments_helper.rb
254
- - app/helpers/spud/admin/posts_helper.rb
255
- - app/helpers/spud/blog/sitemaps_helper.rb
256
241
  - app/models/spud_post.rb
257
242
  - app/models/spud_post_categories_post.rb
258
243
  - app/models/spud_post_category.rb
259
- - app/models/spud_post_category_sweeper.rb
260
244
  - app/models/spud_post_comment.rb
261
- - app/models/spud_post_comment_sweeper.rb
262
245
  - app/models/spud_post_site.rb
263
- - app/models/spud_post_sweeper.rb
246
+ - app/views/admin/news_posts/edit.html.erb
247
+ - app/views/admin/news_posts/index.html.erb
248
+ - app/views/admin/news_posts/new.html.erb
249
+ - app/views/admin/post_categories/_category.html.erb
250
+ - app/views/admin/post_categories/_form.html.erb
251
+ - app/views/admin/post_categories/edit.html.erb
252
+ - app/views/admin/post_categories/index.html.erb
253
+ - app/views/admin/post_categories/new.html.erb
254
+ - app/views/admin/post_comments/index.html.erb
255
+ - app/views/admin/posts/_category.html.erb
256
+ - app/views/admin/posts/_form.html.erb
257
+ - app/views/admin/posts/edit.html.erb
258
+ - app/views/admin/posts/index.html.erb
259
+ - app/views/admin/posts/new.html.erb
264
260
  - app/views/blog/_comment.html.erb
265
261
  - app/views/blog/_comment_form.html.erb
266
262
  - app/views/blog/index.html.erb
267
263
  - app/views/blog/index.rss.builder
268
264
  - app/views/blog/show.html.erb
265
+ - app/views/blog/sitemaps/show.xml.builder
269
266
  - app/views/news/index.html.erb
270
267
  - app/views/news/index.rss.builder
271
268
  - app/views/news/show.html.erb
272
- - app/views/spud/admin/news_posts/edit.html.erb
273
- - app/views/spud/admin/news_posts/index.html.erb
274
- - app/views/spud/admin/news_posts/new.html.erb
275
- - app/views/spud/admin/post_categories/_category.html.erb
276
- - app/views/spud/admin/post_categories/_form.html.erb
277
- - app/views/spud/admin/post_categories/edit.html.erb
278
- - app/views/spud/admin/post_categories/index.html.erb
279
- - app/views/spud/admin/post_categories/new.html.erb
280
- - app/views/spud/admin/post_comments/index.html.erb
281
- - app/views/spud/admin/posts/_category.html.erb
282
- - app/views/spud/admin/posts/_form.html.erb
283
- - app/views/spud/admin/posts/edit.html.erb
284
- - app/views/spud/admin/posts/index.html.erb
285
- - app/views/spud/admin/posts/new.html.erb
286
- - app/views/spud/blog/sitemaps/show.xml.builder
287
269
  - config/routes.rb
288
270
  - db/migrate/20120125180945_create_spud_posts.rb
289
271
  - db/migrate/20120125181022_create_spud_post_categories.rb
@@ -306,16 +288,16 @@ files:
306
288
  - lib/spud_blog/version.rb
307
289
  - lib/tasks/spud_blog_tasks.rake
308
290
  - lib/tb_blog.rb
309
- - MIT-LICENSE
310
- - Rakefile
311
- - Readme.markdown
291
+ - spec/controllers/admin/posts_controller_spec.rb
312
292
  - spec/controllers/blog_controller_spec.rb
313
- - spec/controllers/spud/admin/posts_controller_spec.rb
293
+ - spec/dummy/README.rdoc
294
+ - spec/dummy/Rakefile
314
295
  - spec/dummy/app/assets/javascripts/application.js
315
296
  - spec/dummy/app/assets/stylesheets/application.css
316
297
  - spec/dummy/app/controllers/application_controller.rb
317
298
  - spec/dummy/app/helpers/application_helper.rb
318
299
  - spec/dummy/app/views/layouts/application.html.erb
300
+ - spec/dummy/config.ru
319
301
  - spec/dummy/config/application.rb
320
302
  - spec/dummy/config/boot.rb
321
303
  - spec/dummy/config/database.yml
@@ -331,21 +313,38 @@ files:
331
313
  - spec/dummy/config/initializers/wrap_parameters.rb
332
314
  - spec/dummy/config/locales/en.yml
333
315
  - spec/dummy/config/routes.rb
334
- - spec/dummy/config.ru
335
316
  - spec/dummy/db/migrate/20120610130206_create_spud_admin_permissions.spud_core.rb
336
317
  - spec/dummy/db/migrate/20120610130207_create_spud_users.spud_core.rb
337
318
  - spec/dummy/db/migrate/20120610130208_add_time_zone_to_spud_user.spud_core.rb
338
319
  - spec/dummy/db/migrate/20120610130209_add_scope_to_spud_admin_permissions.spud_core.rb
339
320
  - spec/dummy/db/migrate/20120610130210_create_spud_user_settings.spud_core.rb
321
+ - spec/dummy/db/migrate/20140110180411_create_spud_roles.tb_core.rb
322
+ - spec/dummy/db/migrate/20140110180412_create_spud_permissions.tb_core.rb
323
+ - spec/dummy/db/migrate/20140110180413_create_spud_role_permissions.tb_core.rb
324
+ - spec/dummy/db/migrate/20140110180414_drop_spud_admin_permissions.tb_core.rb
325
+ - spec/dummy/db/migrate/20140110180415_create_spud_permalinks.tb_permalinks.rb
326
+ - spec/dummy/db/migrate/20140110180416_add_site_id_to_spud_permalinks.tb_permalinks.rb
327
+ - spec/dummy/db/migrate/20140110180417_modify_site_id_for_spud_permalinks.tb_permalinks.rb
328
+ - spec/dummy/db/migrate/20140110180418_create_spud_posts.tb_blog.rb
329
+ - spec/dummy/db/migrate/20140110180419_create_spud_post_categories.tb_blog.rb
330
+ - spec/dummy/db/migrate/20140110180420_create_spud_post_comments.tb_blog.rb
331
+ - spec/dummy/db/migrate/20140110180421_add_url_to_spud_posts.tb_blog.rb
332
+ - spec/dummy/db/migrate/20140110180422_add_url_to_spud_post_categories.tb_blog.rb
333
+ - spec/dummy/db/migrate/20140110180423_add_is_news_to_spud_posts.tb_blog.rb
334
+ - spec/dummy/db/migrate/20140110180424_add_meta_to_posts.tb_blog.rb
335
+ - spec/dummy/db/migrate/20140110180425_add_comments_counter_to_spud_posts.tb_blog.rb
336
+ - spec/dummy/db/migrate/20140110180426_create_spud_post_sites.tb_blog.rb
337
+ - spec/dummy/db/migrate/20140110180427_add_spam_fields_to_spud_post_comments.tb_blog.rb
338
+ - spec/dummy/db/migrate/20140110180428_add_permalink_to_spud_post_comments.tb_blog.rb
339
+ - spec/dummy/db/migrate/20140110180429_add_nested_set_to_post_categories.tb_blog.rb
340
+ - spec/dummy/db/migrate/20140110180430_add_content_format_to_spud_posts.tb_blog.rb
341
+ - spec/dummy/db/migrate/20140110180431_add_content_processed_to_spud_post.tb_blog.rb
342
+ - spec/dummy/db/migrate/20140113162805_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
340
343
  - spec/dummy/db/schema.rb
341
- - spec/dummy/log/development.log
342
- - spec/dummy/log/test.log
343
344
  - spec/dummy/public/404.html
344
345
  - spec/dummy/public/422.html
345
346
  - spec/dummy/public/500.html
346
347
  - spec/dummy/public/favicon.ico
347
- - spec/dummy/Rakefile
348
- - spec/dummy/README.rdoc
349
348
  - spec/dummy/script/rails
350
349
  - spec/factories/spud_post_factories.rb
351
350
  - spec/factories/spud_user_factories.rb
@@ -360,23 +359,23 @@ require_paths:
360
359
  - lib
361
360
  required_ruby_version: !ruby/object:Gem::Requirement
362
361
  requirements:
363
- - - ! '>='
362
+ - - ">="
364
363
  - !ruby/object:Gem::Version
365
364
  version: '0'
366
365
  required_rubygems_version: !ruby/object:Gem::Requirement
367
366
  requirements:
368
- - - ! '>='
367
+ - - ">="
369
368
  - !ruby/object:Gem::Version
370
369
  version: '0'
371
370
  requirements: []
372
371
  rubyforge_project:
373
- rubygems_version: 2.0.3
372
+ rubygems_version: 2.2.1
374
373
  signing_key:
375
374
  specification_version: 4
376
375
  summary: Twice Baked Blog Engine.
377
376
  test_files:
377
+ - spec/controllers/admin/posts_controller_spec.rb
378
378
  - spec/controllers/blog_controller_spec.rb
379
- - spec/controllers/spud/admin/posts_controller_spec.rb
380
379
  - spec/dummy/app/assets/javascripts/application.js
381
380
  - spec/dummy/app/assets/stylesheets/application.css
382
381
  - spec/dummy/app/controllers/application_controller.rb
@@ -403,9 +402,29 @@ test_files:
403
402
  - spec/dummy/db/migrate/20120610130208_add_time_zone_to_spud_user.spud_core.rb
404
403
  - spec/dummy/db/migrate/20120610130209_add_scope_to_spud_admin_permissions.spud_core.rb
405
404
  - spec/dummy/db/migrate/20120610130210_create_spud_user_settings.spud_core.rb
405
+ - spec/dummy/db/migrate/20140110180411_create_spud_roles.tb_core.rb
406
+ - spec/dummy/db/migrate/20140110180412_create_spud_permissions.tb_core.rb
407
+ - spec/dummy/db/migrate/20140110180413_create_spud_role_permissions.tb_core.rb
408
+ - spec/dummy/db/migrate/20140110180414_drop_spud_admin_permissions.tb_core.rb
409
+ - spec/dummy/db/migrate/20140110180415_create_spud_permalinks.tb_permalinks.rb
410
+ - spec/dummy/db/migrate/20140110180416_add_site_id_to_spud_permalinks.tb_permalinks.rb
411
+ - spec/dummy/db/migrate/20140110180417_modify_site_id_for_spud_permalinks.tb_permalinks.rb
412
+ - spec/dummy/db/migrate/20140110180418_create_spud_posts.tb_blog.rb
413
+ - spec/dummy/db/migrate/20140110180419_create_spud_post_categories.tb_blog.rb
414
+ - spec/dummy/db/migrate/20140110180420_create_spud_post_comments.tb_blog.rb
415
+ - spec/dummy/db/migrate/20140110180421_add_url_to_spud_posts.tb_blog.rb
416
+ - spec/dummy/db/migrate/20140110180422_add_url_to_spud_post_categories.tb_blog.rb
417
+ - spec/dummy/db/migrate/20140110180423_add_is_news_to_spud_posts.tb_blog.rb
418
+ - spec/dummy/db/migrate/20140110180424_add_meta_to_posts.tb_blog.rb
419
+ - spec/dummy/db/migrate/20140110180425_add_comments_counter_to_spud_posts.tb_blog.rb
420
+ - spec/dummy/db/migrate/20140110180426_create_spud_post_sites.tb_blog.rb
421
+ - spec/dummy/db/migrate/20140110180427_add_spam_fields_to_spud_post_comments.tb_blog.rb
422
+ - spec/dummy/db/migrate/20140110180428_add_permalink_to_spud_post_comments.tb_blog.rb
423
+ - spec/dummy/db/migrate/20140110180429_add_nested_set_to_post_categories.tb_blog.rb
424
+ - spec/dummy/db/migrate/20140110180430_add_content_format_to_spud_posts.tb_blog.rb
425
+ - spec/dummy/db/migrate/20140110180431_add_content_processed_to_spud_post.tb_blog.rb
426
+ - spec/dummy/db/migrate/20140113162805_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
406
427
  - spec/dummy/db/schema.rb
407
- - spec/dummy/log/development.log
408
- - spec/dummy/log/test.log
409
428
  - spec/dummy/public/404.html
410
429
  - spec/dummy/public/422.html
411
430
  - spec/dummy/public/500.html
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,41 +0,0 @@
1
- spud = (typeof(spud) == 'undefined') ? {} : spud;
2
-
3
- spud.blog = new function(){
4
-
5
- var self = this;
6
-
7
- this.init = function(){
8
- $('body').on('submit', '.spud_blog_filter_form', self.didSubmitFilterForm);
9
- };
10
-
11
- this.didSubmitFilterForm = function(event){
12
- event.preventDefault();
13
- var form = $(this);
14
- var base = form.attr('action');
15
- var url = '';
16
-
17
- // find filter values
18
- var category_select = $(this).find('select[rel=category]');
19
- if(category_select){
20
- var category = category_select.val();
21
- }
22
- var archive_select = $(this).find('select[rel=archive]');
23
- if(archive_select){
24
- var archive = archive_select.val();
25
- }
26
-
27
- // build url and redirect
28
- if(category && archive){
29
- url = '/category/' + category + '/' + archive;
30
- }
31
- else if(category){
32
- url = '/category/' + category;
33
- }
34
- else if(archive){
35
- url = '/archive/' + archive;
36
- }
37
- window.location = base + url;
38
- };
39
- };
40
-
41
- $(document).ready(spud.blog.init);
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,3 +0,0 @@
1
- .comment_validity {
2
- display:none;
3
- }
@@ -1,9 +0,0 @@
1
- class Spud::Blog::SitemapsController < Spud::ApplicationController
2
- respond_to :xml
3
- caches_action :show, :expires_in => 1.day, :if => Proc.new{ |c| Spud::Blog.cache_mode == :action }
4
- caches_page :show, :if => Proc.new{ |c| Spud::Blog.cache_mode == :full_page }
5
- def show
6
- @posts = SpudPost.publicly.all
7
- respond_with @pages
8
- end
9
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::NewsPostsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::PostCategoriesHelper
2
- end
@@ -1,3 +0,0 @@
1
- module Spud::Admin::PostCommentsHelper
2
-
3
- end
@@ -1,2 +0,0 @@
1
- module Spud::Blog::SitemapsHelper
2
- end
@@ -1,41 +0,0 @@
1
- class SpudPostCategorySweeper < ActionController::Caching::Sweeper
2
-
3
- observe SpudPostCategory
4
-
5
- def after_save(record)
6
- expire_cache_for(record)
7
- end
8
-
9
- def after_destroy(record)
10
- expire_cache_for(record)
11
- end
12
-
13
- private
14
-
15
- def expire_cache_for(record)
16
- if Spud::Blog.config.cache_mode = :action
17
- SpudPost.find_each do |p|
18
- if p.is_news && Spud::Blog.config.news_enabled
19
- expire_action news_post_url(p.url_name)
20
- elsif Spud::Blog.config.blog_enabled
21
- expire_action blog_post_url(p.url_name)
22
- end
23
- end
24
- expire_action news_url if Spud::Blog.config.news_enabled
25
- expire_action blog_url if Spud::Blog.config.blog_enabled
26
- expire_action spud_blog_sitemap_url
27
- end
28
- if Spud::Blog.config.cache_mode = :full_page
29
- SpudPost.find_each do |p|
30
- if p.is_news && Spud::Blog.config.news_enabled
31
- expire_page news_post_path(p.url_name)
32
- elsif Spud::Blog.config.blog_enabled
33
- expire_page blog_post_path(p.url_name)
34
- end
35
- end
36
- expire_page news_path if Spud::Blog.config.news_enabled
37
- expire_page blog_path if Spud::Blog.config.blog_enabled
38
- expire_page spud_blog_sitemap_path(:format => :xml)
39
- end
40
- end
41
- end
@@ -1,33 +0,0 @@
1
- class SpudPostCommentSweeper < ActionController::Caching::Sweeper
2
-
3
- observe SpudPostComment
4
-
5
- def after_save(record)
6
- expire_cache_for(record)
7
- end
8
-
9
- def after_destroy(record)
10
- expire_cache_for(record)
11
- end
12
-
13
- private
14
-
15
- def expire_cache_for(record)
16
- unless record.post.nil?
17
- if Spud::Blog.config.cache_mode == :action
18
- if record.post.is_news
19
- expire_action news_post_url(record.post.url_name)
20
- else
21
- expire_action blog_post_url(record.post.url_name)
22
- end
23
- end
24
- if Spud::Blog.config.cache_mode == :full_page
25
- if record.post.is_news
26
- expire_page news_post_path(record.post.url_name)
27
- else
28
- expire_page blog_post_path(record.post.url_name)
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,47 +0,0 @@
1
- class SpudPostSweeper < ActionController::Caching::Sweeper
2
-
3
- observe SpudPost
4
-
5
- def after_create(record)
6
- expire_cache_for(record)
7
- end
8
-
9
- def before_update(record)
10
- expire_cache_for(record)
11
- end
12
-
13
- def after_destroy(record)
14
- expire_cache_for(record)
15
- end
16
-
17
- private
18
-
19
- def expire_cache_for(record)
20
- if Spud::Blog.config.cache_mode == :action
21
- expire_action spud_blog_sitemap_url
22
- if !record.is_news && Spud::Blog.config.blog_enabled
23
- expire_action blog_url
24
- expire_action blog_url(:format => :rss)
25
- expire_action blog_post_url(record.url_name)
26
- elsif Spud::Blog.config.news_enabled
27
- expire_action news_url
28
- expire_action news_url(:format => :rss)
29
- expire_action news_post_url(record.url_name)
30
- end
31
- end
32
- if Spud::Blog.config.cache_mode == :full_page
33
- expire_page spud_blog_sitemap_path(:format => :xml)
34
- if record.is_news && Spud::Blog.config.news_enabled
35
- expire_page news_path
36
- expire_page news_path(:format => :rss)
37
- expire_page news_post_path(record.url_name)
38
- elsif Spud::Blog.config.blog_enabled
39
- expire_page blog_path
40
- expire_page blog_path(:format => :rss)
41
- expire_page blog_post_path(record.url_name)
42
- end
43
- end
44
- # expire_page spud_sitemap_path(:format => :xml)
45
- end
46
-
47
- end
@@ -1,3 +0,0 @@
1
- <%= form_for @post, :url => spud_admin_news_post_path(@post), :html => {:class => 'form-horizontal'} do |f| %>
2
- <%= render :partial => '/spud/admin/posts/form', :locals => {:f => f} %>
3
- <% end %>