monologue 0.1.3 → 0.2.0.beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. data/README.md +29 -21
  2. data/app/assets/javascripts/monologue/blog/twitter.js.coffee +32 -0
  3. data/app/assets/stylesheets/monologue/blog/application.css +3 -3
  4. data/app/assets/stylesheets/monologue/blog/monologue.css +150 -7
  5. data/app/controllers/monologue/admin/cache_controller.rb +27 -0
  6. data/app/controllers/monologue/admin/posts_controller.rb +28 -12
  7. data/app/controllers/monologue/admin/sessions_controller.rb +2 -2
  8. data/app/controllers/monologue/admin/users_controller.rb +13 -0
  9. data/app/controllers/monologue/application_controller.rb +22 -6
  10. data/app/controllers/monologue/posts_controller.rb +7 -7
  11. data/app/controllers/monologue/tags_controller.rb +12 -0
  12. data/app/helpers/monologue/application_helper.rb +76 -0
  13. data/app/helpers/monologue/tags_helper.rb +5 -0
  14. data/app/models/monologue/post.rb +43 -29
  15. data/app/models/monologue/posts_revision.rb +50 -52
  16. data/app/models/monologue/tag.rb +16 -0
  17. data/app/models/monologue/tagging.rb +4 -0
  18. data/app/models/monologue/user.rb +1 -0
  19. data/app/sweepers/monologue/posts_sweeper.rb +20 -4
  20. data/app/sweepers/monologue/total_sweeper.rb +5 -0
  21. data/app/views/layouts/monologue/admin/_nav_bar.html.erb +17 -6
  22. data/app/views/layouts/monologue/application.html.erb +15 -20
  23. data/app/views/layouts/monologue/application/_disqus.html.erb +18 -0
  24. data/app/views/layouts/monologue/application/_disqus_embed.html.erb +17 -0
  25. data/app/views/layouts/monologue/application/_fb_open_graph.html.erb +4 -1
  26. data/app/views/layouts/monologue/application/_gauge_analytics.html.erb +15 -0
  27. data/app/views/layouts/monologue/application/_google_analytics.html.erb +1 -1
  28. data/app/views/layouts/monologue/application/_head.html.erb +3 -2
  29. data/app/views/layouts/monologue/application/_sidebar.html.erb +5 -0
  30. data/app/views/layouts/monologue/application/_social_icons.html.erb +5 -0
  31. data/app/views/layouts/monologue/application/_twitter_cards.html.erb +7 -0
  32. data/app/views/monologue/admin/cache/_config.html.erb +18 -0
  33. data/app/views/monologue/admin/cache/how_to_enable.html.erb +6 -0
  34. data/app/views/monologue/admin/cache/show.html.erb +26 -0
  35. data/app/views/monologue/admin/posts/_form.html.erb +3 -2
  36. data/app/views/monologue/admin/posts/edit.html.erb +1 -1
  37. data/app/views/monologue/admin/posts/index.html.erb +1 -1
  38. data/app/views/monologue/admin/users/edit.html.erb +9 -0
  39. data/app/views/monologue/posts/_post.html.erb +14 -0
  40. data/app/views/monologue/posts/_revision_header.html.erb +9 -0
  41. data/app/views/monologue/posts/_social_sharing.html.erb +45 -36
  42. data/app/views/monologue/posts/index.html.erb +4 -17
  43. data/app/views/monologue/posts/show.html.erb +11 -24
  44. data/app/views/monologue/sidebar/_categories.html.erb +7 -0
  45. data/app/views/monologue/sidebar/_latest_posts.html.erb +7 -0
  46. data/app/views/monologue/sidebar/_latest_tweets.html.erb +8 -0
  47. data/app/views/monologue/sidebar/_tag_cloud.html.erb +5 -0
  48. data/app/views/monologue/tags/_tag.html.erb +1 -0
  49. data/app/views/monologue/tags/show.html.erb +4 -0
  50. data/config/locales/en.yml +54 -10
  51. data/config/locales/fr.yml +55 -11
  52. data/config/routes.rb +8 -2
  53. data/db/migrate/20120514164158_create_monologue_tags.rb +8 -0
  54. data/db/migrate/20120514194459_join_posts_and_tags.rb +7 -0
  55. data/db/migrate/20120604010152_rename_post_tags_table.rb +5 -0
  56. data/db/migrate/20120612013442_create_taggings.rb +11 -0
  57. data/db/migrate/20120612015727_delete_join_posts_tags.rb +11 -0
  58. data/db/migrate/20120612020023_add_index_to_tag_name.rb +5 -0
  59. data/deprecations.rb +10 -0
  60. data/lib/monologue.rb +20 -1
  61. data/lib/monologue/engine.rb +12 -1
  62. data/lib/monologue/version.rb +1 -1
  63. data/lib/tasks/monologue_cache.rake +26 -0
  64. data/vendor/assets/fonts/monologue/foundation_icons/social_foundicons.eot +0 -0
  65. data/vendor/assets/fonts/monologue/foundation_icons/social_foundicons.svg +15 -0
  66. data/vendor/assets/fonts/monologue/foundation_icons/social_foundicons.ttf +0 -0
  67. data/vendor/assets/fonts/monologue/foundation_icons/social_foundicons.woff +0 -0
  68. data/vendor/assets/javascripts/monologue/bootstrap/bootstrap.min.js +6 -1
  69. data/vendor/assets/stylesheets/monologue/bootstrap/bootstrap-responsive.min.css +9 -3
  70. data/vendor/assets/stylesheets/monologue/bootstrap/bootstrap.min.css +9 -610
  71. data/vendor/assets/stylesheets/monologue/foundation_icons/social_foundicons.css.erb +148 -0
  72. metadata +109 -10
  73. data/app/helpers/monologue/admin/admin_helper.rb +0 -4
  74. data/app/helpers/monologue/posts_helper.rb +0 -4
  75. data/app/helpers/monologue/sessions_helper.rb +0 -6
  76. data/lib/tasks/monologue_tasks.rake +0 -4
