sooner 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/README.rdoc +0 -0
  3. data/Rakefile +28 -32
  4. data/app/assets/javascripts/sooner/admin/application.js +8 -0
  5. data/app/assets/javascripts/sooner/application.js +2 -0
  6. data/app/assets/javascripts/sooner/jquery.tablesorter.min.js +4 -0
  7. data/app/assets/javascripts/sooner/subscribers.js +2 -0
  8. data/app/assets/stylesheets/sooner/admin/application.css +37 -0
  9. data/app/assets/stylesheets/sooner/application.css +3 -0
  10. data/app/assets/stylesheets/sooner/subscribers.css +0 -0
  11. data/app/controllers/sooner/admin/subscribers_controller.rb +89 -0
  12. data/app/controllers/sooner/application_controller.rb +4 -0
  13. data/app/controllers/sooner/subscribers_controller.rb +20 -16
  14. data/app/helpers/sooner/admin/subscribers_helper.rb +4 -0
  15. data/app/helpers/sooner/application_helper.rb +4 -0
  16. data/app/helpers/sooner/subscribers_helper.rb +4 -0
  17. data/app/mailers/sooner/subscribers_mailer.rb +16 -0
  18. data/app/models/sooner/admin/subscriber.rb +3 -0
  19. data/app/models/sooner/subscriber.rb +19 -12
  20. data/app/views/layouts/sooner/admin.html.erb +21 -0
  21. data/app/views/layouts/sooner/application.html.erb +14 -0
  22. data/app/views/sooner/admin/subscribers/_form.html.erb +19 -0
  23. data/app/views/sooner/admin/subscribers/edit.html.erb +6 -0
  24. data/app/views/sooner/admin/subscribers/index.html.erb +22 -0
  25. data/app/views/sooner/admin/subscribers/new.html.erb +8 -0
  26. data/app/views/sooner/admin/subscribers/show.html.erb +5 -0
  27. data/app/views/sooner/subscribers/_message.html.erb +1 -0
  28. data/app/views/sooner/subscribers/create.js.erb +5 -0
  29. data/app/views/sooner/subscribers/new.html.erb +17 -10
  30. data/app/views/sooner/subscribers_mailer/subscribed.text.erb +3 -0
  31. data/config/routes.rb +8 -3
  32. data/lib/generators/sooner/install/install_generator.rb +33 -32
  33. data/lib/generators/sooner/install/templates/README +3 -13
  34. data/lib/generators/sooner/views/views_generator.rb +49 -47
  35. data/lib/sooner/engine.rb +5 -0
  36. data/lib/sooner/version.rb +2 -2
  37. data/lib/sooner/version.rb~ +3 -0
  38. data/lib/sooner.rb +21 -12
  39. data/lib/tasks/sooner_tasks.rake +4 -0
  40. data/test/dummy/Rakefile +7 -0
  41. data/test/dummy/app/assets/javascripts/application.js +9 -0
  42. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  43. data/test/dummy/app/controllers/application_controller.rb +3 -0
  44. data/test/dummy/app/helpers/application_helper.rb +2 -0
  45. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  46. data/test/dummy/config/application.rb +45 -0
  47. data/test/dummy/config/boot.rb +10 -0
  48. data/test/dummy/config/database.yml +25 -0
  49. data/test/dummy/config/environment.rb +5 -0
  50. data/test/dummy/config/environments/development.rb +33 -0
  51. data/test/dummy/config/environments/production.rb +60 -0
  52. data/test/dummy/config/environments/test.rb +39 -0
  53. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/test/dummy/config/initializers/inflections.rb +10 -0
  55. data/test/dummy/config/initializers/mime_types.rb +5 -0
  56. data/test/dummy/config/initializers/secret_token.rb +7 -0
  57. data/test/dummy/config/initializers/session_store.rb +8 -0
  58. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/test/dummy/config/locales/en.yml +5 -0
  60. data/test/dummy/config/mongoid.yml +20 -0
  61. data/test/dummy/config/routes.rb +3 -0
  62. data/test/dummy/config.ru +4 -0
  63. data/test/dummy/db/development.sqlite3 +0 -0
  64. data/test/dummy/log/development.log +13370 -0
  65. data/test/dummy/public/404.html +26 -0
  66. data/test/dummy/public/422.html +26 -0
  67. data/test/dummy/public/500.html +26 -0
  68. data/test/dummy/public/favicon.ico +0 -0
  69. data/test/dummy/public/subscribers.csv +1 -0
  70. data/test/dummy/script/rails +6 -0
  71. data/test/dummy/tmp/cache/assets/C30/8B0/sprockets%2F6853748309a0fdd864824f56536d8023 +9062 -0
  72. data/test/dummy/tmp/cache/assets/C3F/0E0/sprockets%2F0e1cbc926773103d03774752e9108a00 +335 -0
  73. data/test/dummy/tmp/cache/assets/C66/FB0/sprockets%2F98a6552e0c72949d717178b5902e6f36 +71 -0
  74. data/test/dummy/tmp/cache/assets/C6D/F80/sprockets%2F44533615dbef3e810253094110825dac +62 -0
  75. data/test/dummy/tmp/cache/assets/C7A/910/sprockets%2F856f6b120c31d4622c49b3630219de68 +9069 -0
  76. data/test/dummy/tmp/cache/assets/C92/6A0/sprockets%2Fc5438348d868c777420d2e63fce56245 +98 -0
  77. data/test/dummy/tmp/cache/assets/C9C/A60/sprockets%2Fc6c3395667d18857f7f12369e53fa727 +350 -0
  78. data/test/dummy/tmp/cache/assets/CA7/430/sprockets%2F202cbe6f48604eb00549854f3053b58a +25 -0
  79. data/test/dummy/tmp/cache/assets/CB4/610/sprockets%2Ffeb1a7838d426857f0530993e420b60e +115 -0
  80. data/test/dummy/tmp/cache/assets/CE4/0D0/sprockets%2F439a9e8509403ac14ca356e5f2e9348b +7 -0
  81. data/test/dummy/tmp/cache/assets/CEB/DC0/sprockets%2F38536533e8e59a3fe0be483209c6d5c6 +352 -0
  82. data/test/dummy/tmp/cache/assets/CF6/900/sprockets%2F94575569edeb05737ebeaa60898940b6 +26 -0
  83. data/test/dummy/tmp/cache/assets/D07/4F0/sprockets%2Fe6091698b531dd271d5ac325b8b84ba0 +10 -0
  84. data/test/dummy/tmp/cache/assets/D19/BD0/sprockets%2F88636a6d051daca6365de6bd82096f48 +2445 -0
  85. data/test/dummy/tmp/cache/assets/D2B/3B0/sprockets%2F7de3b697dd206aa6eb292e301b140b60 +88 -0
  86. data/test/dummy/tmp/cache/assets/D39/410/sprockets%2Fa93af35d175ac7db006e63e91a0889b0 +42 -0
  87. data/test/dummy/tmp/cache/assets/D53/160/sprockets%2F8970dd07264d6eae78dd182d79df13c8 +303 -0
  88. data/test/dummy/tmp/cache/assets/D60/CE0/sprockets%2F06310f19d92bb4f40da80a37750ebdee +9 -0
  89. data/test/dummy/tmp/cache/assets/D65/620/sprockets%2F631e2801093d7a12aa6766bccaadfe88 +422 -0
  90. data/test/dummy/tmp/cache/assets/D7E/D20/sprockets%2Ff491cba4ec5176a691d9e5d7fc70892c +9052 -0
  91. data/test/dummy/tmp/cache/assets/D88/580/sprockets%2Ffef9b1c3b3b1b0316917a509cb1afb42 +439 -0
  92. data/test/dummy/tmp/cache/assets/D8E/B60/sprockets%2F1bc4810ecfe6a7b05c934eb3b0c2963a +9064 -0
  93. data/test/dummy/tmp/cache/assets/D99/D60/sprockets%2F29025313ddeaa1ff18cade1ed728949a +41 -0
  94. data/test/dummy/tmp/cache/assets/D9E/FD0/sprockets%2Ff8c955f36a2caa4039a66afc4c376e3a +0 -0
  95. data/test/dummy/tmp/cache/assets/DA5/1C0/sprockets%2Fec8cd61eddd7205e7c9c647f59413ac0 +371 -0
  96. data/test/dummy/tmp/cache/assets/DAF/6E0/sprockets%2F1b832fdf9fb97a8a7bcd2c907e652f47 +2386 -0
  97. data/test/dummy/tmp/cache/assets/DBC/650/sprockets%2Fd6da39f6f3f4a37c0db10cbc34ab0681 +67 -0
  98. data/test/dummy/tmp/cache/assets/DC2/150/sprockets%2F5cd685a35e3b593acade42a3b01def72 +8 -0
  99. data/test/dummy/tmp/cache/assets/DC7/530/sprockets%2Fea29d9af8aad9da0803062d3d7c06ac8 +373 -0
  100. data/test/dummy/tmp/cache/assets/DC9/2C0/sprockets%2Fbe1b3f07eb2f550c47c493a6f9a0de7b +333 -0
  101. data/test/dummy/tmp/cache/assets/DD6/820/sprockets%2Fb453f0fef899e0c6fe08aba14b94d09e +45 -0
  102. data/test/dummy/tmp/cache/assets/DD7/130/sprockets%2F6af271c6eec0698bc95224abf1ebf9f6 +390 -0
  103. data/test/dummy/tmp/cache/assets/E03/200/sprockets%2F8bd487cf65caa9fe453abd16be83e0a7 +70 -0
  104. data/test/dummy/tmp/cache/assets/E1D/680/sprockets%2Fc5c6b0ea20de8ef4d2f1eed00a35c93c +25 -0
  105. data/test/dummy/tmp/cache/assets/E49/440/sprockets%2Fbb92f156efb75bdda7bbacc04acb1425 +27 -0
  106. data/test/dummy/tmp/cache/assets/E59/430/sprockets%2Fb3073d96f7bcefcbdd3cdabe09a45a74 +286 -0
  107. data/test/dummy/tmp/cache/assets/E84/430/sprockets%2F61ffc0ed6338cebfdac2f1d3eaf0ae47 +9420 -0
  108. data/test/fixtures/sooner/admin/subscribers.yml +11 -0
  109. data/test/fixtures/sooner/subscribers.yml +7 -0
  110. data/test/functional/sooner/admin/subscribers_controller_test.rb +51 -0
  111. data/test/functional/sooner/subscribers_controller_test.rb +51 -0
  112. data/test/functional/sooner/subscribers_mailer_test.rb +14 -0
  113. data/test/integration/navigation_test.rb +10 -0
  114. data/test/sooner_test.rb +7 -0
  115. data/test/test_helper.rb +10 -0
  116. data/test/unit/helpers/sooner/admin/subscribers_helper_test.rb +6 -0
  117. data/test/unit/helpers/sooner/subscribers_helper_test.rb +6 -0
  118. data/test/unit/sooner/admin/subscriber_test.rb +9 -0
  119. data/test/unit/sooner/subscriber_test.rb +9 -0
  120. metadata +252 -53
  121. data/Gemfile +0 -4
  122. data/lib/sooner/email_format_validator.rb +0 -9
  123. data/lib/sooner/rails.rb +0 -5
