messaging_4 0.0.1

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 (80) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/javascripts/messaging/adapt.js +135 -0
  5. data/app/assets/javascripts/messaging/application.js +10 -0
  6. data/app/assets/javascripts/messaging/messages.coffee +33 -0
  7. data/app/assets/stylesheets/messaging/1200.css +357 -0
  8. data/app/assets/stylesheets/messaging/1560.css +357 -0
  9. data/app/assets/stylesheets/messaging/1920.css +358 -0
  10. data/app/assets/stylesheets/messaging/2520.css +359 -0
  11. data/app/assets/stylesheets/messaging/720.css +357 -0
  12. data/app/assets/stylesheets/messaging/960.css +357 -0
  13. data/app/assets/stylesheets/messaging/application.css +8 -0
  14. data/app/assets/stylesheets/messaging/messages.sass +225 -0
  15. data/app/assets/stylesheets/messaging/mobile.css +26 -0
  16. data/app/assets/stylesheets/messaging/reset.css +48 -0
  17. data/app/controllers/messaging/application_controller.rb +9 -0
  18. data/app/controllers/messaging/messages_controller.rb +71 -0
  19. data/app/helpers/messaging/application_helper.rb +4 -0
  20. data/app/models/messaging/message.rb +35 -0
  21. data/app/views/layouts/messaging/application.html.haml +62 -0
  22. data/app/views/messaging/messages/index.html.haml +28 -0
  23. data/app/views/messaging/messages/new.html.haml +11 -0
  24. data/app/views/messaging/messages/show.html.haml +23 -0
  25. data/config/routes.rb +13 -0
  26. data/lib/generators/messaging/devise/devise_generator.rb +34 -0
  27. data/lib/generators/messaging/devise/templates/messaging_user.rb.erb +23 -0
  28. data/lib/generators/messaging/install/install_generator.rb +12 -0
  29. data/lib/messaging.rb +9 -0
  30. data/lib/messaging/engine.rb +5 -0
  31. data/lib/messaging/version.rb +3 -0
  32. data/lib/tasks/messaging_tasks.rake +4 -0
  33. data/test/dummy/Rakefile +7 -0
  34. data/test/dummy/app/assets/javascripts/application.js +9 -0
  35. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  36. data/test/dummy/app/controllers/application_controller.rb +3 -0
  37. data/test/dummy/app/controllers/home_controller.rb +9 -0
  38. data/test/dummy/app/helpers/application_helper.rb +2 -0
  39. data/test/dummy/app/models/messaging_user.rb +23 -0
  40. data/test/dummy/app/models/user.rb +23 -0
  41. data/test/dummy/app/views/layouts/application.html.haml +11 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/config/application.rb +45 -0
  44. data/test/dummy/config/boot.rb +10 -0
  45. data/test/dummy/config/database.yml +25 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +32 -0
  48. data/test/dummy/config/environments/production.rb +60 -0
  49. data/test/dummy/config/environments/test.rb +39 -0
  50. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/test/dummy/config/initializers/devise.rb +209 -0
  52. data/test/dummy/config/initializers/inflections.rb +10 -0
  53. data/test/dummy/config/initializers/mailboxer.rb +12 -0
  54. data/test/dummy/config/initializers/mime_types.rb +5 -0
  55. data/test/dummy/config/initializers/secret_token.rb +7 -0
  56. data/test/dummy/config/initializers/session_store.rb +8 -0
  57. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/test/dummy/config/locales/devise.en.yml +58 -0
  59. data/test/dummy/config/locales/en.yml +5 -0
  60. data/test/dummy/config/routes.rb +10 -0
  61. data/test/dummy/db/migrate/20111204041734_devise_create_users.rb +25 -0
  62. data/test/dummy/db/migrate/20111204042609_create_mailboxer.rb +61 -0
  63. data/test/dummy/db/migrate/20111204042610_add_notified_object.rb +17 -0
  64. data/test/dummy/db/migrate/20111204042611_add_notification_code.rb +13 -0
  65. data/test/dummy/db/migrate/20111205020919_add_attachments.rb +5 -0
  66. data/test/dummy/db/migrate/20111213052240_devise_create_messaging_users.rb +25 -0
  67. data/test/dummy/db/schema.rb +99 -0
  68. data/test/dummy/public/404.html +26 -0
  69. data/test/dummy/public/422.html +26 -0
  70. data/test/dummy/public/500.html +26 -0
  71. data/test/dummy/public/favicon.ico +0 -0
  72. data/test/dummy/script/rails +6 -0
  73. data/test/dummy/test/fixtures/messaging_users.yml +11 -0
  74. data/test/dummy/test/fixtures/users.yml +11 -0
  75. data/test/dummy/test/unit/messaging_user_test.rb +7 -0
  76. data/test/dummy/test/unit/user_test.rb +7 -0
  77. data/test/integration/navigation_test.rb +10 -0
  78. data/test/messaging_test.rb +7 -0
  79. data/test/test_helper.rb +10 -0
  80. metadata +281 -0