@@ -0,0 +1,148 @@
1
+ /* font-face */
2
+ @font-face {
3
+ font-family: "SocialFoundicons";
4
+ src: url(<%= asset_path("monologue/foundation_icons/social_foundicons.eot") %>);
5
+ src: url(<%= asset_path("monologue/foundation_icons/social_foundicons.eot?#iefix")%>) format("embedded-opentype"), url(<%= asset_path("monologue/foundation_icons/social_foundicons.woff")%>) format("woff"), url(<%= asset_path("monologue/foundation_icons/social_foundicons.ttf")%>) format("truetype"), url(<%= asset_path("monologue/foundation_icons/social_foundicons.svg#SocialFoundicons")%>) format("svg");
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ }
9
+
10
+ /* global foundicon styles */
11
+ [class*="foundicon-"] {
12
+ display: inline;
13
+ width: auto;
14
+ height: auto;
15
+ line-height: inherit;
16
+ vertical-align: baseline;
17
+ background-image: none;
18
+ background-position: 0 0;
19
+ background-repeat: repeat;
20
+ }
21
+
22
+ [class*="foundicon-"]:before {
23
+ font-family: "SocialFoundicons";
24
+ font-weight: normal;
25
+ font-style: normal;
26
+ text-decoration: inherit;
27
+ }
28
+
29
+ /* icons */
30
+ .foundicon-thumb-up:before {
31
+ content: "\f000";
32
+ }
33
+
34
+ .foundicon-thumb-down:before {
35
+ content: "\f001";
36
+ }
37
+
38
+ .foundicon-rss:before {
39
+ content: "\f002";
40
+ }
41
+
42
+ .foundicon-facebook:before {
43
+ content: "\f003";
44
+ }
45
+
46
+ .foundicon-twitter:before {
47
+ content: "\f004";
48
+ }
49
+
50
+ .foundicon-pinterest:before {
51
+ content: "\f005";
52
+ }
53
+
54
+ .foundicon-github:before {
55
+ content: "\f006";
56
+ }
57
+
58
+ .foundicon-path:before {
59
+ content: "\f007";
60
+ }
61
+
62
+ .foundicon-linkedin:before {
63
+ content: "\f008";
64
+ }
65
+
66
+ .foundicon-dribbble:before {
67
+ content: "\f009";
68
+ }
69
+
70
+ .foundicon-stumble-upon:before {
71
+ content: "\f00a";
72
+ }
73
+
74
+ .foundicon-behance:before {
75
+ content: "\f00b";
76
+ }
77
+
78
+ .foundicon-reddit:before {
79
+ content: "\f00c";
80
+ }
81
+
82
+ .foundicon-google-plus:before {
83
+ content: "\f00d";
84
+ }
85
+
86
+ .foundicon-youtube:before {
87
+ content: "\f00e";
88
+ }
89
+
90
+ .foundicon-vimeo:before {
91
+ content: "\f00f";
92
+ }
93
+
94
+ .foundicon-flickr:before {
95
+ content: "\f010";
96
+ }
97
+
98
+ .foundicon-slideshare:before {
99
+ content: "\f011";
100
+ }
101
+
102
+ .foundicon-picassa:before {
103
+ content: "\f012";
104
+ }
105
+
106
+ .foundicon-skype:before {
107
+ content: "\f013";
108
+ }
109
+
110
+ .foundicon-steam:before {
111
+ content: "\f014";
112
+ }
113
+
114
+ .foundicon-instagram:before {
115
+ content: "\f015";
116
+ }
117
+
118
+ .foundicon-foursquare:before {
119
+ content: "\f016";
120
+ }
121
+
122
+ .foundicon-delicious:before {
123
+ content: "\f017";
124
+ }
125
+
126
+ .foundicon-chat:before {
127
+ content: "\f018";
128
+ }
129
+
130
+ .foundicon-torso:before {
131
+ content: "\f019";
132
+ }
133
+
134
+ .foundicon-tumblr:before {
135
+ content: "\f01a";
136
+ }
137
+
138
+ .foundicon-video-chat:before {
139
+ content: "\f01b";
140
+ }
141
+
142
+ .foundicon-digg:before {
143
+ content: "\f01c";
144
+ }
145
+
146
+ .foundicon-wordpress:before {
147
+ content: "\f01d";
148
+ }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monologue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.2.0.beta3
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jean-Philippe Boily | @jipiboily
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -45,6 +45,54 @@ dependencies:
45
45
  version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: tinymce-rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - <=
