newsly 0.1.7

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 (42) hide show
  1. data/MIT-LICENSE +0 -0
  2. data/README.rdoc +7 -0
  3. data/Rakefile +39 -0
  4. data/app/controllers/newsly/application_controller.rb +5 -0
  5. data/app/controllers/newsly/newsletters_controller.rb +57 -0
  6. data/app/controllers/newsly/snippets_controller.rb +10 -0
  7. data/app/controllers/newsly/templates_controller.rb +47 -0
  8. data/app/helpers/newsly/application_helper.rb +4 -0
  9. data/app/mailers/newsly/mailer.rb +51 -0
  10. data/app/models/newsly/newsletter.rb +13 -0
  11. data/app/models/newsly/template.rb +16 -0
  12. data/app/views/layouts/newsly/application.html.erb +20 -0
  13. data/app/views/layouts/newsly/mailer.html.erb +5 -0
  14. data/app/views/newsly/_navigation.html.erb +5 -0
  15. data/app/views/newsly/newsletters/_newsletter.html.liquid +26 -0
  16. data/app/views/newsly/newsletters/_sidebar.html.erb +28 -0
  17. data/app/views/newsly/newsletters/index.html.erb +20 -0
  18. data/app/views/newsly/newsletters/show.html.erb +9 -0
  19. data/app/views/newsly/snippets/index.html.erb +12 -0
  20. data/app/views/newsly/templates/index.html.erb +15 -0
  21. data/app/views/newsly/templates/show.html.erb +19 -0
  22. data/app/workers/newsly/newsletter_sender.rb +14 -0
  23. data/config/routes.rb +20 -0
  24. data/db/migrate/20110907161522_create_newsly_newsletters.rb +11 -0
  25. data/db/migrate/20110912110413_create_newsly_templates.rb +12 -0
  26. data/db/migrate/20110926113235_add_draft_column_to_templates.rb +6 -0
  27. data/db/migrate/20110927120903_add_text_body_fields.rb +6 -0
  28. data/db/migrate/20110929142039_remove_text_body_fields.rb +6 -0
  29. data/lib/newsly.rb +27 -0
  30. data/lib/newsly/engine.rb +19 -0
  31. data/lib/newsly/version.rb +3 -0
  32. data/lib/tasks/newsly_tasks.rake +7 -0
  33. data/public/javascripts/jquery.js +49 -0
  34. data/public/javascripts/newsletters.js +68 -0
  35. data/public/javascripts/rails.js +363 -0
  36. data/public/javascripts/templates.js +41 -0
  37. data/public/mercury/javascripts/mercury.min.js +16937 -0
  38. data/public/mercury/javascripts/mercury_dialogs.js +18 -0
  39. data/public/mercury/javascripts/mercury_loader.js +191 -0
  40. data/public/mercury/stylesheets/mercury.bundle.css +241 -0
  41. data/public/stylesheets/application.css +253 -0
  42. metadata +176 -0