@@ -0,0 +1,359 @@
1
+ /*
2
+ 960 Grid System ~ Core CSS.
3
+ Learn more ~ http://960.gs/
4
+
5
+ Licensed under GPL and MIT.
6
+ */
7
+
8
+ /*
9
+ Forces backgrounds to span full width,
10
+ even if there is horizontal scrolling.
11
+ Increase this if your layout is wider.
12
+
13
+ Note: IE6 works fine without this fix.
14
+ */
15
+
16
+ body {
17
+ min-width: 2520px;
18
+ }
19
+
20
+ /* Containers
21
+ ----------------------------------------------------------------------------------------------------*/
22
+
23
+ .container_12 {
24
+ margin-left: auto;
25
+ margin-right: auto;
26
+ width: 2520px;
27
+ }
28
+
29
+ /* Grid >> Global
30
+ ----------------------------------------------------------------------------------------------------*/
31
+
32
+ .grid_1,
33
+ .grid_2,
34
+ .grid_3,
35
+ .grid_4,
36
+ .grid_5,
37
+ .grid_6,
38
+ .grid_7,
39
+ .grid_8,
40
+ .grid_9,
41
+ .grid_10,
42
+ .grid_11,
43
+ .grid_12 {
44
+ display:inline;
45
+ float: left;
46
+ margin-left: 10px;
47
+ margin-right: 10px;
48
+ }
49
+
50
+ .push_1, .pull_1,
51
+ .push_2, .pull_2,
52
+ .push_3, .pull_3,
53
+ .push_4, .pull_4,
54
+ .push_5, .pull_5,
55
+ .push_6, .pull_6,
56
+ .push_7, .pull_7,
57
+ .push_8, .pull_8,
58
+ .push_9, .pull_9,
59
+ .push_10, .pull_10,
60
+ .push_11, .pull_11,
61
+ .push_12, .pull_12 {
62
+ position: relative;
63
+ }
64
+
65
+ /* Grid >> Children (Alpha ~ First, Omega ~ Last)
66
+ ----------------------------------------------------------------------------------------------------*/
67
+
68
+ .alpha {
69
+ margin-left: 0;
70
+ }
71
+
72
+ .omega {
73
+ margin-right: 0;
74
+ }
75
+
76
+ /* Grid >> 12 Columns
77
+ ----------------------------------------------------------------------------------------------------*/
78
+
79
+
80
+ .container_12 .grid_1 {
81
+ width: 190px;
82
+ }
83
+
84
+ .container_12 .grid_2 {
85
+ width: 400px;
86
+ }
87
+
88
+ .container_12 .grid_3 {
89
+ width: 610px;
90
+ }
91
+
92
+ .container_12 .grid_4 {
93
+ width: 820px;
94
+ }
95
+
96
+ .container_12 .grid_5 {
97
+ width: 1030px;
98
+ }
99
+
100
+ .container_12 .grid_6 {
101
+ width: 1240px;
102
+ }
103
+
104
+ .container_12 .grid_7 {
105
+ width: 1450px;
106
+ }
107
+
108
+ .container_12 .grid_8 {
109
+ width: 1660px;
110
+ }
111
+
112
+ .container_12 .grid_9 {
113
+ width: 1870px;
114
+ }
115
+
116
+ .container_12 .grid_10 {
117
+ width: 2080px;
118
+ }
119
+
120
+ .container_12 .grid_11 {
121
+ width: 2290px;
122
+ }
123
+
124
+ .container_12 .grid_12 {
125
+ width: 2500px;
126
+ }
127
+
128
+ /* Prefix Extra Space >> 12 Columns
129
+ ----------------------------------------------------------------------------------------------------*/
130
+
131
+ .container_12 .prefix_1 {
132
+ padding-left: 210px;
133
+ }
134
+
135
+ .container_12 .prefix_2 {
136
+ padding-left: 420px;
137
+ }
138
+
139
+ .container_12 .prefix_3 {
140
+ padding-left: 630px;
141
+ }
142
+
143
+ .container_12 .prefix_4 {
144
+ padding-left: 840px;
145
+ }
146
+
147
+ .container_12 .prefix_5 {
148
+ padding-left: 1050px;
149
+ }
150
+
151
+ .container_12 .prefix_6 {
152
+ padding-left: 1260px;
153
+ }
154
+
155
+ .container_12 .prefix_7 {
156
+ padding-left: 1470px;
157
+ }
158
+
159
+ .container_12 .prefix_8 {
160
+ padding-left: 1680px;
161
+ }
162
+
163
+ .container_12 .prefix_9 {
164
+ padding-left: 1890px;
165
+ }
166
+
167
+ .container_12 .prefix_10 {
168
+ padding-left: 2100px;
169
+ }
170
+
171
+ .container_12 .prefix_11 {
172
+ padding-left: 2310px;
173
+ }
174
+
175
+ /* Suffix Extra Space >> 12 Columns
176
+ ----------------------------------------------------------------------------------------------------*/
177
+
178
+ .container_12 .suffix_1 {
179
+ padding-right: 210px;
180
+ }
181
+
182
+ .container_12 .suffix_2 {
183
+ padding-right: 420px;
184
+ }
185
+
186
+ .container_12 .suffix_3 {
187
+ padding-right: 630px;
188
+ }
189
+
190
+ .container_12 .suffix_4 {
191
+ padding-right: 840px;
192
+ }
193
+
194
+ .container_12 .suffix_5 {
195
+ padding-right: 1050px;
196
+ }
197
+
198
+ .container_12 .suffix_6 {
199
+ padding-right: 1260px;
200
+ }
201
+
202
+ .container_12 .suffix_7 {
203
+ padding-right: 1470px;
204
+ }
205
+
206
+ .container_12 .suffix_8 {
207
+ padding-right: 1680px;
208
+ }
209
+
210
+ .container_12 .suffix_9 {
211
+ padding-right: 1890px;
212
+ }
213
+
214
+ .container_12 .suffix_10 {
215
+ padding-right: 2100px;
216
+ }
217
+
218
+ .container_12 .suffix_11 {
219
+ padding-right: 2310px;
220
+ }
221
+
222
+ /* Push Space >> 12 Columns
223
+ ----------------------------------------------------------------------------------------------------*/
224
+
225
+ .container_12 .push_1 {
226
+ left: 210px;
227
+ }
228
+
229
+ .container_12 .push_2 {
230
+ left: 420px;
231
+ }
232
+
233
+ .container_12 .push_3 {
234
+ left: 630px;
235
+ }
236
+
237
+ .container_12 .push_4 {
238
+ left: 840px;
239
+ }
240
+
241
+ .container_12 .push_5 {
242
+ left: 1050px;
243
+ }
244
+
245
+ .container_12 .push_6 {
246
+ left: 1260px;
247
+ }
248
+
249
+ .container_12 .push_7 {
250
+ left: 1470px;
251
+ }
252
+
253
+ .container_12 .push_8 {
254
+ left: 1680px;
255
+ }
256
+
257
+ .container_12 .push_9 {
258
+ left: 1890px;
259
+ }
260
+
261
+ .container_12 .push_10 {
262
+ left: 2100px;
263
+ }
264
+
265
+ .container_12 .push_11 {
266
+ left: 2310px;
267
+ }
268
+
269
+ /* Pull Space >> 12 Columns
270
+ ----------------------------------------------------------------------------------------------------*/
271
+
272
+ .container_12 .pull_1 {
273
+ left: -210px;
274
+ }
275
+
276
+ .container_12 .pull_2 {
277
+ left: -420px;
278
+ }
279
+
280
+ .container_12 .pull_3 {
281
+ left: -630px;
282
+ }
283
+
284
+ .container_12 .pull_4 {
285
+ left: -840px;
286
+ }
287
+
288
+ .container_12 .pull_5 {
289
+ left: -1050px;
290
+ }
291
+
292
+ .container_12 .pull_6 {
293
+ left: -1260px;
294
+ }
295
+
296
+ .container_12 .pull_7 {
297
+ left: -1470px;
298
+ }
299
+
300
+ .container_12 .pull_8 {
301
+ left: -1680px;
302
+ }
303
+
304
+ .container_12 .pull_9 {
305
+ left: -1890px;
306
+ }
307
+
308
+ .container_12 .pull_10 {
309
+ left: -2100px;
310
+ }
311
+
312
+ .container_12 .pull_11 {
313
+ left: -2310px;
314
+ }
315
+
316
+ /* `Clear Floated Elements
317
+ ----------------------------------------------------------------------------------------------------*/
318
+
319
+ /* http://sonspring.com/journal/clearing-floats */
320
+
321
+ .clear {
322
+ clear: both;
323
+ display: block;
324
+ overflow: hidden;
325
+ visibility: hidden;
326
+ width: 0;
327
+ height: 0;
328
+ }
329
+
330
+ /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
331
+
332
+ .clearfix:before,
333
+ .clearfix:after,
334
+ .container_12:before,
335
+ .container_12:after {
336
+ content: '.';
337
+ display: block;
338
+ overflow: hidden;
339
+ visibility: hidden;
340
+ font-size: 0;
341
+ line-height: 0;
342
+ width: 0;
343
+ height: 0;
344
+ }
345
+
346
+ .clearfix:after,
347
+ .container_12:after {
348
+ clear: both;
349
+ }
350
+
351
+ /*
352
+ The following zoom:1 rule is specifically for IE6 + IE7.
353
+ Move to separate stylesheet if invalid CSS is a problem.
354
+ */
355
+
356
+ .clearfix,
357
+ .container_12 {
358
+ zoom: 1;
359
+ }
@@ -0,0 +1,357 @@
1
+ /*
2
+ 960 Grid System ~ Core CSS.
3
+ Learn more ~ http://960.gs/
4
+
5
+ Licensed under GPL and MIT.
6
+ */
7
+
8
+ /*
9
+ Forces backgrounds to span full width,
10
+ even if there is horizontal scrolling.
11
+ Increase this if your layout is wider.
12
+
13
+ Note: IE6 works fine without this fix.
14
+ */
15
+
16
+ body {
17
+ min-width: 720px;
18
+ }
19
+
20
+ /* `Containers
21
+ ----------------------------------------------------------------------------------------------------*/
22
+
23
+ .container_12 {
24
+ margin-left: auto;
25
+ margin-right: auto;
26
+ width: 720px;
27
+ }
28
+
29
+ /* `Grid >> Global
30
+ ----------------------------------------------------------------------------------------------------*/
31
+
32
+ .grid_1,
33
+ .grid_2,
34
+ .grid_3,
35
+ .grid_4,
36
+ .grid_5,
37
+ .grid_6,
38
+ .grid_7,
39
+ .grid_8,
40
+ .grid_9,
41
+ .grid_10,
42
+ .grid_11,
43
+ .grid_12 {
44
+ display: inline;
45
+ float: left;
46
+ margin-left: 10px;
47
+ margin-right: 10px;
48
+ }
49
+
50
+ .push_1, .pull_1,
51
+ .push_2, .pull_2,
52
+ .push_3, .pull_3,
53
+ .push_4, .pull_4,
54
+ .push_5, .pull_5,
55
+ .push_6, .pull_6,
56
+ .push_7, .pull_7,
57
+ .push_8, .pull_8,
58
+ .push_9, .pull_9,
59
+ .push_10, .pull_10,
60
+ .push_11, .pull_11 {
61
+ position: relative;
62
+ }
63
+
64
+ /* `Grid >> Children (Alpha ~ First, Omega ~ Last)
65
+ ----------------------------------------------------------------------------------------------------*/
66
+
67
+ .alpha {
68
+ margin-left: 0;
69
+ }
70
+
71
+ .omega {
72
+ margin-right: 0;
73
+ }
74
+
75
+ /* `Grid >> 12 Columns
76
+ ----------------------------------------------------------------------------------------------------*/
77
+
78
+ .container_12 .grid_1 {
79
+ width: 40px;
80
+ }
81
+
82
+ .container_12 .grid_2 {
83
+ width: 100px;
84
+ }
85
+
86
+ .container_12 .grid_3 {
87
+ width: 160px;
88
+ }
89
+
90
+ .container_12 .grid_4 {
91
+ width: 220px;
92
+ }
93
+
94
+ .container_12 .grid_5 {
95
+ width: 280px;
96
+ }
97
+
98
+ .container_12 .grid_6 {
99
+ width: 340px;
100
+ }
101
+
102
+ .container_12 .grid_7 {
103
+ width: 400px;
104
+ }
105
+
106
+ .container_12 .grid_8 {
107
+ width: 460px;
108
+ }
109
+
110
+ .container_12 .grid_9 {
111
+ width: 520px;
112
+ }
113
+
114
+ .container_12 .grid_10 {
115
+ width: 580px;
116
+ }
117
+
118
+ .container_12 .grid_11 {
119
+ width: 640px;
120
+ }
121
+
122
+ .container_12 .grid_12 {
123
+ width: 700px;
124
+ }
125
+
126
+ /* `Prefix Extra Space >> 12 Columns
127
+ ----------------------------------------------------------------------------------------------------*/
128
+
129
+ .container_12 .prefix_1 {
130
+ padding-left: 60px;
131
+ }
132
+
133
+ .container_12 .prefix_2 {
134
+ padding-left: 120px;
135
+ }
136
+
137
+ .container_12 .prefix_3 {
138
+ padding-left: 180px;
139
+ }
140
+
141
+ .container_12 .prefix_4 {
142
+ padding-left: 240px;
143
+ }
144
+
145
+ .container_12 .prefix_5 {
146
+ padding-left: 300px;
147
+ }
148
+
149
+ .container_12 .prefix_6 {
150
+ padding-left: 360px;
151
+ }
152
+
153
+ .container_12 .prefix_7 {
154
+ padding-left: 420px;
155
+ }
156
+
157
+ .container_12 .prefix_8 {
158
+ padding-left: 480px;
159
+ }
160
+
161
+ .container_12 .prefix_9 {
162
+ padding-left: 540px;
163
+ }
164
+
165
+ .container_12 .prefix_10 {
166
+ padding-left: 600px;
167
+ }
168
+
169
+ .container_12 .prefix_11 {
170
+ padding-left: 660px;
171
+ }
172
+
173
+ /* `Suffix Extra Space >> 12 Columns
174
+ ----------------------------------------------------------------------------------------------------*/
175
+
176
+ .container_12 .suffix_1 {
177
+ padding-right: 60px;
178
+ }
179
+
180
+ .container_12 .suffix_2 {
181
+ padding-right: 120px;
182
+ }
183
+
184
+ .container_12 .suffix_3 {
185
+ padding-right: 180px;
186
+ }
187
+
188
+ .container_12 .suffix_4 {
189
+ padding-right: 240px;
190
+ }
191
+
192
+ .container_12 .suffix_5 {
193
+ padding-right: 300px;
194
+ }
195
+
196
+ .container_12 .suffix_6 {
197
+ padding-right: 360px;
198
+ }
199
+
200
+ .container_12 .suffix_7 {
201
+ padding-right: 420px;
202
+ }
203
+
204
+ .container_12 .suffix_8 {
205
+ padding-right: 480px;
206
+ }
207
+
208
+ .container_12 .suffix_9 {
209
+ padding-right: 540px;
210
+ }
211
+
212
+ .container_12 .suffix_10 {
213
+ padding-right: 600px;
214
+ }
215
+
216
+ .container_12 .suffix_11 {
217
+ padding-right: 660px;
218
+ }
219
+
220
+ /* `Push Space >> 12 Columns
221
+ ----------------------------------------------------------------------------------------------------*/
222
+
223
+ .container_12 .push_1 {
224
+ left: 60px;
225
+ }
226
+
227
+ .container_12 .push_2 {
228
+ left: 120px;
229
+ }
230
+
231
+ .container_12 .push_3 {
232
+ left: 180px;
233
+ }
234
+
235
+ .container_12 .push_4 {
236
+ left: 240px;
237
+ }
238
+
239
+ .container_12 .push_5 {
240
+ left: 300px;
241
+ }
242
+
243
+ .container_12 .push_6 {
244
+ left: 360px;
245
+ }
246
+
247
+ .container_12 .push_7 {
248
+ left: 420px;
249
+ }
250
+
251
+ .container_12 .push_8 {
252
+ left: 480px;
253
+ }
254
+
255
+ .container_12 .push_9 {
256
+ left: 540px;
257
+ }
258
+
259
+ .container_12 .push_10 {
260
+ left: 600px;
261
+ }
262
+
263
+ .container_12 .push_11 {
264
+ left: 660px;
265
+ }
266
+
267
+ /* `Pull Space >> 12 Columns
268
+ ----------------------------------------------------------------------------------------------------*/
269
+
270
+ .container_12 .pull_1 {
271
+ left: -60px;
272
+ }
273
+
274
+ .container_12 .pull_2 {
275
+ left: -120px;
276
+ }
277
+
278
+ .container_12 .pull_3 {
279
+ left: -180px;
280
+ }
281
+
282
+ .container_12 .pull_4 {
283
+ left: -240px;
284
+ }
285
+
286
+ .container_12 .pull_5 {
287
+ left: -300px;
288
+ }
289
+
290
+ .container_12 .pull_6 {
291
+ left: -360px;
292
+ }
293
+
294
+ .container_12 .pull_7 {
295
+ left: -420px;
296
+ }
297
+
298
+ .container_12 .pull_8 {
299
+ left: -480px;
300
+ }
301
+
302
+ .container_12 .pull_9 {
303
+ left: -540px;
304
+ }
305
+
306
+ .container_12 .pull_10 {
307
+ left: -600px;
308
+ }
309
+
310
+ .container_12 .pull_11 {
311
+ left: -660px;
312
+ }
313
+
314
+ /* `Clear Floated Elements
315
+ ----------------------------------------------------------------------------------------------------*/
316
+
317
+ /* http://sonspring.com/journal/clearing-floats */
318
+
319
+ .clear {
320
+ clear: both;
321
+ display: block;
322
+ overflow: hidden;
323
+ visibility: hidden;
324
+ width: 0;
325
+ height: 0;
326
+ }
327
+
328
+ /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
329
+
330
+ .clearfix:before,
331
+ .clearfix:after,
332
+ .container_12:before,
333
+ .container_12:after {
334
+ content: '.';
335
+ display: block;
336
+ overflow: hidden;
337
+ visibility: hidden;
338
+ font-size: 0;
339
+ line-height: 0;
340
+ width: 0;
341
+ height: 0;
342
+ }
343
+
344
+ .clearfix:after,
345
+ .container_12:after {
346
+ clear: both;
347
+ }
348
+
349
+ /*
350
+ The following zoom:1 rule is specifically for IE6 + IE7.
351
+ Move to separate stylesheet if invalid CSS is a problem.
352
+ */
353
+
354
+ .clearfix,
355
+ .container_12 {
356
+ zoom: 1;
357
+ }