52
+ - !ruby/object:Gem::Version
53
+ version: 3.5.6
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - <=
60
+ - !ruby/object:Gem::Version
61
+ version: 3.5.6
62
+ - !ruby/object:Gem::Dependency
63
+ name: coffee-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: truncate_html
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: jquery-rails
48
96
  requirement: !ruby/object:Gem::Requirement
49
97
  none: false
50
98
  requirements:
@@ -107,6 +155,22 @@ dependencies:
107
155
  - - ! '>='
108
156
  - !ruby/object:Gem::Version
109
157
  version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: capybara-webkit
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
110
174
  - !ruby/object:Gem::Dependency
111
175
  name: shoulda
112
176
  requirement: !ruby/object:Gem::Requirement
@@ -198,6 +262,7 @@ files:
198
262
  - app/assets/javascripts/monologue/admin/application.js
199
263
  - app/assets/javascripts/monologue/admin/tinymce-config.js
200
264
  - app/assets/javascripts/monologue/blog/application.js
265
+ - app/assets/javascripts/monologue/blog/twitter.js.coffee
201
266
  - app/assets/stylesheets/monologue/admin/application.css
202
267
  - app/assets/stylesheets/monologue/blog/application.css
203
268
  - app/assets/stylesheets/monologue/blog/custom.css