@@ -0,0 +1,333 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320232878.0169134: @value{ I" length:EFiI" digest;
2
+ F"%ec1f51feceee879a7729367cbf54baa7I" source;
3
+ FI"/*
4
+ * Skeleton V1.1
5
+ * Copyright 2011, Dave Gamache
6
+ * www.getskeleton.com
7
+ * Free to use under the MIT license.
8
+ * http://www.opensource.org/licenses/mit-license.php
9
+ * 8/17/2011
10
+ */
11
+ /* Table of Contents
12
+ ==================================================
13
+ #Base 960 Grid
14
+ #Tablet (Portrait)
15
+ #Mobile (Portrait)
16
+ #Mobile (Landscape)
17
+ #Clearing */
18
+ /* #Base 960 Grid
19
+ ================================================== */
20
+
21
+ .container {
22
+ position:relative;
23
+ width:960px;
24
+ margin:0 auto;
25
+ padding:0;
26
+ }
27
+ .column, .columns {
28
+ float:left;
29
+ display:inline;
30
+ margin-left:10px;
31
+ margin-right:10px;
32
+ }
33
+ .row {
34
+ margin-bottom:20px;
35
+ }
36
+ /* Nested Column Classes */
37
+ .column.alpha, .columns.alpha {
38
+ margin-left:0;
39
+ }
40
+ .column.omega, .columns.omega {
41
+ margin-right:0;
42
+ }
43
+ /* Base Grid */
44
+ .container .one.column {
45
+ width:40px;
46
+ }
47
+ .container .two.columns {
48
+ width:100px;
49
+ }
50
+ .container .three.columns {
51
+ width:160px;
52
+ }
53
+ .container .four.columns {
54
+ width:220px;
55
+ }
56
+ .container .five.columns {
57
+ width:280px;
58
+ }
59
+ .container .six.columns {
60
+ width:340px;
61
+ }
62
+ .container .seven.columns {
63
+ width:400px;
64
+ }
65
+ .container .eight.columns {
66
+ width:460px;
67
+ }
68
+ .container .nine.columns {
69
+ width:520px;
70
+ }
71
+ .container .ten.columns {
72
+ width:580px;
73
+ }
74
+ .container .eleven.columns {
75
+ width:640px;
76
+ }
77
+ .container .twelve.columns {
78
+ width:700px;
79
+ }
80
+ .container .thirteen.columns {
81
+ width:760px;
82
+ }
83
+ .container .fourteen.columns {
84
+ width:820px;
85
+ }
86
+ .container .fifteen.columns {
87
+ width:880px;
88
+ }
89
+ .container .sixteen.columns {
90
+ width:940px;
91
+ }
92
+ .container .one-third.column {
93
+ width:300px;
94
+ }
95
+ .container .two-thirds.column {
96
+ width:620px;
97
+ }
98
+ /* Offsets */
99
+ .container .offset-by-one {
100
+ padding-left:60px;
101
+ }
102
+ .container .offset-by-two {
103
+ padding-left:120px;
104
+ }
105
+ .container .offset-by-three {
106
+ padding-left:180px;
107
+ }
108
+ .container .offset-by-four {
109
+ padding-left:240px;
110
+ }
111
+ .container .offset-by-five {
112
+ padding-left:300px;
113
+ }
114
+ .container .offset-by-six {
115
+ padding-left:360px;
116
+ }
117
+ .container .offset-by-seven {
118
+ padding-left:420px;
119
+ }
120
+ .container .offset-by-eight {
121
+ padding-left:480px;
122
+ }
123
+ .container .offset-by-nine {
124
+ padding-left:540px;
125
+ }
126
+ .container .offset-by-ten {
127
+ padding-left:600px;
128
+ }
129
+ .container .offset-by-eleven {
130
+ padding-left:660px;
131
+ }
132
+ .container .offset-by-twelve {
133
+ padding-left:720px;
134
+ }
135
+ .container .offset-by-thirteen {
136
+ padding-left:780px;
137
+ }
138
+ .container .offset-by-fourteen {
139
+ padding-left:840px;
140
+ }
141
+ .container .offset-by-fifteen {
142
+ padding-left:900px;
143
+ }
144
+ /* #Tablet (Portrait)
145
+ ================================================== */
146
+ /* Note: Design for a width of 768px */
147
+ @media only screen and(min-width:768px)and(max-width:959px) {
148
+ .container {
149
+ width:768px;
150
+ }
151
+ .container .column, .container .columns {
152
+ margin-left:10px;
153
+ margin-right:10px;
154
+ }
155
+ .column.alpha, .columns.alpha {
156
+ margin-left:0;
157
+ margin-right:10px;
158
+ }
159
+ .column.omega, .columns.omega {
160
+ margin-right:0;
161
+ margin-left:10px;
162
+ }
163
+ .container .one.column {
164
+ width:28px;
165
+ }
166
+ .container .two.columns {
167
+ width:76px;
168
+ }
169
+ .container .three.columns {
170
+ width:124px;
171
+ }
172
+ .container .four.columns {
173
+ width:172px;
174
+ }
175
+ .container .five.columns {
176
+ width:220px;
177
+ }
178
+ .container .six.columns {
179
+ width:268px;
180
+ }
181
+ .container .seven.columns {
182
+ width:316px;
183
+ }
184
+ .container .eight.columns {
185
+ width:364px;
186
+ }
187
+ .container .nine.columns {
188
+ width:412px;
189
+ }
190
+ .container .ten.columns {
191
+ width:460px;
192
+ }
193
+ .container .eleven.columns {
194
+ width:508px;
195
+ }
196
+ .container .twelve.columns {
197
+ width:556px;
198
+ }
199
+ .container .thirteen.columns {
200
+ width:604px;
201
+ }
202
+ .container .fourteen.columns {
203
+ width:652px;
204
+ }
205
+ .container .fifteen.columns {
206
+ width:700px;
207
+ }
208
+ .container .sixteen.columns {
209
+ width:748px;
210
+ }
211
+ .container .one-third.column {
212
+ width:236px;
213
+ }
214
+ .container .two-thirds.column {
215
+ width:492px;
216
+ }
217
+ /* Offsets */
218
+ .container .offset-by-one {
219
+ padding-left:48px;
220
+ }
221
+ .container .offset-by-two {
222
+ padding-left:96px;
223
+ }
224
+ .container .offset-by-three {
225
+ padding-left:144px;
226
+ }
227
+ .container .offset-by-four {
228
+ padding-left:192px;
229
+ }
230
+ .container .offset-by-five {
231
+ padding-left:240px;
232
+ }
233
+ .container .offset-by-six {
234
+ padding-left:288px;
235
+ }
236
+ .container .offset-by-seven {
237
+ padding-left:336px;
238
+ }
239
+ .container .offset-by-eight {
240
+ padding-left:348px;
241
+ }
242
+ .container .offset-by-nine {
243
+ padding-left:432px;
244
+ }
245
+ .container .offset-by-ten {
246
+ padding-left:480px;
247
+ }
248
+ .container .offset-by-eleven {
249
+ padding-left:528px;
250
+ }
251
+ .container .offset-by-twelve {
252
+ padding-left:576px;
253
+ }
254
+ .container .offset-by-thirteen {
255
+ padding-left:624px;
256
+ }
257
+ .container .offset-by-fourteen {
258
+ padding-left:672px;
259
+ }
260
+ .container .offset-by-fifteen {
261
+ padding-left:720px;
262
+ }
263
+ }
264
+ /* #Mobile (Portrait)
265
+ ================================================== */
266
+ /* Note: Design for a width of 320px */
267
+ @media only screen and(max-width:767px) {
268
+ .container {
269
+ width:300px;
270
+ }
271
+ .columns, .column {
272
+ margin:0;
273
+ }
274
+ .container .one.column, .container .two.columns, .container .three.columns, .container .four.columns, .container .five.columns, .container .six.columns, .container .seven.columns, .container .eight.columns, .container .nine.columns, .container .ten.columns, .container .eleven.columns, .container .twelve.columns, .container .thirteen.columns, .container .fourteen.columns, .container .fifteen.columns, .container .sixteen.columns, .container .one-third.column, .container .two-thirds.column {
275
+ width:300px;
276
+ }
277
+ /* Offsets */
278
+ .container .offset-by-one, .container .offset-by-two, .container .offset-by-three, .container .offset-by-four, .container .offset-by-five, .container .offset-by-six, .container .offset-by-seven, .container .offset-by-eight, .container .offset-by-nine, .container .offset-by-ten, .container .offset-by-eleven, .container .offset-by-twelve, .container .offset-by-thirteen, .container .offset-by-fourteen, .container .offset-by-fifteen {
279
+ padding-left:0;
280
+ }
281
+ }
282
+ /* #Mobile (Landscape)
283
+ ================================================== */
284
+ /* Note: Design for a width of 480px */
285
+ @media only screen and(min-width:480px)and(max-width:767px) {
286
+ .container {
287
+ width:420px;
288
+ }
289
+ .columns, .column {
290
+ margin:0;
291
+ }
292
+ .container .one.column, .container .two.columns, .container .three.columns, .container .four.columns, .container .five.columns, .container .six.columns, .container .seven.columns, .container .eight.columns, .container .nine.columns, .container .ten.columns, .container .eleven.columns, .container .twelve.columns, .container .thirteen.columns, .container .fourteen.columns, .container .fifteen.columns, .container .sixteen.columns, .container .one-third.column, .container .two-thirds.column {
293
+ width:420px;
294
+ }
295
+ }
296
+ /* #Clearing
297
+ ================================================== */
298
+ /* Self Clearing Goodness */
299
+ .container:after {
300
+ content:"\0020";
301
+ display:block;
302
+ height:0;
303
+ clear:both;
304
+ visibility:hidden;
305
+ }
306
+ /* Use clearfix class on parent to clear nested columns,
307
+ or wrap each row of columns in a <div class="row"> */
308
+ .clearfix:before, .clearfix:after, .row:before, .row:after {
309
+ content:'\0020';
310
+ display:block;
311
+ overflow:hidden;
312
+ visibility:hidden;
313
+ width:0;
314
+ height:0;
315
+ }
316
+ .row:after, .clearfix:after {
317
+ clear:both;
318
+ }
319
+ .row, .clearfix {
320
+ zoom:1;
321
+ }
322
+ /* You can also use a <br class="clear" /> to clear columns */
323
+ .clear {
324
+ clear:both;
325
+ display:block;
326
+ overflow:hidden;
327
+ visibility:hidden;
328
+ width:0;
329
+ height:0;
330
+ }
331
+ ;
332
+ FI"
333
+ F"%d3c9e243a3c6551f261e09aa23cbd6ca
@@ -0,0 +1,45 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320073491.8960638: @value{ I" length:EFi�I" digest;
2
+ F"%53edd0a1be32e94e2a89a08b98c1614dI" source;
3
+ FI"�/* tables */
4
+
5
+ table.tablesorter {
6
+ font-family:arial;
7
+ background-color:#CDCDCD;
8
+ margin:10px 0pt 15px;
9
+ font-size:8pt;
10
+ width:100%;
11
+ text-align:left;
12
+ }
13
+ table.tablesorter thead tr th, table.tablesorter tfoot tr th {
14
+ background-color:#e6EEEE;
15
+ border:1px solid #FFF;
16
+ font-size:8pt;
17
+ padding:4px;
18
+ }
19
+ table.tablesorter thead tr .header {
20
+ background-image:url(/assets/sooner/bg.gif);
21
+ background-repeat:no-repeat;
22
+ background-position:center right;
23
+ cursor:pointer;
24
+ }
25
+ table.tablesorter tbody td {
26
+ color:#3D3D3D;
27
+ padding:4px;
28
+ background-color:#FFF;
29
+ vertical-align:top;
30
+ }
31
+ table.tablesorter tbody tr.odd td {
32
+ background-color:#F0F0F6;
33
+ }
34
+ table.tablesorter thead tr .headerSortUp {
35
+ background-image:url(/assets/sooner/asc.gif);
36
+ }
37
+ table.tablesorter thead tr .headerSortDown {
38
+ background-image:url(/assets/sooner/desc.gif);
39
+ }
40
+ table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
41
+ background-color:#8dbdd8;
42
+ }
43
+ ;
44
+ FI"
45
+ F"%e6db36bf1563026642ea2bf7d0409f93