maily_herald-webui 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +5 -0
  4. data/Gemfile +15 -0
  5. data/Gemfile.lock +250 -0
  6. data/Guardfile +23 -0
  7. data/LICENSE +11 -0
  8. data/README.md +62 -0
  9. data/Rakefile +30 -0
  10. data/app/assets/images/maily_herald/.gitkeep +0 -0
  11. data/app/assets/images/maily_herald/webui/arrow-bottom.png +0 -0
  12. data/app/assets/images/maily_herald/webui/arrow-left.png +0 -0
  13. data/app/assets/images/maily_herald/webui/arrow-right.png +0 -0
  14. data/app/assets/images/maily_herald/webui/arrow-top.png +0 -0
  15. data/app/assets/images/maily_herald/webui/logo.svg +38 -0
  16. data/app/assets/images/maily_herald/webui/sprite-dropdown.png +0 -0
  17. data/app/assets/images/maily_herald/webui/sprite-form.png +0 -0
  18. data/app/assets/images/maily_herald/webui/sprite.png +0 -0
  19. data/app/assets/images/maily_herald/webui/user.png +0 -0
  20. data/app/assets/javascripts/maily_herald/webui/application.js +20 -0
  21. data/app/assets/javascripts/maily_herald/webui/dispatches.coffee +58 -0
  22. data/app/assets/javascripts/maily_herald/webui/webui.coffee +209 -0
  23. data/app/assets/stylesheets/maily_herald/webui/application.css +18 -0
  24. data/app/assets/stylesheets/maily_herald/webui/webui-bootstrap.scss +0 -0
  25. data/app/assets/stylesheets/maily_herald/webui/webui.sass +846 -0
  26. data/app/controllers/maily_herald/webui/application_controller.rb +19 -0
  27. data/app/controllers/maily_herald/webui/dashboard_controller.rb +65 -0
  28. data/app/controllers/maily_herald/webui/dispatches_controller.rb +42 -0
  29. data/app/controllers/maily_herald/webui/lists_controller.rb +69 -0
  30. data/app/controllers/maily_herald/webui/logs_controller.rb +20 -0
  31. data/app/controllers/maily_herald/webui/mailings_controller.rb +68 -0
  32. data/app/controllers/maily_herald/webui/one_time_mailings_controller.rb +32 -0
  33. data/app/controllers/maily_herald/webui/periodical_mailings_controller.rb +25 -0
  34. data/app/controllers/maily_herald/webui/resources_controller.rb +144 -0
  35. data/app/controllers/maily_herald/webui/sequence_mailings_controller.rb +43 -0
  36. data/app/controllers/maily_herald/webui/sequences_controller.rb +56 -0
  37. data/app/controllers/maily_herald/webui/sessions_controller.rb +11 -0
  38. data/app/controllers/maily_herald/webui/subscriptions_controller.rb +33 -0
  39. data/app/helpers/maily_herald/webui/application_helper.rb +157 -0
  40. data/app/helpers/maily_herald/webui/dispatches_helper.rb +18 -0
  41. data/app/helpers/maily_herald/webui/logs_helper.rb +37 -0
  42. data/app/helpers/maily_herald/webui/mailings_helper.rb +64 -0
  43. data/app/helpers/maily_herald/webui/sequence_mailings_helper.rb +13 -0
  44. data/app/helpers/maily_herald/webui/sequences_helper.rb +6 -0
  45. data/app/helpers/maily_herald/webui/subscribers_helper.rb +25 -0
  46. data/app/helpers/maily_herald/webui/subscriptions_helper.rb +11 -0
  47. data/app/helpers/maily_herald_helper.rb +151 -0
  48. data/app/views/layouts/maily_herald/webui/application.html.haml +58 -0
  49. data/app/views/layouts/maily_herald/webui/modal.html.haml +6 -0
  50. data/app/views/maily_herald/webui/dashboard/_log.html.haml +20 -0
  51. data/app/views/maily_herald/webui/dashboard/_log_list.html.haml +19 -0
  52. data/app/views/maily_herald/webui/dashboard/_logs.html.haml +15 -0
  53. data/app/views/maily_herald/webui/dashboard/index.html.haml +43 -0
  54. data/app/views/maily_herald/webui/dashboard/index.js.erb +15 -0
  55. data/app/views/maily_herald/webui/dispatches/_entities.html.haml +7 -0
  56. data/app/views/maily_herald/webui/dispatches/_logs.html.haml +4 -0
  57. data/app/views/maily_herald/webui/dispatches/_schedules.html.haml +4 -0
  58. data/app/views/maily_herald/webui/dispatches/_toggle.js.erb +1 -0
  59. data/app/views/maily_herald/webui/lists/_details.html.haml +14 -0
  60. data/app/views/maily_herald/webui/lists/_details_form.html.haml +14 -0
  61. data/app/views/maily_herald/webui/lists/_form.html.haml +1 -0
  62. data/app/views/maily_herald/webui/lists/_header.html.haml +13 -0
  63. data/app/views/maily_herald/webui/lists/_items.html.haml +24 -0
  64. data/app/views/maily_herald/webui/lists/_opt_outs.html.haml +7 -0
  65. data/app/views/maily_herald/webui/lists/_potential_subscribers.html.haml +7 -0
  66. data/app/views/maily_herald/webui/lists/_subscribers.html.haml +7 -0
  67. data/app/views/maily_herald/webui/lists/context_variables.html.haml +15 -0
  68. data/app/views/maily_herald/webui/lists/subscribe.js.erb +10 -0
  69. data/app/views/maily_herald/webui/lists/unsubscribe.js.erb +7 -0
  70. data/app/views/maily_herald/webui/logs/_items.html.haml +34 -0
  71. data/app/views/maily_herald/webui/logs/preview.html.haml +22 -0
  72. data/app/views/maily_herald/webui/mailings-old/_entity.html.haml +17 -0
  73. data/app/views/maily_herald/webui/mailings-old/_entity_list.html.haml +26 -0
  74. data/app/views/maily_herald/webui/mailings-old/_form.html.haml +32 -0
  75. data/app/views/maily_herald/webui/mailings-old/_print.html.haml +123 -0
  76. data/app/views/maily_herald/webui/mailings-old/create.js.erb +1 -0
  77. data/app/views/maily_herald/webui/mailings-old/destroy.js.erb +1 -0
  78. data/app/views/maily_herald/webui/mailings-old/edit.html.haml +16 -0
  79. data/app/views/maily_herald/webui/mailings-old/edit.js.erb +2 -0
  80. data/app/views/maily_herald/webui/mailings-old/index.html.haml +9 -0
  81. data/app/views/maily_herald/webui/mailings-old/index.js.erb +1 -0
  82. data/app/views/maily_herald/webui/mailings-old/new.html.haml +16 -0
  83. data/app/views/maily_herald/webui/mailings-old/new.js.erb +1 -0
  84. data/app/views/maily_herald/webui/mailings-old/preview.js.erb +2 -0
  85. data/app/views/maily_herald/webui/mailings-old/refresh_list.js.erb +1 -0
  86. data/app/views/maily_herald/webui/mailings-old/show.html.haml +135 -0
  87. data/app/views/maily_herald/webui/mailings-old/show.js.erb +1 -0
  88. data/app/views/maily_herald/webui/mailings-old/update.js.erb +1 -0
  89. data/app/views/maily_herald/webui/mailings/_deliver.js.erb +1 -0
  90. data/app/views/maily_herald/webui/mailings/_details.html.haml +65 -0
  91. data/app/views/maily_herald/webui/mailings/_details_form.html.haml +39 -0
  92. data/app/views/maily_herald/webui/mailings/_form.html.haml +1 -0
  93. data/app/views/maily_herald/webui/mailings/_form_periodical.html.haml +2 -0
  94. data/app/views/maily_herald/webui/mailings/_form_sequence.html.haml +1 -0
  95. data/app/views/maily_herald/webui/mailings/_form_template_generic.html.haml +7 -0
  96. data/app/views/maily_herald/webui/mailings/_form_template_mailer.html.haml +4 -0
  97. data/app/views/maily_herald/webui/mailings/_header.html.haml +24 -0
  98. data/app/views/maily_herald/webui/mailings/_list.html.haml +27 -0
  99. data/app/views/maily_herald/webui/mailings/_template.html.haml +16 -0
  100. data/app/views/maily_herald/webui/mailings/_template_form.html.haml +7 -0
  101. data/app/views/maily_herald/webui/mailings/nav_secondary/_index.html.haml +3 -0
  102. data/app/views/maily_herald/webui/mailings/preview.html.haml +13 -0
  103. data/app/views/maily_herald/webui/mailings/update_form.js.erb +33 -0
  104. data/app/views/maily_herald/webui/resources/edit.js.erb +2 -0
  105. data/app/views/maily_herald/webui/resources/index.html.haml +11 -0
  106. data/app/views/maily_herald/webui/resources/index.js.erb +1 -0
  107. data/app/views/maily_herald/webui/resources/new.html.haml +5 -0
  108. data/app/views/maily_herald/webui/resources/show.html.haml +4 -0
  109. data/app/views/maily_herald/webui/resources/show.js.erb +3 -0
  110. data/app/views/maily_herald/webui/resources/update.js.erb +18 -0
  111. data/app/views/maily_herald/webui/sequences-old/_entity.html.haml +11 -0
  112. data/app/views/maily_herald/webui/sequences-old/_entity_list.html.haml +23 -0
  113. data/app/views/maily_herald/webui/sequences-old/_form.html.haml +17 -0
  114. data/app/views/maily_herald/webui/sequences-old/_log.html.haml +7 -0
  115. data/app/views/maily_herald/webui/sequences-old/_logs.html.haml +16 -0
  116. data/app/views/maily_herald/webui/sequences-old/_mailing.html.haml +4 -0
  117. data/app/views/maily_herald/webui/sequences-old/_mailing_list.html.haml +19 -0
  118. data/app/views/maily_herald/webui/sequences-old/edit.html.haml +14 -0
  119. data/app/views/maily_herald/webui/sequences-old/new.html.haml +13 -0
  120. data/app/views/maily_herald/webui/sequences-old/show.html.haml +122 -0
  121. data/app/views/maily_herald/webui/sequences-old/show.js.erb +2 -0
  122. data/app/views/maily_herald/webui/sequences-old/subscription.html.haml +79 -0
  123. data/app/views/maily_herald/webui/sequences/_details.html.haml +39 -0
  124. data/app/views/maily_herald/webui/sequences/_details_form.html.haml +27 -0
  125. data/app/views/maily_herald/webui/sequences/_form.html.haml +1 -0
  126. data/app/views/maily_herald/webui/sequences/_header.html.haml +11 -0
  127. data/app/views/maily_herald/webui/sequences/_list.html.haml +21 -0
  128. data/app/views/maily_herald/webui/sequences/_mailing_list.html.haml +21 -0
  129. data/app/views/maily_herald/webui/sequences/_mailings.html.haml +7 -0
  130. data/app/views/maily_herald/webui/sequences/update_form.js.erb +14 -0
  131. data/app/views/maily_herald/webui/shared/_context_attributes.html.haml +11 -0
  132. data/app/views/maily_herald/webui/subscribers/_item.html.haml +8 -0
  133. data/app/views/maily_herald/webui/subscribers/_list.html.haml +18 -0
  134. data/app/views/maily_herald/webui/subscription_groups/_form.html.haml +5 -0
  135. data/app/views/maily_herald/webui/subscription_groups/_subscription.html.haml +8 -0
  136. data/app/views/maily_herald/webui/subscription_groups/_subscription_list.html.haml +19 -0
  137. data/app/views/maily_herald/webui/subscription_groups/edit.html.haml +16 -0
  138. data/app/views/maily_herald/webui/subscription_groups/index.html.haml +35 -0
  139. data/app/views/maily_herald/webui/subscription_groups/new.html.haml +11 -0
  140. data/app/views/maily_herald/webui/subscription_groups/show.html.haml +42 -0
  141. data/app/views/maily_herald/webui/subscription_groups/show.js.erb +1 -0
  142. data/app/views/maily_herald/webui/subscriptions/show.html.haml +21 -0
  143. data/app/views/maily_herald/webui/subscriptions/toggle.js.erb +1 -0
  144. data/app/views/maily_herald/webui/webui/index.html.haml +136 -0
  145. data/app/views/maily_herald/webui/webui/show.html.haml +0 -0
  146. data/config/database.yml +5 -0
  147. data/config/initializers/smart_listing.rb +77 -0
  148. data/config/locales/en.yml +237 -0
  149. data/config/routes.rb +103 -0
  150. data/config/spring.rb +1 -0
  151. data/lib/maily_herald/webui.rb +15 -0
  152. data/lib/maily_herald/webui/breadcrumbs.rb +50 -0
  153. data/lib/maily_herald/webui/engine.rb +18 -0
  154. data/lib/maily_herald/webui/form_builder.rb +285 -0
  155. data/lib/maily_herald/webui/menu_manager.rb +66 -0
  156. data/lib/maily_herald/webui/version.rb +5 -0
  157. data/maily_herald-webui.gemspec +40 -0
  158. data/script/rails +8 -0
  159. data/spec/dummy/Guardfile +35 -0
  160. data/spec/dummy/README.rdoc +261 -0
  161. data/spec/dummy/Rakefile +7 -0
  162. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  163. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  164. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  165. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  166. data/spec/dummy/app/mailers/.gitkeep +0 -0
  167. data/spec/dummy/app/mailers/test_mailer.rb +11 -0
  168. data/spec/dummy/app/models/.gitkeep +0 -0
  169. data/spec/dummy/app/models/user.rb +7 -0
  170. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  171. data/spec/dummy/app/views/test_mailer/sample_mail.text.erb +1 -0
  172. data/spec/dummy/bin/rails +10 -0
  173. data/spec/dummy/bin/rake +7 -0
  174. data/spec/dummy/bin/rspec +7 -0
  175. data/spec/dummy/bin/spring +18 -0
  176. data/spec/dummy/config.ru +4 -0
  177. data/spec/dummy/config/application.rb +65 -0
  178. data/spec/dummy/config/boot.rb +10 -0
  179. data/spec/dummy/config/database.yml +25 -0
  180. data/spec/dummy/config/environment.rb +5 -0
  181. data/spec/dummy/config/environments/development.rb +38 -0
  182. data/spec/dummy/config/environments/production.rb +67 -0
  183. data/spec/dummy/config/environments/test.rb +37 -0
  184. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  185. data/spec/dummy/config/initializers/inflections.rb +15 -0
  186. data/spec/dummy/config/initializers/maily_herald.rb +101 -0
  187. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  188. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  189. data/spec/dummy/config/initializers/session_store.rb +8 -0
  190. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  191. data/spec/dummy/config/locales/en.yml +5 -0
  192. data/spec/dummy/config/locales/maily_herald.en.yml +28 -0
  193. data/spec/dummy/config/routes.rb +4 -0
  194. data/spec/dummy/db/migrate/20130723074347_create_users.rb +11 -0
  195. data/spec/dummy/db/migrate/20140804152249_create_maily_herald_tables.maily_herald.rb +68 -0
  196. data/spec/dummy/db/migrate/20140804152250_create_lists.maily_herald.rb +33 -0
  197. data/spec/dummy/db/schema.rb +79 -0
  198. data/spec/dummy/lib/assets/.gitkeep +0 -0
  199. data/spec/dummy/lib/tasks/dummy.rb +8 -0
  200. data/spec/dummy/log/.gitkeep +0 -0
  201. data/spec/dummy/public/404.html +26 -0
  202. data/spec/dummy/public/422.html +26 -0
  203. data/spec/dummy/public/500.html +25 -0
  204. data/spec/dummy/public/favicon.ico +0 -0
  205. data/spec/dummy/script/rails +6 -0
  206. data/spec/spec_helper.rb +46 -0
  207. data/vendor/assets/fonts/maily_herald/webui/FontAwesome.otf +0 -0
  208. data/vendor/assets/fonts/maily_herald/webui/Nexa_Free_Bold-webfont.eot +0 -0
  209. data/vendor/assets/fonts/maily_herald/webui/Nexa_Free_Bold-webfont.svg +1816 -0
  210. data/vendor/assets/fonts/maily_herald/webui/Nexa_Free_Bold-webfont.ttf +0 -0
  211. data/vendor/assets/fonts/maily_herald/webui/Nexa_Free_Bold-webfont.woff +0 -0
  212. data/vendor/assets/fonts/maily_herald/webui/fontawesome-webfont.eot +0 -0
  213. data/vendor/assets/fonts/maily_herald/webui/fontawesome-webfont.svg +520 -0
  214. data/vendor/assets/fonts/maily_herald/webui/fontawesome-webfont.ttf +0 -0
  215. data/vendor/assets/fonts/maily_herald/webui/fontawesome-webfont.woff +0 -0
  216. data/vendor/assets/fonts/maily_herald/webui/opensans-bold-webfont.eot +0 -0
  217. data/vendor/assets/fonts/maily_herald/webui/opensans-bold-webfont.svg +1825 -0
  218. data/vendor/assets/fonts/maily_herald/webui/opensans-bold-webfont.ttf +0 -0
  219. data/vendor/assets/fonts/maily_herald/webui/opensans-bold-webfont.woff +0 -0
  220. data/vendor/assets/fonts/maily_herald/webui/opensans-italic-webfont.eot +0 -0
  221. data/vendor/assets/fonts/maily_herald/webui/opensans-italic-webfont.svg +1825 -0
  222. data/vendor/assets/fonts/maily_herald/webui/opensans-italic-webfont.ttf +0 -0
  223. data/vendor/assets/fonts/maily_herald/webui/opensans-italic-webfont.woff +0 -0
  224. data/vendor/assets/fonts/maily_herald/webui/opensans-regular-webfont.eot +0 -0
  225. data/vendor/assets/fonts/maily_herald/webui/opensans-regular-webfont.svg +1825 -0
  226. data/vendor/assets/fonts/maily_herald/webui/opensans-regular-webfont.ttf +0 -0
  227. data/vendor/assets/fonts/maily_herald/webui/opensans-regular-webfont.woff +0 -0
  228. data/vendor/assets/javascripts/maily_herald/webui/bootstrap-datepicker.js +1681 -0
  229. data/vendor/assets/javascripts/maily_herald/webui/bootstrap.min.js +6 -0
  230. data/vendor/assets/javascripts/maily_herald/webui/d3.v3.js +5 -0
  231. data/vendor/assets/javascripts/maily_herald/webui/rickshaw.js +4067 -0
  232. data/vendor/assets/stylesheets/maily_herald/webui/bootstrap-datepicker.css +786 -0
  233. data/vendor/assets/stylesheets/maily_herald/webui/bootstrap.min.css +5 -0
  234. data/vendor/assets/stylesheets/maily_herald/webui/font-awesome.min.css +4 -0
  235. data/vendor/assets/stylesheets/maily_herald/webui/rickshaw.css +355 -0
  236. metadata +564 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzM3YzA0ZmZlY2JhZTQ1OGU0MjhjZDM3MTI0YTgzY2NkMzZkMDcwNg==