@@ -207,53 +272,85 @@ files:
207
272
  - app/assets/stylesheets/monologue/blog/skeleton/layout.css
208
273
  - app/assets/stylesheets/monologue/blog/skeleton/skeleton.css
209
274
  - app/controllers/monologue/admin/base_controller.rb
275
+ - app/controllers/monologue/admin/cache_controller.rb
210
276
  - app/controllers/monologue/admin/comments_controller.rb
211
277
  - app/controllers/monologue/admin/posts_controller.rb
212
278
  - app/controllers/monologue/admin/sessions_controller.rb
279
+ - app/controllers/monologue/admin/users_controller.rb
213
280
  - app/controllers/monologue/application_controller.rb
214
281
  - app/controllers/monologue/posts_controller.rb
282
+ - app/controllers/monologue/tags_controller.rb
215
283
  - app/form_builders/monologue_admin_form_builder.rb
216
- - app/helpers/monologue/admin/admin_helper.rb
217
284
  - app/helpers/monologue/application_helper.rb
218
- - app/helpers/monologue/posts_helper.rb
219
- - app/helpers/monologue/sessions_helper.rb
285
+ - app/helpers/monologue/tags_helper.rb
220
286
  - app/models/monologue/post.rb
221
287
  - app/models/monologue/posts_revision.rb
288
+ - app/models/monologue/tag.rb
289
+ - app/models/monologue/tagging.rb
222
290
  - app/models/monologue/user.rb
223
291
  - app/sweepers/monologue/posts_sweeper.rb
292
+ - app/sweepers/monologue/total_sweeper.rb
224
293
  - app/views/layouts/monologue/admin/_nav_bar.html.erb
225
294
  - app/views/layouts/monologue/admin.html.erb
295
+ - app/views/layouts/monologue/application/_disqus.html.erb
296
+ - app/views/layouts/monologue/application/_disqus_embed.html.erb
226
297
  - app/views/layouts/monologue/application/_fb_open_graph.html.erb
298
+ - app/views/layouts/monologue/application/_gauge_analytics.html.erb
227
299
  - app/views/layouts/monologue/application/_google_analytics.html.erb
228
300
  - app/views/layouts/monologue/application/_head.html.erb
229
301
  - app/views/layouts/monologue/application/_meta_description.html.erb
302
+ - app/views/layouts/monologue/application/_sidebar.html.erb
303
+ - app/views/layouts/monologue/application/_social_icons.html.erb
230
304
  - app/views/layouts/monologue/application/_title.html.erb
305
+ - app/views/layouts/monologue/application/_twitter_cards.html.erb
231
306
  - app/views/layouts/monologue/application.html.erb
307
+ - app/views/monologue/admin/cache/_config.html.erb
308
+ - app/views/monologue/admin/cache/how_to_enable.html.erb
309
+ - app/views/monologue/admin/cache/show.html.erb
232
310
  - app/views/monologue/admin/comments/show.html.erb
233
311
  - app/views/monologue/admin/posts/_form.html.erb
234
312
  - app/views/monologue/admin/posts/edit.html.erb
235
313
  - app/views/monologue/admin/posts/index.html.erb
236
314
  - app/views/monologue/admin/posts/new.html.erb
237
315
  - app/views/monologue/admin/sessions/new.html.erb
316
+ - app/views/monologue/admin/users/edit.html.erb
238
317
  - app/views/monologue/posts/404.html.erb
239
318
  - app/views/monologue/posts/_pagination.html.erb
319
+ - app/views/monologue/posts/_post.html.erb
320
+ - app/views/monologue/posts/_revision_header.html.erb
240
321
  - app/views/monologue/posts/_social_sharing.html.erb
241
322
  - app/views/monologue/posts/feed.rss.builder
242
323
  - app/views/monologue/posts/index.html.erb
243
324
  - app/views/monologue/posts/show.html.erb