@@ -0,0 +1,253 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
8
+
9
+
10
+ body {
11
+ margin: 0;
12
+ margin-bottom: 25px;
13
+ padding: 0;
14
+ background-color: #eee;
15
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
16
+ font-size: 14px;
17
+ line-height: 22px;
18
+ color: #444;
19
+ }
20
+
21
+ h1 {
22
+ font-size: 28px;
23
+ color: #000;
24
+ }
25
+ h2, h1{
26
+ margin: 0 0 10px;
27
+ padding: 0 0 10px;
28
+ border-bottom: 2px solid #ccc;
29
+ float: left;
30
+ width: 100%;
31
+ color: green;
32
+ }
33
+
34
+ a {color: #03c}
35
+ a:hover {
36
+ color: green;
37
+ text-indent: 2px;
38
+ text-decoration: none;
39
+ }
40
+
41
+
42
+ #page {
43
+ background-color: #f0f0f0;
44
+ width: 960px;
45
+ margin: 25px;
46
+ margin-left: auto;
47
+ margin-right: auto;
48
+ }
49
+
50
+ #wrapper{
51
+ }
52
+ #content {
53
+ float: left;
54
+ background-color: white;
55
+ padding: 25px;
56
+ width: 700px;
57
+ }
58
+
59
+ #sidebar {
60
+ float: right;
61
+ width: 175px;
62
+ }
63
+
64
+ #footer {
65
+ clear: both;
66
+ font-size: 0.9em;
67
+ color: #ccc;
68
+ padding: 25px 0;
69
+ }
70
+
71
+
72
+ table{
73
+ width: 100%;
74
+ }
75
+ td.draft, td.sent{
76
+ width: 20px;
77
+ }
78
+ td.action{
79
+ width: 20px;
80
+ padding: 5px;
81
+ font-size: 11px;
82
+ }
83
+ td {
84
+ padding: 5px 10px;
85
+ text-align: left;
86
+ border-bottom: 1px solid #eee;
87
+ }
88
+ td.draft{
89
+ font-size: 11px;
90
+ background: #999;
91
+ color: #eee;
92
+ }
93
+ td.sent{
94
+ color: #fff;
95
+ background: green;
96
+ font-size: 11px;
97
+ }
98
+ table tr:nth-child(2n+2){
99
+ background: #eee;
100
+ }
101
+ #sidebar ul {
102
+ margin: 0;
103
+ padding: 0;
104
+ }
105
+ #sidebar li {
106
+ list-style-type: none;
107
+ }
108
+ #sidebar ul.links li {
109
+ margin-bottom: 5px;
110
+ float: left;
111
+ width: 100%;
112
+ border-bottom: 1px dotted #ccc;
113
+ }
114
+ #sidebar ul.links li a{
115
+ float: left;
116
+ width:100%;
117
+ padding: 3px 0;
118
+ text-decoration: none;
119
+ color: #000;
120
+ font-weight: bold;
121
+ }
122
+ li a em{
123
+ padding-right: 5px;
124
+ font-style: normal;
125
+ }
126
+
127
+ form{
128
+ width: 700px;
129
+ float: left;
130
+ }
131
+ .field{
132
+ margin-bottom: 5px;
133
+ float: left;
134
+ width: 700px;
135
+ }
136
+ .field input, .field textarea{
137
+ border: 1px solid #ccc;
138
+ }
139
+ .field input{
140
+ float: left;
141
+ width: 699px;
142
+ padding: 10px 0;
143
+ text-indent: 10px;
144
+ }
145
+ .field textarea{
146
+ padding: 10px;
147
+ float: left;
148
+ }
149
+ .field .body{
150
+ width: 440px;
151
+ }
152
+ .field .sidebar{
153
+ width: 200px;
154
+ float: right;
155
+ }
156
+
157
+ .clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
158
+ .clearfix:after { clear: both; }
159
+ .clearfix { zoom: 1; }
160
+
161
+ #sidebar ul.links li.buttons, #sidebar ul.links li.button{
162
+ border-bottom: 0;
163
+ padding-bottom: 10px;
164
+ }
165
+ #sidebar ul.links li.buttons a, #sidebar ul.links li.button a{
166
+ float: left;
167
+ width: 42%;
168
+ background: rgba(0,100,0,0.4);
169
+ border-radius: 4px;
170
+ padding: 2px 4px;
171
+ border: 2px solid #fff;
172
+ font-size: 12px;
173
+ color: #fff;
174
+ text-shadow: 1px 1px 1px #555;
175
+ text-align: center;
176
+ }
177
+
178
+ #sidebar ul.links li.buttons a:last-child{
179
+ float: right;
180
+ }
181
+
182
+ #sidebar ul.links li.buttons a:hover, #sidebar ul.links li.button a:hover{
183
+ text-indent: 0;
184
+ border: 2px solid #ccc;
185
+ background: rgba(0, 155, 0, 0.6);
186
+ }
187
+ #sidebar ul.links li.button a{
188
+ width: 100%;
189
+ }
190
+ #sidebar ul li form{
191
+ width: 100%;
192
+ }
193
+ #sidebar ul li ul li{
194
+ font-size: 0.8em;
195
+ }
196
+ #sidebar ul li ul li:last-child{
197
+ border-bottom: 0;
198
+ }
199
+
200
+ #saved{
201
+ float: left;
202
+ margin: 5px 0;
203
+ padding: 0;
204
+ font-size: 0.8em;
205
+ }
206
+ #newsletter{
207
+ width: 660px !important;
208
+ margin: 0 auto !important;
209
+ }
210
+
211
+ #nav{
212
+ list-style: none;
213
+ float:left;
214
+ margin: 0;
215
+ padding: 0;
216
+ }
217
+ #nav li{
218
+ float: left;
219
+ }
220
+ #nav li a{
221
+ padding: 5px 10px;
222
+ float: left;
223
+ margin-right: 3px;
224
+ color: #444;
225
+ font-weight: bold;
226
+ text-decoration: none;
227
+ }
228
+ #nav li a:hover{
229
+ text-indent: 0px;
230
+ background: #ccc;
231
+ }
232
+ #nav li.active a{
233
+ background: #fff;
234
+ }
235
+
236
+ #aloha-loading{
237
+ position: absolute;
238
+ top: 10px;
239
+ right: 10px;
240
+ padding: 5px;
241
+ background: #feb;
242
+ }
243
+ .aloha-sidebar-handle, .aloha-sidebar-bar{
244
+ display: none;
245
+ }
246
+ #flash{
247
+ float: left;
248
+ width: 100%;
249
+ background: #feb;
250
+ text-align: center;
251
+ padding: 10px 0;
252
+ display: none;
253
+ }
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newsly
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.7
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kim Fransman
9
+ - Niklas Lundgren
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-10-06 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: &2157766520 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 3.1.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2157766520
26
+ - !ruby/object:Gem::Dependency
27
+ name: resque
28
+ requirement: &2157766040 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *2157766040
37
+ - !ruby/object:Gem::Dependency
38
+ name: liquid
39
+ requirement: &2157765540 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *2157765540
48
+ - !ruby/object:Gem::Dependency
49
+ name: sanitize
50
+ requirement: &2157765000 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *2157765000
59
+ - !ruby/object:Gem::Dependency
60
+ name: jquery-rails
61
+ requirement: &2157764480 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: *2157764480
70
+ - !ruby/object:Gem::Dependency
71
+ name: premailer
72
+ requirement: &2157763940 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: *2157763940
81
+ - !ruby/object:Gem::Dependency
82
+ name: sqlite3
83
+ requirement: &2157763460 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *2157763460
92
+ - !ruby/object:Gem::Dependency
93
+ name: letter_opener
94
+ requirement: &2157763040 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *2157763040
103
+ description: Manage mailer templates via wysiwyg and liquid. Uses mercury editor for
104
+ now. And send out newsletters.
105
+ email:
106
+ - it@baraspara.se
107
+ executables: []
108
+ extensions: []
109
+ extra_rdoc_files: []
110
+ files:
111
+ - app/controllers/newsly/application_controller.rb
112
+ - app/controllers/newsly/newsletters_controller.rb
113
+ - app/controllers/newsly/snippets_controller.rb
114
+ - app/controllers/newsly/templates_controller.rb
115
+ - app/helpers/newsly/application_helper.rb
116
+ - app/mailers/newsly/mailer.rb
117
+ - app/models/newsly/newsletter.rb
118
+ - app/models/newsly/template.rb
119
+ - app/views/layouts/newsly/application.html.erb
120
+ - app/views/layouts/newsly/mailer.html.erb
121
+ - app/views/newsly/_navigation.html.erb
122
+ - app/views/newsly/newsletters/_newsletter.html.liquid
123
+ - app/views/newsly/newsletters/_sidebar.html.erb
124
+ - app/views/newsly/newsletters/index.html.erb
125
+ - app/views/newsly/newsletters/show.html.erb
126
+ - app/views/newsly/snippets/index.html.erb
127
+ - app/views/newsly/templates/index.html.erb
128
+ - app/views/newsly/templates/show.html.erb
129
+ - app/workers/newsly/newsletter_sender.rb
130
+ - config/routes.rb
131
+ - db/migrate/20110907161522_create_newsly_newsletters.rb
132
+ - db/migrate/20110912110413_create_newsly_templates.rb
133
+ - db/migrate/20110926113235_add_draft_column_to_templates.rb
134
+ - db/migrate/20110927120903_add_text_body_fields.rb
135
+ - db/migrate/20110929142039_remove_text_body_fields.rb
136
+ - lib/newsly/engine.rb
137
+ - lib/newsly/version.rb
138
+ - lib/newsly.rb
139
+ - lib/tasks/newsly_tasks.rake
140
+ - public/javascripts/jquery.js
141
+ - public/javascripts/newsletters.js
142
+ - public/javascripts/rails.js
143
+ - public/javascripts/templates.js
144
+ - public/mercury/javascripts/mercury.min.js
145
+ - public/mercury/javascripts/mercury_dialogs.js
146
+ - public/mercury/javascripts/mercury_loader.js
147
+ - public/mercury/stylesheets/mercury.bundle.css
148
+ - public/stylesheets/application.css
149
+ - MIT-LICENSE
150
+ - Rakefile
151
+ - README.rdoc
152
+ homepage: http://github.com/ZmartGroup/Newsly
153
+ licenses: []
154
+ post_install_message:
155
+ rdoc_options: []
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ! '>='
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubyforge_project:
172
+ rubygems_version: 1.8.8
173
+ signing_key:
174
+ specification_version: 3
175
+ summary: Manage mailer templates via wysiwyg and liquid. And send out newsletters.
176
+ test_files: []