5
+ data.tar.gz: !binary |-
6
+ NTZkYTAxZjA2ODE2ZGM4MWE2ZTVmNzM4OWQyNmI3ZDdlZDk4NjFjNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ODBmZmE2YjUzNDQyMzFkNGQyMjgxZTBmOTA0ZjU5MDY1YjMwNzIxOTM1NmJi
10
+ NjcyODcyYWRhMWI0MjQzODBkY2Q0Yjc3ODRiYmM2ODY2ZDI1ZWM2MDUyYmQ4
11
+ MTUzMWViNzFhNWYyYzVlMDdhYmMxNWFhMWI2NTViZDU4YzZlMTA=
12
+ data.tar.gz: !binary |-
13
+ OTkzM2Q5ZjVhYmUwOGQ5Yjk3ZmQ5YWM5MDlmYWNjNzNlODFmNThkMzlkNGVh
14
+ N2VmMjNjZTgwM2JiMmI3MWQwYjQwYjU2MDg5MDljNjIxOWVkYThkZDdjNzUx
15
+ MjkwZWE4OTkwOTQyYzYxY2JlMjJkNDJiODZhMzUzMWRiYjlkOGI=
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ spec/dummy/db/*.sqlite3
5
+ spec/dummy/log/*.log
6
+ spec/dummy/tmp/
7
+ spec/dummy/.sass-cache
8
+ coverage/*
9
+ dump.rdb
10
+ tmp
11
+ *.gem
12
+
13
+ *.swo
14
+ *.swp
15
+ *.swn
16
+ *.rvmrc
17
+ *.ruby-gemset
18
+ *.ruby-version
data/.rspec ADDED
@@ -0,0 +1,5 @@
1
+ --color
2
+ #--format=documentation
3
+ --backtrace
4
+ --profile
5
+ --order random
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ # jquery-rails is used by the dummy application
6
+ gem "jquery-rails"
7
+
8
+ gem 'debugger'
9
+
10
+ gem "maily_herald", path: "../maily_herald"
11
+ gem "smart_listing", github: "sology/smart_listing"
12
+
13
+ group :development do
14
+ gem "forgery"
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,250 @@
1
+ GIT
2
+ remote: git://github.com/sology/smart_listing.git
3
+ revision: 89e24b62d2c4e8b436f00968d60f86719342101f
4
+ specs:
5
+ smart_listing (1.0.0)
6
+ coffee-rails
7
+ kaminari (~> 0.16.1)
8
+ rails (>= 3.2)
9
+
10
+ PATH
11
+ remote: .
12
+ specs:
13
+ maily_herald-webui (0.0.1)
14
+ coffee-rails
15
+ haml
16
+ maily_herald
17
+ sass-rails
18
+ smart_listing (~> 1.0.0)
19
+
20
+ PATH
21
+ remote: ../maily_herald
22
+ specs:
23
+ maily_herald (0.0.1)
24
+ liquid (~> 2.6.1)
25
+ rails (> 3.2)
26
+ sidekiq (~> 2.17.8)
27
+
28
+ GEM
29
+ remote: http://rubygems.org/
30
+ specs:
31
+ actionmailer (3.2.18)
32
+ actionpack (= 3.2.18)
33
+ mail (~> 2.5.4)
34
+ actionpack (3.2.18)
35
+ activemodel (= 3.2.18)
36
+ activesupport (= 3.2.18)
37
+ builder (~> 3.0.0)
38
+ erubis (~> 2.7.0)
39
+ journey (~> 1.0.4)
40
+ rack (~> 1.4.5)
41
+ rack-cache (~> 1.2)
42
+ rack-test (~> 0.6.1)
43
+ sprockets (~> 2.2.1)
44
+ activemodel (3.2.18)
45
+ activesupport (= 3.2.18)
46
+ builder (~> 3.0.0)
47
+ activerecord (3.2.18)
48
+ activemodel (= 3.2.18)
49
+ activesupport (= 3.2.18)
50
+ arel (~> 3.0.2)
51
+ tzinfo (~> 0.3.29)
52
+ activeresource (3.2.18)
53
+ activemodel (= 3.2.18)
54
+ activesupport (= 3.2.18)
55
+ activesupport (3.2.18)
56
+ i18n (~> 0.6, >= 0.6.4)
57
+ multi_json (~> 1.0)
58
+ arel (3.0.3)
59
+ builder (3.0.4)
60
+ celluloid (0.15.2)
61
+ timers (~> 1.1.0)
62
+ coderay (1.1.0)
63
+ coffee-rails (3.2.2)
64
+ coffee-script (>= 2.2.0)
65
+ railties (~> 3.2.0)
66
+ coffee-script (2.3.0)
67
+ coffee-script-source
68
+ execjs
69
+ coffee-script-source (1.7.1)
70
+ columnize (0.8.9)
71
+ connection_pool (2.0.0)
72
+ daemons (1.1.9)
73
+ database_cleaner (1.3.0)
74
+ debugger (1.6.8)
75
+ columnize (>= 0.3.1)
76
+ debugger-linecache (~> 1.2.0)
77
+ debugger-ruby_core_source (~> 1.3.5)
78
+ debugger-linecache (1.2.0)
79
+ debugger-ruby_core_source (1.3.5)
80
+ diff-lcs (1.2.5)
81
+ docile (1.1.3)
82
+ erubis (2.7.0)
83
+ eventmachine (1.0.3)
84
+ execjs (2.2.1)
85
+ factory_girl (4.4.0)
86
+ activesupport (>= 3.0.0)
87
+ factory_girl_rails (4.4.1)
88
+ factory_girl (~> 4.4.0)
89
+ railties (>= 3.0.0)
90
+ ffi (1.9.3)
91
+ forgery (0.6.0)
92
+ formatador (0.2.5)
93
+ guard (2.6.1)
94
+ formatador (>= 0.2.4)
95
+ listen (~> 2.7)
96
+ lumberjack (~> 1.0)
97
+ pry (>= 0.9.12)
98
+ thor (>= 0.18.1)
99
+ guard-rspec (4.2.10)
100
+ guard (~> 2.1)
101
+ rspec (>= 2.14, < 4.0)
102
+ haml (4.0.5)
103
+ tilt
104
+ hike (1.2.3)
105
+ i18n (0.6.9)
106
+ journey (1.0.4)
107
+ jquery-rails (3.1.0)
108
+ railties (>= 3.0, < 5.0)
109
+ thor (>= 0.14, < 2.0)
110
+ json (1.8.1)
111
+ kaminari (0.16.1)
112
+ actionpack (>= 3.0.0)
113
+ activesupport (>= 3.0.0)
114
+ libv8 (3.11.8.17)
115
+ liquid (2.6.1)
116
+ listen (2.7.7)
117
+ celluloid (>= 0.15.2)
118
+ rb-fsevent (>= 0.9.3)
119
+ rb-inotify (>= 0.9)
120
+ lumberjack (1.0.6)
121
+ mail (2.5.4)
122
+ mime-types (~> 1.16)
123
+ treetop (~> 1.4.8)
124
+ method_source (0.8.2)
125
+ mime-types (1.25.1)
126
+ multi_json (1.10.1)
127
+ polyglot (0.3.5)
128
+ pry (0.10.0)
129
+ coderay (~> 1.1.0)
130
+ method_source (~> 0.8.1)
131
+ slop (~> 3.4)
132
+ rack (1.4.5)
133
+ rack-cache (1.2)
134
+ rack (>= 0.4)
135
+ rack-ssl (1.3.4)
136
+ rack
137
+ rack-test (0.6.2)
138
+ rack (>= 1.0)
139
+ rails (3.2.18)
140
+ actionmailer (= 3.2.18)
141
+ actionpack (= 3.2.18)
142
+ activerecord (= 3.2.18)
143
+ activeresource (= 3.2.18)
144
+ activesupport (= 3.2.18)
145
+ bundler (~> 1.0)
146
+ railties (= 3.2.18)
147
+ railties (3.2.18)
148
+ actionpack (= 3.2.18)
149
+ activesupport (= 3.2.18)
150
+ rack-ssl (~> 1.3.2)
151
+ rake (>= 0.8.7)
152
+ rdoc (~> 3.4)
153
+ thor (>= 0.14.6, < 2.0)
154
+ rake (10.3.2)
155
+ rb-fsevent (0.9.4)
156
+ rb-inotify (0.9.5)
157
+ ffi (>= 0.5.0)
158
+ rdoc (3.12.2)
159
+ json (~> 1.4)
160
+ redis (3.1.0)
161
+ redis-namespace (1.5.1)
162
+ redis (~> 3.0, >= 3.0.4)
163
+ ref (1.0.5)
164
+ rspec (3.0.0)
165
+ rspec-core (~> 3.0.0)
166
+ rspec-expectations (~> 3.0.0)
167
+ rspec-mocks (~> 3.0.0)
168
+ rspec-core (3.0.0)
169
+ rspec-support (~> 3.0.0)
170
+ rspec-expectations (3.0.0)
171
+ diff-lcs (>= 1.2.0, < 2.0)
172
+ rspec-support (~> 3.0.0)
173
+ rspec-mocks (3.0.1)
174
+ rspec-support (~> 3.0.0)
175
+ rspec-rails (3.0.1)
176
+ actionpack (>= 3.0)
177
+ activesupport (>= 3.0)
178
+ railties (>= 3.0)
179
+ rspec-core (~> 3.0.0)
180
+ rspec-expectations (~> 3.0.0)
181
+ rspec-mocks (~> 3.0.0)
182
+ rspec-support (~> 3.0.0)
183
+ rspec-support (3.0.0)
184
+ sass (3.3.14)
185
+ sass-rails (3.2.6)
186
+ railties (~> 3.2.0)
187
+ sass (>= 3.1.10)
188
+ tilt (~> 1.3)
189
+ sidekiq (2.17.8)
190
+ celluloid (= 0.15.2)
191
+ connection_pool (~> 2.0)
192
+ json
193
+ redis (~> 3.1)
194
+ redis-namespace (~> 1.3)
195
+ simplecov (0.8.2)
196
+ docile (~> 1.1.0)
197
+ multi_json
198
+ simplecov-html (~> 0.8.0)
199
+ simplecov-html (0.8.0)
200
+ slop (3.5.0)
201
+ spring (1.1.3)
202
+ spring-commands-rspec (1.0.2)
203
+ spring (>= 0.9.1)
204
+ sprockets (2.2.2)
205
+ hike (~> 1.2)
206
+ multi_json (~> 1.0)
207
+ rack (~> 1.0)
208
+ tilt (~> 1.1, != 1.3.0)
209
+ sqlite3 (1.3.9)
210
+ therubyracer (0.11.4)
211
+ libv8 (~> 3.11.8.12)
212
+ ref
213
+ thin (1.6.2)
214
+ daemons (>= 1.0.9)
215
+ eventmachine (>= 1.0.0)
216
+ rack (>= 1.0.0)
217
+ thor (0.19.1)
218
+ tilt (1.4.1)
219
+ timecop (0.7.1)
220
+ timers (1.1.0)
221
+ treetop (1.4.15)
222
+ polyglot
223
+ polyglot (>= 0.3.1)
224
+ tzinfo (0.3.40)
225
+ uglifier (2.4.0)
226
+ execjs (>= 0.3.0)
227
+ json (>= 1.8.0)
228
+
229
+ PLATFORMS
230
+ ruby
231
+
232
+ DEPENDENCIES
233
+ database_cleaner
234
+ debugger
235
+ factory_girl_rails
236
+ forgery
237
+ guard
238
+ guard-rspec
239
+ jquery-rails
240
+ maily_herald!
241
+ maily_herald-webui!
242
+ rspec-rails
243
+ simplecov
244
+ smart_listing!
245
+ spring-commands-rspec
246
+ sqlite3
247
+ therubyracer
248
+ thin
249
+ timecop
250
+ uglifier
data/Guardfile ADDED
@@ -0,0 +1,23 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :rspec, :version => 2, :cmd => "spring rspec" do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+
9
+ # Rails example
10
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14
+ watch('config/routes.rb') { "spec/routing" }
15
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
16
+
17
+ # Capybara features specs
18
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19
+
20
+ # Turnip features and steps
21
+ watch(%r{^spec/acceptance/(.+)\.feature$})
22
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23
+ end
data/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ MailyHerald WebUI - Web interface for MailyHerald - Ruby on Rails
2
+ email marketing solution.
3
+
4
+ Copyright (c) 2013-2015 Sology (http://www.sology.eu)
5
+ with initial development sponsored by
6
+ Smart Language Apps Ltd <http://www.smartlanguageapps.com>.
7
+
8
+ MailyHerald WebUI is an Open Source project licensed under the
9
+ terms of the LGPLv3 license.
10
+ Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
11
+ for license text.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # MailyHerald Web UI
2
+
3
+ Web interface for Ruby on Rails email marketing solution - [MailyHerald](https://github.com/Sology/maily_herald).
4
+
5
+ ## Requirements
6
+
7
+ Both Ruby on Rails 3.2 and 4 are supported.
8
+
9
+ ## Installation
10
+
11
+ Simply just
12
+
13
+ gem install maily_herald-webui
14
+
15
+ or put in your Gemfile
16
+
17
+ gem "maily_herald-webui"
18
+
19
+ ## Usage
20
+
21
+ Mount WebUI in your application:
22
+
23
+ ```ruby
24
+ # config/routes.rb
25
+ mount MailyHerald::Webui::Engine => "/maily_webui"
26
+ ```
27
+
28
+ ## Customizing
29
+
30
+ ### Restricting access
31
+
32
+ The simplest way to restrict access to Maily WebUI is to use Rails routing constraints:
33
+
34
+ ```ruby
35
+ # config/routes.rb
36
+ mount MailyHerald::Webui::Engine => "/maily_webui", :constraints => MailyAccessConstraint.new
37
+ ```
38
+
39
+ Sample `MailyAccessConstraint` implementation might look like this:
40
+
41
+ ```ruby
42
+ class MailyAccessConstraint
43
+ def matches?(request)
44
+ return false unless request.session[:user_id]
45
+ user = User.find request.session[:user_id]
46
+ return user && user.admin?
47
+ end
48
+ end
49
+ ```
50
+
51
+ ## More Information
52
+
53
+ * [Home Page](http://www.mailyherald.org)
54
+ * [API Docs](http://www.rubydoc.info/gems/maily_herald)
55
+ * Showcase (_coming soon_)
56
+ * [Sample application](https://github.com/Sology/maily_testapp)
57
+
58
+ For bug reports or feature requests see the [issues on Github](https://github.com/Sology/maily_herald-webui/issues).
59
+
60
+ ## License
61
+
62
+ LGPLv3 License. Copyright 2013-2015 Sology. http://www.sology.eu
data/Rakefile ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ require 'thor'
16
+
17
+ RDoc::Task.new(:rdoc) do |rdoc|
18
+ rdoc.rdoc_dir = 'rdoc'
19
+ rdoc.title = 'MailyHerald'
20
+ rdoc.options << '--line-numbers'
21
+ rdoc.rdoc_files.include('README.rdoc')
22
+ rdoc.rdoc_files.include('lib/**/*.rb')
23
+ end
24
+
25
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
26
+ load 'rails/tasks/engine.rake'
27
+
28
+ load "sprockets/assets.rake"
29
+
30
+ Bundler::GemHelper.install_tasks
File without changes