325
+ - app/views/monologue/sidebar/_categories.html.erb
326
+ - app/views/monologue/sidebar/_latest_posts.html.erb
327
+ - app/views/monologue/sidebar/_latest_tweets.html.erb
328
+ - app/views/monologue/sidebar/_tag_cloud.html.erb
329
+ - app/views/monologue/tags/_tag.html.erb
330
+ - app/views/monologue/tags/show.html.erb
244
331
  - config/locales/en.yml
245
332
  - config/locales/fr.yml
246
333
  - config/routes.rb
247
334
  - db/migrate/20120114001001_create_monologue_users.rb
248
335
  - db/migrate/20120120193858_create_monologue_posts_revisions.rb
249
336
  - db/migrate/20120120193907_create_monologue_posts.rb
337
+ - db/migrate/20120514164158_create_monologue_tags.rb
338
+ - db/migrate/20120514194459_join_posts_and_tags.rb
250
339
  - db/migrate/20120526131841_migrate_old_urls.rb
251
340
  - db/migrate/20120526195147_add_index_to_posts_revision_url.rb
341
+ - db/migrate/20120604010152_rename_post_tags_table.rb
342
+ - db/migrate/20120612013442_create_taggings.rb
343
+ - db/migrate/20120612015727_delete_join_posts_tags.rb
344
+ - db/migrate/20120612020023_add_index_to_tag_name.rb
252
345
  - db/seeds.rb
253
346
  - lib/monologue/engine.rb
254
347
  - lib/monologue/version.rb
255
348
  - lib/monologue.rb
256
- - lib/tasks/monologue_tasks.rake
349
+ - lib/tasks/monologue_cache.rake
350
+ - vendor/assets/fonts/monologue/foundation_icons/social_foundicons.eot
351
+ - vendor/assets/fonts/monologue/foundation_icons/social_foundicons.svg
352
+ - vendor/assets/fonts/monologue/foundation_icons/social_foundicons.ttf
353
+ - vendor/assets/fonts/monologue/foundation_icons/social_foundicons.woff
257
354
  - vendor/assets/images/monologue/bootstrap/glyphicons-halflings-white.png
258
355
  - vendor/assets/images/monologue/bootstrap/glyphicons-halflings.png
259
356
  - vendor/assets/javascripts/monologue/bootstrap/bootstrap-datepicker-fr.js
@@ -262,9 +359,11 @@ files:
262
359
  - vendor/assets/stylesheets/monologue/bootstrap/bootstrap-datepicker.css
263
360
  - vendor/assets/stylesheets/monologue/bootstrap/bootstrap-responsive.min.css
264
361
  - vendor/assets/stylesheets/monologue/bootstrap/bootstrap.min.css
362
+ - vendor/assets/stylesheets/monologue/foundation_icons/social_foundicons.css.erb
265
363
  - MIT-LICENSE
266
364
  - Rakefile
267
365
  - README.md
366
+ - deprecations.rb
268
367
  homepage: http://github.com/jipiboily/monologue
269
368
  licenses: []
270
369
  post_install_message:
@@ -280,12 +379,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
280
379
  required_rubygems_version: !ruby/object:Gem::Requirement
281
380
  none: false
282
381
  requirements:
283
- - - ! '>='
382
+ - - ! '>'
284
383
  - !ruby/object:Gem::Version
285
- version: '0'
384
+ version: 1.3.1
286
385
  requirements: []
287
386
  rubyforge_project:
288
- rubygems_version: 1.8.23
387
+ rubygems_version: 1.8.24
289
388
  signing_key:
290
389
  specification_version: 3
291
390
  summary: Monologue is a basic blogging engine. It is a Rails mountable engine so it
@@ -1,4 +0,0 @@
1
- module Monologue
2
- module Admin::AdminHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Monologue
2
- module PostsHelper
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module Monologue
2
- module Admin
3
- module SessionsHelper
4
- end
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :monologue do
3
- # # Task goes here
4
- # end