raffle_v1 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +6 -14
  2. data/README.md +11 -2
  3. data/app/assets/images/raffle_v1/game.png +0 -0
  4. data/app/assets/images/raffle_v1/gift.png +0 -0
  5. data/app/assets/images/raffle_v1/lifesaver.png +0 -0
  6. data/app/assets/images/raffle_v1/person01.jpg +0 -0
  7. data/app/assets/javascripts/raffle_v1/application.js +2 -1
  8. data/app/assets/javascripts/raffle_v1/home.js.coffee +3 -0
  9. data/app/assets/javascripts/raffle_v1/locales.js.coffee +3 -0
  10. data/app/assets/javascripts/raffle_v1/page_layouts.js.coffee +3 -0
  11. data/app/assets/javascripts/raffle_v1/pages.js.coffee +3 -0
  12. data/app/assets/javascripts/raffle_v1/programs.js.coffee +3 -0
  13. data/app/assets/javascripts/raffle_v1/roles.js.coffee +3 -0
  14. data/app/assets/javascripts/raffle_v1/stylesheets.js.coffee +3 -0
  15. data/app/assets/javascripts/raffle_v1/terms_and_conditions.js.coffee +3 -0
  16. data/app/assets/javascripts/raffle_v1/terms_of_conditions.js.coffee +3 -0
  17. data/app/assets/javascripts/raffle_v1/translation_keys.js.coffee +3 -0
  18. data/app/assets/javascripts/raffle_v1/translation_objects.js.coffee +3 -0
  19. data/app/assets/javascripts/raffle_v1/user.js.coffee +3 -0
  20. data/app/assets/javascripts/raffle_v1/versions.js.coffee +3 -0
  21. data/app/assets/stylesheets/raffle_v1/TableTools.css +264 -0
  22. data/app/assets/stylesheets/raffle_v1/TableTools.css.scss +264 -0
  23. data/app/assets/stylesheets/raffle_v1/TableTools_JUI.css +182 -0
  24. data/app/assets/stylesheets/raffle_v1/TableTools_JUI.css.scss +183 -0
  25. data/app/assets/stylesheets/raffle_v1/_custom.css.scss +3310 -0
  26. data/app/assets/stylesheets/raffle_v1/_variable.scss +122 -0
  27. data/app/assets/stylesheets/raffle_v1/_variable_defaults.scss +83 -0
  28. data/app/assets/stylesheets/raffle_v1/application.css.scss +34 -0
  29. data/app/assets/stylesheets/raffle_v1/application.css.scss.erb +32 -0
  30. data/app/assets/stylesheets/raffle_v1/bootstrap-responsive.css +570 -0
  31. data/app/assets/stylesheets/raffle_v1/bootstrap-responsive.css.scss +570 -0
  32. data/app/assets/stylesheets/raffle_v1/bootstrap.css +4226 -0
  33. data/app/assets/stylesheets/raffle_v1/bootstrap.css.scss +4226 -0
  34. data/app/assets/stylesheets/raffle_v1/colorbox.css +88 -0
  35. data/app/assets/stylesheets/raffle_v1/colorbox.css.scss +88 -0
  36. data/app/assets/stylesheets/raffle_v1/grid.css.scss +258 -0
  37. data/app/assets/stylesheets/raffle_v1/hierarchy.css.scss +16 -0
  38. data/app/assets/stylesheets/raffle_v1/home.css.scss +18 -0
  39. data/app/assets/stylesheets/raffle_v1/jquery.dataTables.css +83 -0
  40. data/app/assets/stylesheets/raffle_v1/jquery.dataTables.css.scss +83 -0
  41. data/app/assets/stylesheets/raffle_v1/jquery.jcarousel.css +206 -0
  42. data/app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css +57 -0
  43. data/app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css.scss +57 -0
  44. data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css +38 -0
  45. data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css.scss +38 -0
  46. data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css +21 -0
  47. data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css.scss +21 -0
  48. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  49. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  50. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  51. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  52. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  53. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  54. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  55. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  56. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  57. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  58. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  59. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  60. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  61. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  62. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css +563 -0
  63. data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css.scss +563 -0
  64. data/app/assets/stylesheets/raffle_v1/locales.css.scss +3 -0
  65. data/app/assets/stylesheets/raffle_v1/page_layouts.css.scss +3 -0
  66. data/app/assets/stylesheets/raffle_v1/pages.css.scss +3 -0
  67. data/app/assets/stylesheets/raffle_v1/programs.css.scss +3 -0
  68. data/app/assets/stylesheets/raffle_v1/reset.css.scss +96 -0
  69. data/app/assets/stylesheets/raffle_v1/roles.css.scss +3 -0
  70. data/app/assets/stylesheets/raffle_v1/scaffolds.css.scss +42 -0
  71. data/app/assets/stylesheets/raffle_v1/stylesheets.css.scss +3 -0
  72. data/app/assets/stylesheets/raffle_v1/terms_and_conditions.css.scss +3 -0
  73. data/app/assets/stylesheets/raffle_v1/terms_of_conditions.css.scss +4 -0
  74. data/app/assets/stylesheets/raffle_v1/translation_keys.css.scss +3 -0
  75. data/app/assets/stylesheets/raffle_v1/translation_objects.css.scss +3 -0
  76. data/app/assets/stylesheets/raffle_v1/ui.multiselect.css +33 -0
  77. data/app/assets/stylesheets/raffle_v1/ui.multiselect.css.scss +33 -0
  78. data/app/assets/stylesheets/raffle_v1/user.css.scss +3 -0
  79. data/app/assets/stylesheets/raffle_v1/versions.css.scss +3 -0
  80. data/app/controllers/raffle_v1/application_controller.rb +80 -0
  81. data/app/controllers/raffle_v1/home_controller.rb +15 -0
  82. data/app/controllers/raffle_v1/locales_controller.rb +87 -0
  83. data/app/controllers/raffle_v1/page_layouts_controller.rb +87 -0
  84. data/app/controllers/raffle_v1/pages_controller.rb +180 -0
  85. data/app/controllers/raffle_v1/programs_controller.rb +140 -0
  86. data/app/controllers/raffle_v1/roles_controller.rb +87 -0
  87. data/app/controllers/raffle_v1/stylesheets_controller.rb +19 -0
  88. data/app/controllers/raffle_v1/terms_and_conditions_controller.rb +118 -0
  89. data/app/controllers/raffle_v1/translation_keys_controller.rb +119 -0
  90. data/app/controllers/raffle_v1/translation_objects_controller.rb +87 -0
  91. data/app/controllers/raffle_v1/user_controller.rb +138 -0
  92. data/app/controllers/raffle_v1/versions_controller.rb +15 -0
  93. data/app/models/raffle_v1/ability.rb +30 -0
  94. data/app/models/raffle_v1/admin.rb +35 -0
  95. data/app/models/raffle_v1/admin_ability.rb +28 -0
  96. data/app/models/raffle_v1/locale.rb +29 -0
  97. data/app/models/raffle_v1/page.rb +26 -0
  98. data/app/models/raffle_v1/page_layout.rb +6 -0
  99. data/app/models/raffle_v1/program.rb +84 -0
  100. data/app/models/raffle_v1/program_locale.rb +11 -0
  101. data/app/models/raffle_v1/program_setting.rb +5 -0
  102. data/app/models/raffle_v1/role.rb +5 -0
  103. data/app/models/raffle_v1/roles_users.rb +5 -0
  104. data/app/models/raffle_v1/stylesheet.rb +9 -0
  105. data/app/models/raffle_v1/terms_and_condition.rb +17 -0
  106. data/app/models/raffle_v1/translation.rb +29 -0
  107. data/app/models/raffle_v1/translation_key.rb +35 -0
  108. data/app/models/raffle_v1/translation_object.rb +11 -0
  109. data/app/models/raffle_v1/user.rb +108 -0
  110. data/config/rafflev1.rb +6 -0
  111. data/db/migrate/20130123214645_devise_create_users.rb +49 -0
  112. data/db/migrate/20130124004626_devise_create_admins.rb +49 -0
  113. data/db/migrate/20130124231541_create_versions.rb +18 -0
  114. data/db/migrate/20130127235347_create_programs.rb +9 -0
  115. data/db/migrate/20130129155515_add_domain_fields_to_programs.rb +6 -0
  116. data/db/migrate/20130129160949_create_terms_and_conditions.rb +18 -0
  117. data/db/migrate/20130129183112_add_program_to_users.rb +5 -0
  118. data/db/migrate/20130129204204_add_username_to_users.rb +6 -0
  119. data/db/migrate/20130129211205_create_roles.rb +9 -0
  120. data/db/migrate/20130129212302_create_roles_users.rb +12 -0
  121. data/db/migrate/20130130013315_create_locales.rb +11 -0
  122. data/db/migrate/20130130154500_create_program_locales.rb +8 -0
  123. data/db/migrate/20130130223342_add_settings_to_users.rb +5 -0
  124. data/db/migrate/20130130223609_add_locale_available_to_program.rb +5 -0
  125. data/db/migrate/20130130223810_add_locales_to_versions.rb +5 -0
  126. data/db/migrate/20130130224141_add_locale_name_to_program.rb +5 -0
  127. data/db/migrate/20130130224327_add_admin_type_to_admins.rb +5 -0
  128. data/db/migrate/20130130225223_add_deleted_at_to_models.rb +9 -0
  129. data/db/migrate/20130130230516_create_translations.rb +13 -0
  130. data/db/migrate/20130131005653_add_timeout_field_to_program.rb +7 -0
  131. data/db/migrate/20130131144951_create_stylesheets.rb +14 -0
  132. data/db/migrate/20130202132442_add_tos_to_program.rb +5 -0
  133. data/db/migrate/20130202133149_add_programid_to_terms.rb +23 -0
  134. data/db/migrate/20130202193646_add_akm_to_terms_and_conditions.rb +5 -0
  135. data/db/migrate/20130203035054_create_translation_keys.rb +10 -0
  136. data/db/migrate/20130203214314_create_program_settings.rb +9 -0
  137. data/db/migrate/20130204025824_add_translationkey_to_translation.rb +5 -0
  138. data/db/migrate/20130204030555_create_translation_objects.rb +39 -0
  139. data/db/migrate/20130205203152_create_pages.rb +25 -0
  140. data/db/migrate/20130208042652_add_fields_to_page.rb +6 -0
  141. data/db/migrate/20130208043123_create_page_layouts.rb +12 -0
  142. data/db/migrate/20130208051925_add_statusitem_to_page.rb +5 -0
  143. data/db/migrate/20130306012135_add_fields_to_user.rb +40 -0
  144. data/db/migrate/20130306162357_change_bad_fields_on_user.rb +11 -0
  145. data/db/migrate/20130306163554_add_password_created_at_to_user.rb +6 -0
  146. data/db/migrate/20130306165455_add_confirmable_to_user.rb +14 -0
  147. data/db/migrate/20130306211253_add_username_index_to_user.rb +41 -0
  148. data/db/migrate/20130313011833_add_field_to_user.rb +5 -0
  149. data/lib/database_cleaner-0.7.2/Gemfile.lock +163 -0
  150. data/lib/database_cleaner-0.7.2/History.txt +209 -0
  151. data/lib/database_cleaner-0.7.2/LICENSE +20 -0
  152. data/lib/database_cleaner-0.7.2/README.textile +223 -0
  153. data/lib/database_cleaner-0.7.2/Rakefile +65 -0
  154. data/lib/database_cleaner-0.7.2/TODO +3 -0
  155. data/lib/database_cleaner-0.7.2/VERSION.yml +5 -0
  156. data/lib/database_cleaner-0.7.2/cucumber.yml +1 -0
  157. data/lib/database_cleaner-0.7.2/examples/Gemfile +49 -0
  158. data/lib/database_cleaner-0.7.2/examples/Gemfile.lock +163 -0
  159. data/lib/database_cleaner-0.7.2/examples/config/database.yml.example +8 -0
  160. data/{test/dummy/db/test.sqlite3 → lib/database_cleaner-0.7.2/examples/db/sqlite_databases_go_here} +0 -0
  161. data/lib/database_cleaner-0.7.2/examples/features/example.feature +11 -0
  162. data/lib/database_cleaner-0.7.2/examples/features/example_multiple_db.feature +23 -0
  163. data/lib/database_cleaner-0.7.2/examples/features/example_multiple_orm.feature +22 -0
  164. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/activerecord_steps.rb +31 -0
  165. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/couchpotato_steps.rb +31 -0
  166. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/datamapper_steps.rb +37 -0
  167. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/mongoid_steps.rb +23 -0
  168. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb +31 -0
  169. data/lib/database_cleaner-0.7.2/examples/features/step_definitions/translation_steps.rb +55 -0
  170. data/lib/database_cleaner-0.7.2/examples/features/support/env.rb +62 -0
  171. data/lib/database_cleaner-0.7.2/examples/lib/activerecord_models.rb +41 -0
  172. data/lib/database_cleaner-0.7.2/examples/lib/couchpotato_models.rb +61 -0
  173. data/lib/database_cleaner-0.7.2/examples/lib/datamapper_models.rb +50 -0
  174. data/lib/database_cleaner-0.7.2/examples/lib/mongoid_models.rb +49 -0
  175. data/lib/database_cleaner-0.7.2/examples/lib/mongomapper_models.rb +51 -0
  176. data/lib/database_cleaner-0.7.2/features/cleaning.feature +22 -0
  177. data/lib/database_cleaner-0.7.2/features/cleaning_default_strategy.feature +19 -0
  178. data/lib/database_cleaner-0.7.2/features/cleaning_multiple_dbs.feature +21 -0
  179. data/lib/database_cleaner-0.7.2/features/cleaning_multiple_orms.feature +29 -0
  180. data/lib/database_cleaner-0.7.2/features/step_definitions/database_cleaner_steps.rb +32 -0
  181. data/lib/database_cleaner-0.7.2/features/support/env.rb +7 -0
  182. data/lib/database_cleaner-0.7.2/features/support/feature_runner.rb +39 -0
  183. data/lib/database_cleaner-0.7.2/lib/database_cleaner.rb +3 -0
  184. data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/base.rb +53 -0
  185. data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/deletion.rb +69 -0
  186. data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/transaction.rb +28 -0
  187. data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/truncation.rb +151 -0
  188. data/lib/database_cleaner-0.7.2/lib/database_cleaner/base.rb +138 -0
  189. data/lib/database_cleaner-0.7.2/lib/database_cleaner/configuration.rb +94 -0
  190. data/lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/base.rb +7 -0
  191. data/lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/truncation.rb +28 -0
  192. data/lib/database_cleaner-0.7.2/lib/database_cleaner/cucumber.rb +11 -0
  193. data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/base.rb +21 -0
  194. data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/transaction.rb +26 -0
  195. data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/truncation.rb +175 -0
  196. data/lib/database_cleaner-0.7.2/lib/database_cleaner/generic/base.rb +20 -0
  197. data/lib/database_cleaner-0.7.2/lib/database_cleaner/generic/truncation.rb +37 -0
  198. data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo/truncation.rb +22 -0
  199. data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/base.rb +20 -0
  200. data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/truncation.rb +19 -0
  201. data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/base.rb +20 -0
  202. data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/truncation.rb +20 -0
  203. data/lib/database_cleaner-0.7.2/lib/database_cleaner/null_strategy.rb +15 -0
  204. data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/base.rb +22 -0
  205. data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/transaction.rb +25 -0
  206. data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/truncation.rb +50 -0
  207. data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/base_spec.rb +144 -0
  208. data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/transaction_spec.rb +77 -0
  209. data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/truncation_spec.rb +76 -0
  210. data/lib/database_cleaner-0.7.2/spec/database_cleaner/base_spec.rb +493 -0
  211. data/lib/database_cleaner-0.7.2/spec/database_cleaner/configuration_spec.rb +294 -0
  212. data/lib/database_cleaner-0.7.2/spec/database_cleaner/couch_potato/truncation_spec.rb +41 -0
  213. data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/base_spec.rb +30 -0
  214. data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/transaction_spec.rb +23 -0
  215. data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/truncation_spec.rb +11 -0
  216. data/lib/database_cleaner-0.7.2/spec/database_cleaner/generic/base_spec.rb +22 -0
  217. data/lib/database_cleaner-0.7.2/spec/database_cleaner/generic/truncation_spec.rb +78 -0
  218. data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/base_spec.rb +33 -0
  219. data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/mongo_examples.rb +8 -0
  220. data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/truncation_spec.rb +74 -0
  221. data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb +32 -0
  222. data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/transaction_spec.rb +21 -0
  223. data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/truncation_spec.rb +13 -0
  224. data/lib/database_cleaner-0.7.2/spec/database_cleaner/shared_strategy_spec.rb +13 -0
  225. data/lib/database_cleaner-0.7.2/spec/rcov.opts +1 -0
  226. data/lib/database_cleaner-0.7.2/spec/spec.opts +7 -0
  227. data/lib/database_cleaner-0.7.2/spec/spec_helper.rb +19 -0
  228. data/lib/generators/raffle_v1/install/USAGE +8 -0
  229. data/lib/generators/raffle_v1/install/install_generator.rb +2 -2
  230. data/lib/raffle_v1/version.rb +1 -1
  231. metadata +266 -80
  232. data/test/dummy/db/development.sqlite3 +0 -0
  233. data/test/dummy/log/development.log +0 -1304
  234. data/test/dummy/tmp/cache/assets/CA9/000/sprockets%2F4a08cdc7528358910b09a742236ce1d5 +0 -0
  235. data/test/dummy/tmp/cache/assets/CB2/BD0/sprockets%2F85aac33f66112e73231ea0779f646d48 +0 -0
  236. data/test/dummy/tmp/cache/assets/CC8/930/sprockets%2Ff75c059e31f23788564cdeb37454997a +0 -0
  237. data/test/dummy/tmp/cache/assets/CEF/E80/sprockets%2Fd1d95274bb399cd78c4372bc6330679f +0 -0
  238. data/test/dummy/tmp/cache/assets/D00/C30/sprockets%2F7d453e5233c35cc0664189bd1c060dca +0 -0
  239. data/test/dummy/tmp/cache/assets/D06/390/sprockets%2F2db5f5807daaf42647f3f1614b2061c7 +0 -0
  240. data/test/dummy/tmp/cache/assets/D06/5C0/sprockets%2F10f71b69148321ca26d0bb94df09ed46 +0 -0
  241. data/test/dummy/tmp/cache/assets/D1E/8D0/sprockets%2Fd0f3965813d75eefebe5353981159cb3 +0 -0
  242. data/test/dummy/tmp/cache/assets/D35/FB0/sprockets%2Ff706372b7e19b270321cbce180d7edd3 +0 -0
  243. data/test/dummy/tmp/cache/assets/D49/1E0/sprockets%2F1c8eb9a82d46a60faa9b194282db8976 +0 -0
  244. data/test/dummy/tmp/cache/assets/D67/FA0/sprockets%2F3072f540a4a5f4af3636dc9cee4bd821 +0 -0
  245. data/test/dummy/tmp/cache/assets/D76/180/sprockets%2Fe06d9366092cba68641ddefa60cb5e97 +0 -0
  246. data/test/dummy/tmp/cache/assets/D9B/470/sprockets%2Fb7bb6ac37b3929f36a390e4f5b70aec3 +0 -0
  247. data/test/dummy/tmp/cache/assets/D9F/080/sprockets%2F67fdbee8438ea0fdd3406c4f3b277a14 +0 -0
  248. data/test/dummy/tmp/cache/assets/DCD/970/sprockets%2Fb3d4eb65c6d389bff1cb035a7c4e74d2 +0 -0
  249. data/test/dummy/tmp/cache/assets/DD2/7D0/sprockets%2F6d8fc01a6bd28f831fdbe625ea56f2c7 +0 -0
  250. data/test/dummy/tmp/cache/assets/DF1/CA0/sprockets%2Faa2be5b854dacdce2a30a0fff7412887 +0 -0
  251. data/test/dummy/tmp/cache/assets/E0B/E40/sprockets%2F96b1b0fa8f4feee3299fc9dcd2078d0d +0 -0
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Locales controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the PageLayouts controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Pages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Programs controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,96 @@
1
+ html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ outline: 0;
6
+ font-size: 100%;
7
+ vertical-align: baseline;
8
+ background: transparent;
9
+ }
10
+ html, body {text-decoration:none; height:100%; margin:auto; padding: 0;}
11
+ article, aside, figure, footer, header, hgroup, nav, section {display: block;}
12
+
13
+
14
+ /* force a vertical scrollbar to prevent a jumpy page */
15
+ html {overflow-y: scroll;}
16
+
17
+ /* we use a lot of ULs that aren't bulleted.
18
+ don't forget to restore the bullets within content. */
19
+ ul {list-style: none;}
20
+
21
+ blockquote, q {quotes: none;}
22
+
23
+ blockquote:before,
24
+ blockquote:after,
25
+ q:before,
26
+ q:after {content: ''; content: none;}
27
+
28
+ a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}
29
+
30
+ del {text-decoration: line-through;}
31
+
32
+ abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}
33
+
34
+ /* tables still need cellspacing="0" in the markup */
35
+ table {border-collapse: collapse; border-spacing: 0;}
36
+ th {font-weight: bold; vertical-align: bottom;}
37
+ td {font-weight: normal; vertical-align: top;}
38
+
39
+ hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}
40
+
41
+ input, select {vertical-align: middle;}
42
+
43
+ pre {
44
+ white-space: pre; /* CSS2 */
45
+ white-space: pre-wrap; /* CSS 2.1 */
46
+ white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
47
+ word-wrap: break-word; /* IE */
48
+ }
49
+
50
+ input[type="radio"] {vertical-align: text-bottom;}
51
+ input[type="checkbox"] {vertical-align: bottom; *vertical-align: baseline;}
52
+ .ie6 input {vertical-align: text-bottom;}
53
+
54
+ select, input, textarea {font: 99% sans-serif;}
55
+
56
+ table {font-size: inherit; font: 100%;}
57
+
58
+ /* Accessible focus treatment
59
+ people.opera.com/patrickl/experiments/keyboard/test */
60
+ a:hover, a:active {outline: none;}
61
+
62
+ small {font-size: 85%;}
63
+
64
+ strong, th {font-weight: bold;}
65
+
66
+ td, td img {vertical-align: top;}
67
+
68
+ /* Make sure sup and sub don't screw with your line-heights
69
+ gist.github.com/413930 */
70
+ sub, sup {font-size: 75%; line-height: 0; position: relative;}
71
+ sup {top: -0.5em;}
72
+ sub {bottom: -0.25em;}
73
+
74
+ /* standardize any monospaced elements */
75
+ pre, code, kbd, samp {font-family: monospace, sans-serif;}
76
+
77
+ /* hand cursor on clickable elements */
78
+ .clickable,
79
+ label,
80
+ input[type=button],
81
+ input[type=submit],
82
+ button {cursor: pointer;}
83
+
84
+ /* Webkit browsers add a 2px margin outside the chrome of form elements */
85
+ button, input, select, textarea {margin: 0;}
86
+
87
+ /* make buttons play nice in IE */
88
+ button {width: auto; overflow: visible;}
89
+
90
+ /* scale images in IE7 more attractively */
91
+ .ie7 img {-ms-interpolation-mode: bicubic;}
92
+
93
+ /* prevent BG image flicker upon hover */
94
+ .ie6 html {filter: expression(document.execCommand("BackgroundImageCache", false, true));}
95
+
96
+
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Roles controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,42 @@
1
+
2
+ pre {
3
+ background-color: #eee;
4
+ padding: 10px;
5
+ font-size: 11px; }
6
+
7
+
8
+ div {
9
+ &.field, &.actions {
10
+ margin-bottom: 5px; } }
11
+
12
+ #notice {
13
+ color: green; }
14
+
15
+ .field_with_errors input, .field_with_errors select, .field_with_errors textarea
16
+ {
17
+ color: #ff7700;
18
+ border-color: #ff7700;
19
+ }
20
+ .field_with_errors label {color: #ff7700;}
21
+
22
+ #error_explanation, .error_explanation {
23
+ width: 450px;
24
+ padding: 7px;
25
+ padding-bottom: 0;
26
+ margin: 10px 0 20px 0;
27
+ background-color: #f0f0f0;
28
+ h2 {
29
+ text-align: left;
30
+ font-weight: bold;
31
+ padding: 5px 5px 5px 15px;
32
+ margin: -7px;
33
+ margin-bottom: 0px;
34
+ background-color: $mainColor;
35
+ color: #fff;
36
+ border: none;
37
+ }
38
+ ul li {
39
+ font-size: 12px;
40
+ list-style: disc;
41
+ list-style-position: inside;
42
+ } }
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the stylesheets controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the TermsAndConditions controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,4 @@
1
+ // Place all the styles related to the terms_of_conditions controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
4
+ .toc { margin-top: 25px; }
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the TranslationKeys controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the TranslationObjects controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,33 @@
1
+ /* Multiselect
2
+ ----------------------------------*/
3
+
4
+ .ui-multiselect { border: solid 1px; font-size: 0.8em; overflow: hidden; width: 500px; }
5
+ .ui-multiselect ul { -moz-user-select: none; }
6
+ .ui-multiselect li { margin: 0; padding: 0; cursor: default; line-height: 20px; height: 20px; font-size: 11px; list-style: none; }
7
+ .ui-multiselect li a { color: #999; text-decoration: none; padding: 0; display: block; float: left; cursor: pointer;}
8
+ .ui-multiselect li.ui-draggable-dragging { padding-left: 10px; }
9
+
10
+ .ui-multiselect ul.connected-list {background: url(/assets/zebra_rows_bg.png);}
11
+ .ui-multiselect div.selected { position: relative; padding: 0; margin: 0; border: 0; float:right; }
12
+ .ui-multiselect ul.selected { position: relative; padding: 0; overflow: auto; overflow-x: hidden; margin: 0; list-style: none; border: 0; position: relative; width: 100%; }
13
+ .ui-multiselect div.searcharea.clearfix{min-height: 80px;}
14
+
15
+ .ui-multiselect div.available { position: relative; padding: 0; margin: 0; border: 0; float:left; border-left: 1px solid; }
16
+ .ui-multiselect ul.available { position: relative; padding: 0; overflow: auto; overflow-x: hidden; margin: 0; list-style: none; border: 0; width: 100%; }
17
+ .ui-multiselect ul.available li { padding-left: 10px; }
18
+
19
+ .ui-multiselect .ui-state-default { border: none; margin-bottom: 1px; position: relative; padding-left: 20px;}
20
+ .ui-multiselect .ui-element { border: none; line-height: 32px; height: 32px; display: block; position: relative; padding-left: 20px;}
21
+
22
+ .ui-multiselect .ui-lists-hover { border: none; background-color: #e5e5e5; }
23
+ .ui-multiselect .ui-header,.field_with_errors .ui-multiselect .ui-header {font-size: 13px; font-weight:bold; margin-bottom: 1px; border-top: 1px solid #b8b8b8; box-shadow: inset 0 0 30px rgba(6,6,6,0.2); background-color: #d5d5d5;height: 40px; display:block;}
24
+
25
+ .ui-multiselect .add-all { float: right; margin-top:4px; margin-right: 8px; }
26
+ .ui-multiselect .remove-all { float: right; margin-top:4px; margin-right: 8px;}
27
+ .ui-multiselect .search { float: left; padding: 4px;}
28
+ .ui-multiselect .count { float: left; padding: 11px 0 0 8px;}
29
+
30
+ .ui-multiselect li span.ui-icon-arrowthick-2-n-s { position: absolute; left: 2px; }
31
+ .ui-multiselect li a.action { position: absolute; right: 8px; top: 2px; }
32
+
33
+ .ui-multiselect input.search { margin: 12px; background: url(/assets/findbox.png) 95% center no-repeat;}
@@ -0,0 +1,33 @@
1
+ /* Multiselect
2
+ ----------------------------------*/
3
+
4
+ .ui-multiselect { border: solid 1px; font-size: 0.8em; overflow: hidden; width: 500px; }
5
+ .ui-multiselect ul { -moz-user-select: none; }
6
+ .ui-multiselect li { margin: 0; padding: 0; cursor: default; line-height: 20px; height: 20px; font-size: 11px; list-style: none; }
7
+ .ui-multiselect li a { color: #999; text-decoration: none; padding: 0; display: block; float: left; cursor: pointer;}
8
+ .ui-multiselect li.ui-draggable-dragging { padding-left: 10px; }
9
+
10
+ .ui-multiselect ul.connected-list {background: url(/assets/zebra_rows_bg.png);}
11
+ .ui-multiselect div.selected { position: relative; padding: 0; margin: 0; border: 0; float:right; }
12
+ .ui-multiselect ul.selected { position: relative; padding: 0; overflow: auto; overflow-x: hidden; margin: 0; list-style: none; border: 0; position: relative; width: 100%; }
13
+ .ui-multiselect div.searcharea.clearfix{min-height: 80px;}
14
+
15
+ .ui-multiselect div.available { position: relative; padding: 0; margin: 0; border: 0; float:left; border-left: 1px solid; }
16
+ .ui-multiselect ul.available { position: relative; padding: 0; overflow: auto; overflow-x: hidden; margin: 0; list-style: none; border: 0; width: 100%; }
17
+ .ui-multiselect ul.available li { padding-left: 10px; }
18
+
19
+ .ui-multiselect .ui-state-default { border: none; margin-bottom: 1px; position: relative; padding-left: 20px;}
20
+ .ui-multiselect .ui-element { border: none; line-height: 32px; height: 32px; display: block; position: relative; padding-left: 20px;}
21
+
22
+ .ui-multiselect .ui-lists-hover { border: none; background-color: #e5e5e5; }
23
+ .ui-multiselect .ui-header,.field_with_errors .ui-multiselect .ui-header {font-size: 13px; font-weight:bold; margin-bottom: 1px; border-top: 1px solid #b8b8b8; box-shadow: inset 0 0 30px rgba(6,6,6,0.2); background-color: #d5d5d5;height: 40px; display:block;}
24
+
25
+ .ui-multiselect .add-all { float: right; margin-top:4px; margin-right: 8px; }
26
+ .ui-multiselect .remove-all { float: right; margin-top:4px; margin-right: 8px;}
27
+ .ui-multiselect .search { float: left; padding: 4px;}
28
+ .ui-multiselect .count { float: left; padding: 11px 0 0 8px;}
29
+
30
+ .ui-multiselect li span.ui-icon-arrowthick-2-n-s { position: absolute; left: 2px; }
31
+ .ui-multiselect li a.action { position: absolute; right: 8px; top: 2px; }
32
+
33
+ .ui-multiselect input.search { margin: 12px; background: url(/assets/findbox.png) 95% center no-repeat;}
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the User controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Versions controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,4 +1,84 @@
1
+ require "cancan"
2
+ require "ransack"
3
+
1
4
  module RaffleV1
2
5
  class ApplicationController < ActionController::Base
6
+ protect_from_forgery
7
+ before_filter :authenticate_any!, unless: :stylesheet_controller?
8
+ check_authorization :unless => :devise_controller?
9
+ helper :all
10
+
11
+ def authenticate_any!
12
+ if admin_signed_in?
13
+ true
14
+ else
15
+ authenticate_user!
16
+ end
17
+ end
18
+
19
+ rescue_from CanCan::AccessDenied do |exception|
20
+ if user_signed_in? && current_user.requires_action_before_login? && !authenticated_by_proxy?
21
+ redirect_to user_required_actions_index_path, :alert => exception.message
22
+ else
23
+ redirect_to root_url, :alert => exception.message
24
+ end
25
+ end
26
+
27
+ def t(key, options = {})
28
+ if (val = super) =~ /translation missing/
29
+ return key
30
+ end
31
+
32
+ val
33
+ end
34
+
35
+ def authenticate_by_proxy(authenticate = true)
36
+ session[:proxy_auth] = authenticate
37
+ end
38
+
39
+ def authenticated_by_proxy?
40
+ session[:proxy_auth] || false
41
+ end
42
+
43
+ private
44
+
45
+ def current_ability
46
+ @current_ability ||= case
47
+ when current_admin || current_user.class.name == "Admin"
48
+ AdminAbility.new(current_admin || current_user, @current_program)
49
+ when current_user
50
+ UserAbility.new(current_user, authenticated_by_proxy?)
51
+ # AdminAbility.new(current_user, @current_program)
52
+ else
53
+ GuestAbility.new
54
+ end
55
+ end
56
+
57
+ def user_for_paper_trail
58
+ if user_signed_in? || admin_signed_in?
59
+ user = admin_signed_in? ? current_admin.email : current_user.email
60
+ else
61
+ user = "Guest"
62
+ end
63
+ end
64
+
65
+ def ckeditor_filebrowser_scope(options = {})
66
+ if @current_program
67
+ super({ :program_id => @current_program.id}.merge(options))
68
+ end
69
+ end
70
+
71
+ def after_sign_out_path_for(resource_or_scope)
72
+ if admin_signed_in?
73
+ admin_session_path
74
+ else
75
+ user_session_path
76
+ end
77
+ end
78
+
79
+ def stylesheet_controller?
80
+ is_a?(StylesheetsController)
81
+ end
82
+
3
83
  end
4
84
  end
@@ -0,0 +1,15 @@
1
+ require_dependency "raffle_v1/application_controller"
2
+
3
+ module RaffleV1
4
+ class HomeController < ApplicationController
5
+ authorize_resource :class => false
6
+
7
+ def index
8
+ if params[:user_id].present?
9
+ @user = User.find(params[:user_id])
10
+ else
11
+ @user = current_user
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,87 @@
1
+ require_dependency "raffle_v1/application_controller"
2
+
3
+ module RaffleV1
4
+ class LocalesController < ApplicationController
5
+ # GET /locales
6
+ # GET /locales.json
7
+ def index
8
+ @locales = Locale.all
9
+
10
+ respond_to do |format|
11
+ format.html # index.html.erb
12
+ format.json { render json: @locales }
13
+ end
14
+ end
15
+
16
+ # GET /locales/1
17
+ # GET /locales/1.json
18
+ def show
19
+ @locale = Locale.find(params[:id])
20
+
21
+ respond_to do |format|
22
+ format.html # show.html.erb
23
+ format.json { render json: @locale }
24
+ end
25
+ end
26
+
27
+ # GET /locales/new
28
+ # GET /locales/new.json
29
+ def new
30
+ @locale = Locale.new
31
+
32
+ respond_to do |format|
33
+ format.html # new.html.erb
34
+ format.json { render json: @locale }
35
+ end
36
+ end
37
+
38
+ # GET /locales/1/edit
39
+ def edit
40
+ @locale = Locale.find(params[:id])
41
+ end
42
+
43
+ # POST /locales
44
+ # POST /locales.json
45
+ def create
46
+ @locale = Locale.new(params[:locale])
47
+
48
+ respond_to do |format|
49
+ if @locale.save
50
+ format.html { redirect_to @locale, notice: 'Locale was successfully created.' }
51
+ format.json { render json: @locale, status: :created, location: @locale }
52
+ else
53
+ format.html { render action: "new" }
54
+ format.json { render json: @locale.errors, status: :unprocessable_entity }
55
+ end
56
+ end
57
+ end
58
+
59
+ # PUT /locales/1
60
+ # PUT /locales/1.json
61
+ def update
62
+ @locale = Locale.find(params[:id])
63
+
64
+ respond_to do |format|
65
+ if @locale.update_attributes(params[:locale])
66
+ format.html { redirect_to @locale, notice: 'Locale was successfully updated.' }
67
+ format.json { head :no_content }
68
+ else
69
+ format.html { render action: "edit" }
70
+ format.json { render json: @locale.errors, status: :unprocessable_entity }
71
+ end
72
+ end
73
+ end
74
+
75
+ # DELETE /locales/1
76
+ # DELETE /locales/1.json
77
+ def destroy
78
+ @locale = Locale.find(params[:id])
79
+ @locale.destroy
80
+
81
+ respond_to do |format|
82
+ format.html { redirect_to locales_url }
83
+ format.json { head :no_content }
84
+ end
85
+ end
86
+ end
87
+ end