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.
- checksums.yaml +6 -14
- data/README.md +11 -2
- data/app/assets/images/raffle_v1/game.png +0 -0
- data/app/assets/images/raffle_v1/gift.png +0 -0
- data/app/assets/images/raffle_v1/lifesaver.png +0 -0
- data/app/assets/images/raffle_v1/person01.jpg +0 -0
- data/app/assets/javascripts/raffle_v1/application.js +2 -1
- data/app/assets/javascripts/raffle_v1/home.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/locales.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/page_layouts.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/pages.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/programs.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/roles.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/stylesheets.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/terms_and_conditions.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/terms_of_conditions.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/translation_keys.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/translation_objects.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/user.js.coffee +3 -0
- data/app/assets/javascripts/raffle_v1/versions.js.coffee +3 -0
- data/app/assets/stylesheets/raffle_v1/TableTools.css +264 -0
- data/app/assets/stylesheets/raffle_v1/TableTools.css.scss +264 -0
- data/app/assets/stylesheets/raffle_v1/TableTools_JUI.css +182 -0
- data/app/assets/stylesheets/raffle_v1/TableTools_JUI.css.scss +183 -0
- data/app/assets/stylesheets/raffle_v1/_custom.css.scss +3310 -0
- data/app/assets/stylesheets/raffle_v1/_variable.scss +122 -0
- data/app/assets/stylesheets/raffle_v1/_variable_defaults.scss +83 -0
- data/app/assets/stylesheets/raffle_v1/application.css.scss +34 -0
- data/app/assets/stylesheets/raffle_v1/application.css.scss.erb +32 -0
- data/app/assets/stylesheets/raffle_v1/bootstrap-responsive.css +570 -0
- data/app/assets/stylesheets/raffle_v1/bootstrap-responsive.css.scss +570 -0
- data/app/assets/stylesheets/raffle_v1/bootstrap.css +4226 -0
- data/app/assets/stylesheets/raffle_v1/bootstrap.css.scss +4226 -0
- data/app/assets/stylesheets/raffle_v1/colorbox.css +88 -0
- data/app/assets/stylesheets/raffle_v1/colorbox.css.scss +88 -0
- data/app/assets/stylesheets/raffle_v1/grid.css.scss +258 -0
- data/app/assets/stylesheets/raffle_v1/hierarchy.css.scss +16 -0
- data/app/assets/stylesheets/raffle_v1/home.css.scss +18 -0
- data/app/assets/stylesheets/raffle_v1/jquery.dataTables.css +83 -0
- data/app/assets/stylesheets/raffle_v1/jquery.dataTables.css.scss +83 -0
- data/app/assets/stylesheets/raffle_v1/jquery.jcarousel.css +206 -0
- data/app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css +57 -0
- data/app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css.scss +57 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css +38 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css.scss +38 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css +21 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css.scss +21 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css +563 -0
- data/app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css.scss +563 -0
- data/app/assets/stylesheets/raffle_v1/locales.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/page_layouts.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/pages.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/programs.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/reset.css.scss +96 -0
- data/app/assets/stylesheets/raffle_v1/roles.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/scaffolds.css.scss +42 -0
- data/app/assets/stylesheets/raffle_v1/stylesheets.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/terms_and_conditions.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/terms_of_conditions.css.scss +4 -0
- data/app/assets/stylesheets/raffle_v1/translation_keys.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/translation_objects.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/ui.multiselect.css +33 -0
- data/app/assets/stylesheets/raffle_v1/ui.multiselect.css.scss +33 -0
- data/app/assets/stylesheets/raffle_v1/user.css.scss +3 -0
- data/app/assets/stylesheets/raffle_v1/versions.css.scss +3 -0
- data/app/controllers/raffle_v1/application_controller.rb +80 -0
- data/app/controllers/raffle_v1/home_controller.rb +15 -0
- data/app/controllers/raffle_v1/locales_controller.rb +87 -0
- data/app/controllers/raffle_v1/page_layouts_controller.rb +87 -0
- data/app/controllers/raffle_v1/pages_controller.rb +180 -0
- data/app/controllers/raffle_v1/programs_controller.rb +140 -0
- data/app/controllers/raffle_v1/roles_controller.rb +87 -0
- data/app/controllers/raffle_v1/stylesheets_controller.rb +19 -0
- data/app/controllers/raffle_v1/terms_and_conditions_controller.rb +118 -0
- data/app/controllers/raffle_v1/translation_keys_controller.rb +119 -0
- data/app/controllers/raffle_v1/translation_objects_controller.rb +87 -0
- data/app/controllers/raffle_v1/user_controller.rb +138 -0
- data/app/controllers/raffle_v1/versions_controller.rb +15 -0
- data/app/models/raffle_v1/ability.rb +30 -0
- data/app/models/raffle_v1/admin.rb +35 -0
- data/app/models/raffle_v1/admin_ability.rb +28 -0
- data/app/models/raffle_v1/locale.rb +29 -0
- data/app/models/raffle_v1/page.rb +26 -0
- data/app/models/raffle_v1/page_layout.rb +6 -0
- data/app/models/raffle_v1/program.rb +84 -0
- data/app/models/raffle_v1/program_locale.rb +11 -0
- data/app/models/raffle_v1/program_setting.rb +5 -0
- data/app/models/raffle_v1/role.rb +5 -0
- data/app/models/raffle_v1/roles_users.rb +5 -0
- data/app/models/raffle_v1/stylesheet.rb +9 -0
- data/app/models/raffle_v1/terms_and_condition.rb +17 -0
- data/app/models/raffle_v1/translation.rb +29 -0
- data/app/models/raffle_v1/translation_key.rb +35 -0
- data/app/models/raffle_v1/translation_object.rb +11 -0
- data/app/models/raffle_v1/user.rb +108 -0
- data/config/rafflev1.rb +6 -0
- data/db/migrate/20130123214645_devise_create_users.rb +49 -0
- data/db/migrate/20130124004626_devise_create_admins.rb +49 -0
- data/db/migrate/20130124231541_create_versions.rb +18 -0
- data/db/migrate/20130127235347_create_programs.rb +9 -0
- data/db/migrate/20130129155515_add_domain_fields_to_programs.rb +6 -0
- data/db/migrate/20130129160949_create_terms_and_conditions.rb +18 -0
- data/db/migrate/20130129183112_add_program_to_users.rb +5 -0
- data/db/migrate/20130129204204_add_username_to_users.rb +6 -0
- data/db/migrate/20130129211205_create_roles.rb +9 -0
- data/db/migrate/20130129212302_create_roles_users.rb +12 -0
- data/db/migrate/20130130013315_create_locales.rb +11 -0
- data/db/migrate/20130130154500_create_program_locales.rb +8 -0
- data/db/migrate/20130130223342_add_settings_to_users.rb +5 -0
- data/db/migrate/20130130223609_add_locale_available_to_program.rb +5 -0
- data/db/migrate/20130130223810_add_locales_to_versions.rb +5 -0
- data/db/migrate/20130130224141_add_locale_name_to_program.rb +5 -0
- data/db/migrate/20130130224327_add_admin_type_to_admins.rb +5 -0
- data/db/migrate/20130130225223_add_deleted_at_to_models.rb +9 -0
- data/db/migrate/20130130230516_create_translations.rb +13 -0
- data/db/migrate/20130131005653_add_timeout_field_to_program.rb +7 -0
- data/db/migrate/20130131144951_create_stylesheets.rb +14 -0
- data/db/migrate/20130202132442_add_tos_to_program.rb +5 -0
- data/db/migrate/20130202133149_add_programid_to_terms.rb +23 -0
- data/db/migrate/20130202193646_add_akm_to_terms_and_conditions.rb +5 -0
- data/db/migrate/20130203035054_create_translation_keys.rb +10 -0
- data/db/migrate/20130203214314_create_program_settings.rb +9 -0
- data/db/migrate/20130204025824_add_translationkey_to_translation.rb +5 -0
- data/db/migrate/20130204030555_create_translation_objects.rb +39 -0
- data/db/migrate/20130205203152_create_pages.rb +25 -0
- data/db/migrate/20130208042652_add_fields_to_page.rb +6 -0
- data/db/migrate/20130208043123_create_page_layouts.rb +12 -0
- data/db/migrate/20130208051925_add_statusitem_to_page.rb +5 -0
- data/db/migrate/20130306012135_add_fields_to_user.rb +40 -0
- data/db/migrate/20130306162357_change_bad_fields_on_user.rb +11 -0
- data/db/migrate/20130306163554_add_password_created_at_to_user.rb +6 -0
- data/db/migrate/20130306165455_add_confirmable_to_user.rb +14 -0
- data/db/migrate/20130306211253_add_username_index_to_user.rb +41 -0
- data/db/migrate/20130313011833_add_field_to_user.rb +5 -0
- data/lib/database_cleaner-0.7.2/Gemfile.lock +163 -0
- data/lib/database_cleaner-0.7.2/History.txt +209 -0
- data/lib/database_cleaner-0.7.2/LICENSE +20 -0
- data/lib/database_cleaner-0.7.2/README.textile +223 -0
- data/lib/database_cleaner-0.7.2/Rakefile +65 -0
- data/lib/database_cleaner-0.7.2/TODO +3 -0
- data/lib/database_cleaner-0.7.2/VERSION.yml +5 -0
- data/lib/database_cleaner-0.7.2/cucumber.yml +1 -0
- data/lib/database_cleaner-0.7.2/examples/Gemfile +49 -0
- data/lib/database_cleaner-0.7.2/examples/Gemfile.lock +163 -0
- data/lib/database_cleaner-0.7.2/examples/config/database.yml.example +8 -0
- data/{test/dummy/db/test.sqlite3 → lib/database_cleaner-0.7.2/examples/db/sqlite_databases_go_here} +0 -0
- data/lib/database_cleaner-0.7.2/examples/features/example.feature +11 -0
- data/lib/database_cleaner-0.7.2/examples/features/example_multiple_db.feature +23 -0
- data/lib/database_cleaner-0.7.2/examples/features/example_multiple_orm.feature +22 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/activerecord_steps.rb +31 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/couchpotato_steps.rb +31 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/datamapper_steps.rb +37 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/mongoid_steps.rb +23 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb +31 -0
- data/lib/database_cleaner-0.7.2/examples/features/step_definitions/translation_steps.rb +55 -0
- data/lib/database_cleaner-0.7.2/examples/features/support/env.rb +62 -0
- data/lib/database_cleaner-0.7.2/examples/lib/activerecord_models.rb +41 -0
- data/lib/database_cleaner-0.7.2/examples/lib/couchpotato_models.rb +61 -0
- data/lib/database_cleaner-0.7.2/examples/lib/datamapper_models.rb +50 -0
- data/lib/database_cleaner-0.7.2/examples/lib/mongoid_models.rb +49 -0
- data/lib/database_cleaner-0.7.2/examples/lib/mongomapper_models.rb +51 -0
- data/lib/database_cleaner-0.7.2/features/cleaning.feature +22 -0
- data/lib/database_cleaner-0.7.2/features/cleaning_default_strategy.feature +19 -0
- data/lib/database_cleaner-0.7.2/features/cleaning_multiple_dbs.feature +21 -0
- data/lib/database_cleaner-0.7.2/features/cleaning_multiple_orms.feature +29 -0
- data/lib/database_cleaner-0.7.2/features/step_definitions/database_cleaner_steps.rb +32 -0
- data/lib/database_cleaner-0.7.2/features/support/env.rb +7 -0
- data/lib/database_cleaner-0.7.2/features/support/feature_runner.rb +39 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner.rb +3 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/base.rb +53 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/deletion.rb +69 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/transaction.rb +28 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/truncation.rb +151 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/base.rb +138 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/configuration.rb +94 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/base.rb +7 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/truncation.rb +28 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/cucumber.rb +11 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/base.rb +21 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/transaction.rb +26 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/truncation.rb +175 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/generic/base.rb +20 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/generic/truncation.rb +37 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo/truncation.rb +22 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/base.rb +20 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/truncation.rb +19 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/base.rb +20 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/truncation.rb +20 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/null_strategy.rb +15 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/base.rb +22 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/transaction.rb +25 -0
- data/lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/truncation.rb +50 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/base_spec.rb +144 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/transaction_spec.rb +77 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/truncation_spec.rb +76 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/base_spec.rb +493 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/configuration_spec.rb +294 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/couch_potato/truncation_spec.rb +41 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/base_spec.rb +30 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/transaction_spec.rb +23 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/truncation_spec.rb +11 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/generic/base_spec.rb +22 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/generic/truncation_spec.rb +78 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/base_spec.rb +33 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/mongo_examples.rb +8 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/truncation_spec.rb +74 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb +32 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/transaction_spec.rb +21 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/truncation_spec.rb +13 -0
- data/lib/database_cleaner-0.7.2/spec/database_cleaner/shared_strategy_spec.rb +13 -0
- data/lib/database_cleaner-0.7.2/spec/rcov.opts +1 -0
- data/lib/database_cleaner-0.7.2/spec/spec.opts +7 -0
- data/lib/database_cleaner-0.7.2/spec/spec_helper.rb +19 -0
- data/lib/generators/raffle_v1/install/USAGE +8 -0
- data/lib/generators/raffle_v1/install/install_generator.rb +2 -2
- data/lib/raffle_v1/version.rb +1 -1
- metadata +266 -80
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -1304
- data/test/dummy/tmp/cache/assets/CA9/000/sprockets%2F4a08cdc7528358910b09a742236ce1d5 +0 -0
- data/test/dummy/tmp/cache/assets/CB2/BD0/sprockets%2F85aac33f66112e73231ea0779f646d48 +0 -0
- data/test/dummy/tmp/cache/assets/CC8/930/sprockets%2Ff75c059e31f23788564cdeb37454997a +0 -0
- data/test/dummy/tmp/cache/assets/CEF/E80/sprockets%2Fd1d95274bb399cd78c4372bc6330679f +0 -0
- data/test/dummy/tmp/cache/assets/D00/C30/sprockets%2F7d453e5233c35cc0664189bd1c060dca +0 -0
- data/test/dummy/tmp/cache/assets/D06/390/sprockets%2F2db5f5807daaf42647f3f1614b2061c7 +0 -0
- data/test/dummy/tmp/cache/assets/D06/5C0/sprockets%2F10f71b69148321ca26d0bb94df09ed46 +0 -0
- data/test/dummy/tmp/cache/assets/D1E/8D0/sprockets%2Fd0f3965813d75eefebe5353981159cb3 +0 -0
- data/test/dummy/tmp/cache/assets/D35/FB0/sprockets%2Ff706372b7e19b270321cbce180d7edd3 +0 -0
- data/test/dummy/tmp/cache/assets/D49/1E0/sprockets%2F1c8eb9a82d46a60faa9b194282db8976 +0 -0
- data/test/dummy/tmp/cache/assets/D67/FA0/sprockets%2F3072f540a4a5f4af3636dc9cee4bd821 +0 -0
- data/test/dummy/tmp/cache/assets/D76/180/sprockets%2Fe06d9366092cba68641ddefa60cb5e97 +0 -0
- data/test/dummy/tmp/cache/assets/D9B/470/sprockets%2Fb7bb6ac37b3929f36a390e4f5b70aec3 +0 -0
- data/test/dummy/tmp/cache/assets/D9F/080/sprockets%2F67fdbee8438ea0fdd3406c4f3b277a14 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/970/sprockets%2Fb3d4eb65c6d389bff1cb035a7c4e74d2 +0 -0
- data/test/dummy/tmp/cache/assets/DD2/7D0/sprockets%2F6d8fc01a6bd28f831fdbe625ea56f2c7 +0 -0
- data/test/dummy/tmp/cache/assets/DF1/CA0/sprockets%2Faa2be5b854dacdce2a30a0fff7412887 +0 -0
- data/test/dummy/tmp/cache/assets/E0B/E40/sprockets%2F96b1b0fa8f4feee3299fc9dcd2078d0d +0 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'database_cleaner/mongo_mapper/base'
|
3
|
+
require 'database_cleaner/shared_strategy_spec'
|
4
|
+
|
5
|
+
module DatabaseCleaner
|
6
|
+
describe MongoMapper do
|
7
|
+
it { should respond_to(:available_strategies) }
|
8
|
+
end
|
9
|
+
|
10
|
+
module MongoMapper
|
11
|
+
class ExampleStrategy
|
12
|
+
include ::DatabaseCleaner::MongoMapper::Base
|
13
|
+
end
|
14
|
+
|
15
|
+
describe ExampleStrategy do
|
16
|
+
|
17
|
+
it_should_behave_like "a generic strategy"
|
18
|
+
|
19
|
+
describe "db" do
|
20
|
+
it { should respond_to(:db=) }
|
21
|
+
|
22
|
+
it "should store my desired db" do
|
23
|
+
subject.db = :my_db
|
24
|
+
subject.db.should == :my_db
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should default to :default" do
|
28
|
+
subject.db.should == :default
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
+
require 'mongo_mapper'
|
3
|
+
require 'database_cleaner/mongo_mapper/truncation'
|
4
|
+
require File.dirname(__FILE__) + '/mongo_examples'
|
5
|
+
|
6
|
+
module DatabaseCleaner
|
7
|
+
module MongoMapper
|
8
|
+
|
9
|
+
describe Truncation do
|
10
|
+
|
11
|
+
#doing this in the file root breaks autospec, doing it before(:all) just fails the specs
|
12
|
+
before(:all) do
|
13
|
+
::MongoMapper.connection = ::Mongo::Connection.new('127.0.0.1')
|
14
|
+
@test_db = 'database_cleaner_specs'
|
15
|
+
::MongoMapper.database = @test_db
|
16
|
+
end
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
::MongoMapper.connection.drop_database(@test_db)
|
20
|
+
end
|
21
|
+
|
22
|
+
def ensure_counts(expected_counts)
|
23
|
+
# I had to add this sanity_check garbage because I was getting non-determinisc results from mongomapper at times..
|
24
|
+
# very odd and disconcerting...
|
25
|
+
sanity_check = expected_counts.delete(:sanity_check)
|
26
|
+
begin
|
27
|
+
expected_counts.each do |model_class, expected_count|
|
28
|
+
model_class.count.should equal(expected_count), "#{model_class} expected to have a count of #{expected_count} but was #{model_class.count}"
|
29
|
+
end
|
30
|
+
rescue Spec::Expectations::ExpectationNotMetError => e
|
31
|
+
raise !sanity_check ? e : Spec::ExpectationNotMetError::ExpectationNotMetError.new("SANITY CHECK FAILURE! This should never happen here: #{e.message}")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_widget(attrs={})
|
36
|
+
Widget.new({:name => 'some widget'}.merge(attrs)).save!
|
37
|
+
end
|
38
|
+
|
39
|
+
def create_gadget(attrs={})
|
40
|
+
Gadget.new({:name => 'some gadget'}.merge(attrs)).save!
|
41
|
+
end
|
42
|
+
|
43
|
+
it "truncates all collections by default" do
|
44
|
+
create_widget
|
45
|
+
create_gadget
|
46
|
+
ensure_counts(Widget => 1, Gadget => 1, :sanity_check => true)
|
47
|
+
Truncation.new.clean
|
48
|
+
ensure_counts(Widget => 0, Gadget => 0)
|
49
|
+
end
|
50
|
+
|
51
|
+
context "when collections are provided to the :only option" do
|
52
|
+
it "only truncates the specified collections" do
|
53
|
+
create_widget
|
54
|
+
create_gadget
|
55
|
+
ensure_counts(Widget => 1, Gadget => 1, :sanity_check => true)
|
56
|
+
Truncation.new(:only => ['widgets']).clean
|
57
|
+
ensure_counts(Widget => 0, Gadget => 1)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
context "when collections are provided to the :except option" do
|
62
|
+
it "truncates all but the specified collections" do
|
63
|
+
create_widget
|
64
|
+
create_gadget
|
65
|
+
ensure_counts(Widget => 1, Gadget => 1, :sanity_check => true)
|
66
|
+
Truncation.new(:except => ['widgets']).clean
|
67
|
+
ensure_counts(Widget => 1, Gadget => 0)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'database_cleaner/sequel/base'
|
3
|
+
require 'database_cleaner/shared_strategy_spec'
|
4
|
+
require 'sequel'
|
5
|
+
|
6
|
+
module DatabaseCleaner
|
7
|
+
describe Sequel do
|
8
|
+
it { should respond_to(:available_strategies) }
|
9
|
+
end
|
10
|
+
|
11
|
+
module Sequel
|
12
|
+
class ExampleStrategy
|
13
|
+
include ::DatabaseCleaner::Sequel::Base
|
14
|
+
end
|
15
|
+
|
16
|
+
describe ExampleStrategy do
|
17
|
+
it_should_behave_like "a generic strategy"
|
18
|
+
it { should respond_to(:db) }
|
19
|
+
it { should respond_to(:db=) }
|
20
|
+
|
21
|
+
it "should store my desired db" do
|
22
|
+
subject.db = :my_db
|
23
|
+
subject.db.should == :my_db
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should default to :default" do
|
27
|
+
pending "I figure out how to use Sequel and write some real tests for it..."
|
28
|
+
subject.db.should == :default
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'database_cleaner/sequel/transaction'
|
3
|
+
require 'database_cleaner/shared_strategy_spec'
|
4
|
+
require 'sequel'
|
5
|
+
|
6
|
+
module DatabaseCleaner
|
7
|
+
module Sequel
|
8
|
+
describe Transaction do
|
9
|
+
it_should_behave_like "a generic strategy"
|
10
|
+
it_should_behave_like "a generic transaction strategy"
|
11
|
+
|
12
|
+
describe "start" do
|
13
|
+
it "should start a transaction"
|
14
|
+
end
|
15
|
+
|
16
|
+
describe "clean" do
|
17
|
+
it "should finish a transaction"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'database_cleaner/sequel/truncation'
|
3
|
+
require 'database_cleaner/shared_strategy_spec'
|
4
|
+
require 'sequel'
|
5
|
+
|
6
|
+
module DatabaseCleaner
|
7
|
+
module Sequel
|
8
|
+
describe Truncation do
|
9
|
+
it_should_behave_like "a generic strategy"
|
10
|
+
it_should_behave_like "a generic truncation strategy"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
shared_examples_for "a generic strategy" do
|
2
|
+
it { should respond_to(:db) }
|
3
|
+
end
|
4
|
+
|
5
|
+
shared_examples_for "a generic truncation strategy" do
|
6
|
+
it { should respond_to(:start) }
|
7
|
+
it { should respond_to(:clean) }
|
8
|
+
end
|
9
|
+
|
10
|
+
shared_examples_for "a generic transaction strategy" do
|
11
|
+
it { should respond_to(:start) }
|
12
|
+
it { should respond_to(:clean) }
|
13
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
--exclude "spec/*,vendor/*,examples/*,features/*,Users/*/.rvm/gems/*/gems/*"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
|
3
|
+
require "bundler"
|
4
|
+
Bundler.setup
|
5
|
+
|
6
|
+
|
7
|
+
require 'spec'
|
8
|
+
#require 'active_record'
|
9
|
+
#require 'mongo_mapper'
|
10
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
11
|
+
require 'database_cleaner'
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
Spec::Runner.configure do |config|
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
alias running lambda
|
@@ -26,11 +26,11 @@ module RaffleV1
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def add_files
|
29
|
-
template 'config/initializers/
|
29
|
+
template 'config/initializers/rafflev1.rb', 'config/initializers/rafflev1.rb'
|
30
30
|
end
|
31
31
|
|
32
32
|
def config_raffleV1_yml
|
33
|
-
create_file "config/
|
33
|
+
create_file "config/rafflev1.yml" do
|
34
34
|
settings = { 'version' => RaffleV1.version }
|
35
35
|
|
36
36
|
settings.to_yaml
|
data/lib/raffle_v1/version.rb
CHANGED
metadata
CHANGED
@@ -1,93 +1,205 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raffle_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert McKeever
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.1.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - ~>
|
27
|
+
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
-
|
28
|
-
name: pg
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ! '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ! '>='
|
29
|
+
version: '4.1'
|
30
|
+
- - ">="
|
39
31
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
32
|
+
version: 4.1.0
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
34
|
name: cancan
|
43
35
|
requirement: !ruby/object:Gem::Requirement
|
44
36
|
requirements:
|
45
|
-
- -
|
37
|
+
- - "~>"
|
46
38
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
39
|
+
version: '1.6'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.6.10
|
48
43
|
type: :development
|
49
44
|
prerelease: false
|
50
45
|
version_requirements: !ruby/object:Gem::Requirement
|
51
46
|
requirements:
|
52
|
-
- -
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.6'
|
50
|
+
- - ">="
|
53
51
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
52
|
+
version: 1.6.10
|
55
53
|
- !ruby/object:Gem::Dependency
|
56
54
|
name: devise
|
57
55
|
requirement: !ruby/object:Gem::Requirement
|
58
56
|
requirements:
|
59
|
-
- -
|
57
|
+
- - "~>"
|
60
58
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
59
|
+
version: '3.2'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.2.4
|
62
63
|
type: :development
|
63
64
|
prerelease: false
|
64
65
|
version_requirements: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.2'
|
70
|
+
- - ">="
|
67
71
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
description: User can enter into raffle and win points
|
72
|
+
version: 3.2.4
|
73
|
+
description: User can enter into raffle and win points.
|
70
74
|
email:
|
71
75
|
- albertmck@gmail.com
|
72
76
|
executables: []
|
73
77
|
extensions: []
|
74
78
|
extra_rdoc_files: []
|
75
79
|
files:
|
80
|
+
- MIT-LICENSE
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- app/assets/images/raffle_v1/game.png
|
84
|
+
- app/assets/images/raffle_v1/gift.png
|
85
|
+
- app/assets/images/raffle_v1/lifesaver.png
|
86
|
+
- app/assets/images/raffle_v1/person01.jpg
|
76
87
|
- app/assets/javascripts/raffle_v1/application.js
|
77
88
|
- app/assets/javascripts/raffle_v1/comments.js
|
89
|
+
- app/assets/javascripts/raffle_v1/home.js.coffee
|
90
|
+
- app/assets/javascripts/raffle_v1/locales.js.coffee
|
91
|
+
- app/assets/javascripts/raffle_v1/page_layouts.js.coffee
|
92
|
+
- app/assets/javascripts/raffle_v1/pages.js.coffee
|
78
93
|
- app/assets/javascripts/raffle_v1/posts.js
|
94
|
+
- app/assets/javascripts/raffle_v1/programs.js.coffee
|
95
|
+
- app/assets/javascripts/raffle_v1/roles.js.coffee
|
96
|
+
- app/assets/javascripts/raffle_v1/stylesheets.js.coffee
|
97
|
+
- app/assets/javascripts/raffle_v1/terms_and_conditions.js.coffee
|
98
|
+
- app/assets/javascripts/raffle_v1/terms_of_conditions.js.coffee
|
99
|
+
- app/assets/javascripts/raffle_v1/translation_keys.js.coffee
|
100
|
+
- app/assets/javascripts/raffle_v1/translation_objects.js.coffee
|
101
|
+
- app/assets/javascripts/raffle_v1/user.js.coffee
|
102
|
+
- app/assets/javascripts/raffle_v1/versions.js.coffee
|
103
|
+
- app/assets/stylesheets/raffle_v1/TableTools.css
|
104
|
+
- app/assets/stylesheets/raffle_v1/TableTools.css.scss
|
105
|
+
- app/assets/stylesheets/raffle_v1/TableTools_JUI.css
|
106
|
+
- app/assets/stylesheets/raffle_v1/TableTools_JUI.css.scss
|
107
|
+
- app/assets/stylesheets/raffle_v1/_custom.css.scss
|
108
|
+
- app/assets/stylesheets/raffle_v1/_variable.scss
|
109
|
+
- app/assets/stylesheets/raffle_v1/_variable_defaults.scss
|
79
110
|
- app/assets/stylesheets/raffle_v1/application.css
|
111
|
+
- app/assets/stylesheets/raffle_v1/application.css.scss
|
112
|
+
- app/assets/stylesheets/raffle_v1/application.css.scss.erb
|
113
|
+
- app/assets/stylesheets/raffle_v1/bootstrap-responsive.css
|
114
|
+
- app/assets/stylesheets/raffle_v1/bootstrap-responsive.css.scss
|
115
|
+
- app/assets/stylesheets/raffle_v1/bootstrap.css
|
116
|
+
- app/assets/stylesheets/raffle_v1/bootstrap.css.scss
|
117
|
+
- app/assets/stylesheets/raffle_v1/colorbox.css
|
118
|
+
- app/assets/stylesheets/raffle_v1/colorbox.css.scss
|
80
119
|
- app/assets/stylesheets/raffle_v1/comments.css
|
120
|
+
- app/assets/stylesheets/raffle_v1/grid.css.scss
|
121
|
+
- app/assets/stylesheets/raffle_v1/hierarchy.css.scss
|
122
|
+
- app/assets/stylesheets/raffle_v1/home.css.scss
|
123
|
+
- app/assets/stylesheets/raffle_v1/jquery.dataTables.css
|
124
|
+
- app/assets/stylesheets/raffle_v1/jquery.dataTables.css.scss
|
125
|
+
- app/assets/stylesheets/raffle_v1/jquery.jcarousel.css
|
126
|
+
- app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css
|
127
|
+
- app/assets/stylesheets/raffle_v1/jquery.wysiwyg.css.scss
|
128
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css
|
129
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.core.css.scss
|
130
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css
|
131
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/jquery.ui.dialog.css.scss
|
132
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
133
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
134
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
135
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
136
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
137
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
138
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
139
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
140
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
141
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_222222_256x240.png
|
142
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_228ef1_256x240.png
|
143
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
144
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
145
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/images/ui-icons_ffffff_256x240.png
|
146
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css
|
147
|
+
- app/assets/stylesheets/raffle_v1/jqueryui/ui-lightness/jquery-ui-1.8.18.custom.css.scss
|
148
|
+
- app/assets/stylesheets/raffle_v1/locales.css.scss
|
149
|
+
- app/assets/stylesheets/raffle_v1/page_layouts.css.scss
|
150
|
+
- app/assets/stylesheets/raffle_v1/pages.css.scss
|
81
151
|
- app/assets/stylesheets/raffle_v1/posts.css
|
152
|
+
- app/assets/stylesheets/raffle_v1/programs.css.scss
|
153
|
+
- app/assets/stylesheets/raffle_v1/reset.css.scss
|
154
|
+
- app/assets/stylesheets/raffle_v1/roles.css.scss
|
155
|
+
- app/assets/stylesheets/raffle_v1/scaffolds.css.scss
|
156
|
+
- app/assets/stylesheets/raffle_v1/stylesheets.css.scss
|
157
|
+
- app/assets/stylesheets/raffle_v1/terms_and_conditions.css.scss
|
158
|
+
- app/assets/stylesheets/raffle_v1/terms_of_conditions.css.scss
|
159
|
+
- app/assets/stylesheets/raffle_v1/translation_keys.css.scss
|
160
|
+
- app/assets/stylesheets/raffle_v1/translation_objects.css.scss
|
161
|
+
- app/assets/stylesheets/raffle_v1/ui.multiselect.css
|
162
|
+
- app/assets/stylesheets/raffle_v1/ui.multiselect.css.scss
|
163
|
+
- app/assets/stylesheets/raffle_v1/user.css.scss
|
164
|
+
- app/assets/stylesheets/raffle_v1/versions.css.scss
|
82
165
|
- app/assets/stylesheets/scaffold.css
|
83
166
|
- app/controllers/raffle_v1/application_controller.rb
|
84
167
|
- app/controllers/raffle_v1/comments_controller.rb
|
168
|
+
- app/controllers/raffle_v1/home_controller.rb
|
169
|
+
- app/controllers/raffle_v1/locales_controller.rb
|
170
|
+
- app/controllers/raffle_v1/page_layouts_controller.rb
|
171
|
+
- app/controllers/raffle_v1/pages_controller.rb
|
85
172
|
- app/controllers/raffle_v1/posts_controller.rb
|
173
|
+
- app/controllers/raffle_v1/programs_controller.rb
|
174
|
+
- app/controllers/raffle_v1/roles_controller.rb
|
175
|
+
- app/controllers/raffle_v1/stylesheets_controller.rb
|
176
|
+
- app/controllers/raffle_v1/terms_and_conditions_controller.rb
|
177
|
+
- app/controllers/raffle_v1/translation_keys_controller.rb
|
178
|
+
- app/controllers/raffle_v1/translation_objects_controller.rb
|
179
|
+
- app/controllers/raffle_v1/user_controller.rb
|
180
|
+
- app/controllers/raffle_v1/versions_controller.rb
|
86
181
|
- app/helpers/raffle_v1/application_helper.rb
|
87
182
|
- app/helpers/raffle_v1/comments_helper.rb
|
88
183
|
- app/helpers/raffle_v1/posts_helper.rb
|
184
|
+
- app/models/raffle_v1/ability.rb
|
185
|
+
- app/models/raffle_v1/admin.rb
|
186
|
+
- app/models/raffle_v1/admin_ability.rb
|
89
187
|
- app/models/raffle_v1/comment.rb
|
188
|
+
- app/models/raffle_v1/locale.rb
|
189
|
+
- app/models/raffle_v1/page.rb
|
190
|
+
- app/models/raffle_v1/page_layout.rb
|
90
191
|
- app/models/raffle_v1/post.rb
|
192
|
+
- app/models/raffle_v1/program.rb
|
193
|
+
- app/models/raffle_v1/program_locale.rb
|
194
|
+
- app/models/raffle_v1/program_setting.rb
|
195
|
+
- app/models/raffle_v1/role.rb
|
196
|
+
- app/models/raffle_v1/roles_users.rb
|
197
|
+
- app/models/raffle_v1/stylesheet.rb
|
198
|
+
- app/models/raffle_v1/terms_and_condition.rb
|
199
|
+
- app/models/raffle_v1/translation.rb
|
200
|
+
- app/models/raffle_v1/translation_key.rb
|
201
|
+
- app/models/raffle_v1/translation_object.rb
|
202
|
+
- app/models/raffle_v1/user.rb
|
91
203
|
- app/views/layouts/raffle_v1/application.html.erb
|
92
204
|
- app/views/raffle_v1/comments/_comment.html.erb
|
93
205
|
- app/views/raffle_v1/comments/_form.html.erb
|
@@ -98,23 +210,142 @@ files:
|
|
98
210
|
- app/views/raffle_v1/posts/new.html.erb
|
99
211
|
- app/views/raffle_v1/posts/show.html.erb
|
100
212
|
- config/initializers/rafflev1.rb
|
213
|
+
- config/rafflev1.rb
|
101
214
|
- config/routes.rb
|
215
|
+
- db/migrate/20130123214645_devise_create_users.rb
|
216
|
+
- db/migrate/20130124004626_devise_create_admins.rb
|
217
|
+
- db/migrate/20130124231541_create_versions.rb
|
218
|
+
- db/migrate/20130127235347_create_programs.rb
|
219
|
+
- db/migrate/20130129155515_add_domain_fields_to_programs.rb
|
220
|
+
- db/migrate/20130129160949_create_terms_and_conditions.rb
|
221
|
+
- db/migrate/20130129183112_add_program_to_users.rb
|
222
|
+
- db/migrate/20130129204204_add_username_to_users.rb
|
223
|
+
- db/migrate/20130129211205_create_roles.rb
|
224
|
+
- db/migrate/20130129212302_create_roles_users.rb
|
225
|
+
- db/migrate/20130130013315_create_locales.rb
|
226
|
+
- db/migrate/20130130154500_create_program_locales.rb
|
227
|
+
- db/migrate/20130130223342_add_settings_to_users.rb
|
228
|
+
- db/migrate/20130130223609_add_locale_available_to_program.rb
|
229
|
+
- db/migrate/20130130223810_add_locales_to_versions.rb
|
230
|
+
- db/migrate/20130130224141_add_locale_name_to_program.rb
|
231
|
+
- db/migrate/20130130224327_add_admin_type_to_admins.rb
|
232
|
+
- db/migrate/20130130225223_add_deleted_at_to_models.rb
|
233
|
+
- db/migrate/20130130230516_create_translations.rb
|
234
|
+
- db/migrate/20130131005653_add_timeout_field_to_program.rb
|
235
|
+
- db/migrate/20130131144951_create_stylesheets.rb
|
236
|
+
- db/migrate/20130202132442_add_tos_to_program.rb
|
237
|
+
- db/migrate/20130202133149_add_programid_to_terms.rb
|
238
|
+
- db/migrate/20130202193646_add_akm_to_terms_and_conditions.rb
|
239
|
+
- db/migrate/20130203035054_create_translation_keys.rb
|
240
|
+
- db/migrate/20130203214314_create_program_settings.rb
|
241
|
+
- db/migrate/20130204025824_add_translationkey_to_translation.rb
|
242
|
+
- db/migrate/20130204030555_create_translation_objects.rb
|
243
|
+
- db/migrate/20130205203152_create_pages.rb
|
244
|
+
- db/migrate/20130208042652_add_fields_to_page.rb
|
245
|
+
- db/migrate/20130208043123_create_page_layouts.rb
|
246
|
+
- db/migrate/20130208051925_add_statusitem_to_page.rb
|
247
|
+
- db/migrate/20130306012135_add_fields_to_user.rb
|
248
|
+
- db/migrate/20130306162357_change_bad_fields_on_user.rb
|
249
|
+
- db/migrate/20130306163554_add_password_created_at_to_user.rb
|
250
|
+
- db/migrate/20130306165455_add_confirmable_to_user.rb
|
251
|
+
- db/migrate/20130306211253_add_username_index_to_user.rb
|
252
|
+
- db/migrate/20130313011833_add_field_to_user.rb
|
102
253
|
- db/migrate/20130326135125_create_raffle_v1_posts.rb
|
103
254
|
- db/migrate/20130326174121_create_raffle_v1_comments.rb
|
104
255
|
- db/seeds.rb
|
256
|
+
- lib/database_cleaner-0.7.2/Gemfile.lock
|
257
|
+
- lib/database_cleaner-0.7.2/History.txt
|
258
|
+
- lib/database_cleaner-0.7.2/LICENSE
|
259
|
+
- lib/database_cleaner-0.7.2/README.textile
|
260
|
+
- lib/database_cleaner-0.7.2/Rakefile
|
261
|
+
- lib/database_cleaner-0.7.2/TODO
|
262
|
+
- lib/database_cleaner-0.7.2/VERSION.yml
|
263
|
+
- lib/database_cleaner-0.7.2/cucumber.yml
|
264
|
+
- lib/database_cleaner-0.7.2/examples/Gemfile
|
265
|
+
- lib/database_cleaner-0.7.2/examples/Gemfile.lock
|
266
|
+
- lib/database_cleaner-0.7.2/examples/config/database.yml.example
|
267
|
+
- lib/database_cleaner-0.7.2/examples/db/sqlite_databases_go_here
|
268
|
+
- lib/database_cleaner-0.7.2/examples/features/example.feature
|
269
|
+
- lib/database_cleaner-0.7.2/examples/features/example_multiple_db.feature
|
270
|
+
- lib/database_cleaner-0.7.2/examples/features/example_multiple_orm.feature
|
271
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/activerecord_steps.rb
|
272
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/couchpotato_steps.rb
|
273
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/datamapper_steps.rb
|
274
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/mongoid_steps.rb
|
275
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
|
276
|
+
- lib/database_cleaner-0.7.2/examples/features/step_definitions/translation_steps.rb
|
277
|
+
- lib/database_cleaner-0.7.2/examples/features/support/env.rb
|
278
|
+
- lib/database_cleaner-0.7.2/examples/lib/activerecord_models.rb
|
279
|
+
- lib/database_cleaner-0.7.2/examples/lib/couchpotato_models.rb
|
280
|
+
- lib/database_cleaner-0.7.2/examples/lib/datamapper_models.rb
|
281
|
+
- lib/database_cleaner-0.7.2/examples/lib/mongoid_models.rb
|
282
|
+
- lib/database_cleaner-0.7.2/examples/lib/mongomapper_models.rb
|
283
|
+
- lib/database_cleaner-0.7.2/features/cleaning.feature
|
284
|
+
- lib/database_cleaner-0.7.2/features/cleaning_default_strategy.feature
|
285
|
+
- lib/database_cleaner-0.7.2/features/cleaning_multiple_dbs.feature
|
286
|
+
- lib/database_cleaner-0.7.2/features/cleaning_multiple_orms.feature
|
287
|
+
- lib/database_cleaner-0.7.2/features/step_definitions/database_cleaner_steps.rb
|
288
|
+
- lib/database_cleaner-0.7.2/features/support/env.rb
|
289
|
+
- lib/database_cleaner-0.7.2/features/support/feature_runner.rb
|
290
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner.rb
|
291
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/base.rb
|
292
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/deletion.rb
|
293
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/transaction.rb
|
294
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/active_record/truncation.rb
|
295
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/base.rb
|
296
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/configuration.rb
|
297
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/base.rb
|
298
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/couch_potato/truncation.rb
|
299
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/cucumber.rb
|
300
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/base.rb
|
301
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/transaction.rb
|
302
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/data_mapper/truncation.rb
|
303
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/generic/base.rb
|
304
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/generic/truncation.rb
|
305
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/mongo/truncation.rb
|
306
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/base.rb
|
307
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/mongo_mapper/truncation.rb
|
308
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/base.rb
|
309
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/mongoid/truncation.rb
|
310
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/null_strategy.rb
|
311
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/base.rb
|
312
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/transaction.rb
|
313
|
+
- lib/database_cleaner-0.7.2/lib/database_cleaner/sequel/truncation.rb
|
314
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/base_spec.rb
|
315
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/transaction_spec.rb
|
316
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/active_record/truncation_spec.rb
|
317
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/base_spec.rb
|
318
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/configuration_spec.rb
|
319
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/couch_potato/truncation_spec.rb
|
320
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/base_spec.rb
|
321
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/transaction_spec.rb
|
322
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/data_mapper/truncation_spec.rb
|
323
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/generic/base_spec.rb
|
324
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/generic/truncation_spec.rb
|
325
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/base_spec.rb
|
326
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/mongo_examples.rb
|
327
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/mongo_mapper/truncation_spec.rb
|
328
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/base_spec.rb
|
329
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/transaction_spec.rb
|
330
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/sequel/truncation_spec.rb
|
331
|
+
- lib/database_cleaner-0.7.2/spec/database_cleaner/shared_strategy_spec.rb
|
332
|
+
- lib/database_cleaner-0.7.2/spec/rcov.opts
|
333
|
+
- lib/database_cleaner-0.7.2/spec/spec.opts
|
334
|
+
- lib/database_cleaner-0.7.2/spec/spec_helper.rb
|
335
|
+
- lib/generators/raffle_v1/install/USAGE
|
105
336
|
- lib/generators/raffle_v1/install/install_generator.rb
|
337
|
+
- lib/raffle_v1.rb
|
106
338
|
- lib/raffle_v1/engine.rb
|
107
339
|
- lib/raffle_v1/version.rb
|
108
|
-
- lib/raffle_v1.rb
|
109
340
|
- lib/tasks/raffle_v1_tasks.rake
|
110
|
-
-
|
111
|
-
- Rakefile
|
112
|
-
- README.md
|
341
|
+
- test/dummy/README.rdoc
|
342
|
+
- test/dummy/Rakefile
|
113
343
|
- test/dummy/app/assets/javascripts/application.js
|
114
344
|
- test/dummy/app/assets/stylesheets/application.css
|
115
345
|
- test/dummy/app/controllers/application_controller.rb
|
116
346
|
- test/dummy/app/helpers/application_helper.rb
|
117
347
|
- test/dummy/app/views/layouts/application.html.erb
|
348
|
+
- test/dummy/config.ru
|
118
349
|
- test/dummy/config/application.rb
|
119
350
|
- test/dummy/config/boot.rb
|
120
351
|
- test/dummy/config/database.yml
|
@@ -130,36 +361,12 @@ files:
|
|
130
361
|
- test/dummy/config/initializers/wrap_parameters.rb
|
131
362
|
- test/dummy/config/locales/en.yml
|
132
363
|
- test/dummy/config/routes.rb
|
133
|
-
- test/dummy/config.ru
|
134
|
-
- test/dummy/db/development.sqlite3
|
135
364
|
- test/dummy/db/schema.rb
|
136
|
-
- test/dummy/db/test.sqlite3
|
137
|
-
- test/dummy/log/development.log
|
138
365
|
- test/dummy/public/404.html
|
139
366
|
- test/dummy/public/422.html
|
140
367
|
- test/dummy/public/500.html
|
141
368
|
- test/dummy/public/favicon.ico
|
142
|
-
- test/dummy/Rakefile
|
143
|
-
- test/dummy/README.rdoc
|
144
369
|
- test/dummy/script/rails
|
145
|
-
- test/dummy/tmp/cache/assets/CA9/000/sprockets%2F4a08cdc7528358910b09a742236ce1d5
|
146
|
-
- test/dummy/tmp/cache/assets/CB2/BD0/sprockets%2F85aac33f66112e73231ea0779f646d48
|
147
|
-
- test/dummy/tmp/cache/assets/CC8/930/sprockets%2Ff75c059e31f23788564cdeb37454997a
|
148
|
-
- test/dummy/tmp/cache/assets/CEF/E80/sprockets%2Fd1d95274bb399cd78c4372bc6330679f
|
149
|
-
- test/dummy/tmp/cache/assets/D00/C30/sprockets%2F7d453e5233c35cc0664189bd1c060dca
|
150
|
-
- test/dummy/tmp/cache/assets/D06/390/sprockets%2F2db5f5807daaf42647f3f1614b2061c7
|
151
|
-
- test/dummy/tmp/cache/assets/D06/5C0/sprockets%2F10f71b69148321ca26d0bb94df09ed46
|
152
|
-
- test/dummy/tmp/cache/assets/D1E/8D0/sprockets%2Fd0f3965813d75eefebe5353981159cb3
|
153
|
-
- test/dummy/tmp/cache/assets/D35/FB0/sprockets%2Ff706372b7e19b270321cbce180d7edd3
|
154
|
-
- test/dummy/tmp/cache/assets/D49/1E0/sprockets%2F1c8eb9a82d46a60faa9b194282db8976
|
155
|
-
- test/dummy/tmp/cache/assets/D67/FA0/sprockets%2F3072f540a4a5f4af3636dc9cee4bd821
|
156
|
-
- test/dummy/tmp/cache/assets/D76/180/sprockets%2Fe06d9366092cba68641ddefa60cb5e97
|
157
|
-
- test/dummy/tmp/cache/assets/D9B/470/sprockets%2Fb7bb6ac37b3929f36a390e4f5b70aec3
|
158
|
-
- test/dummy/tmp/cache/assets/D9F/080/sprockets%2F67fdbee8438ea0fdd3406c4f3b277a14
|
159
|
-
- test/dummy/tmp/cache/assets/DCD/970/sprockets%2Fb3d4eb65c6d389bff1cb035a7c4e74d2
|
160
|
-
- test/dummy/tmp/cache/assets/DD2/7D0/sprockets%2F6d8fc01a6bd28f831fdbe625ea56f2c7
|
161
|
-
- test/dummy/tmp/cache/assets/DF1/CA0/sprockets%2Faa2be5b854dacdce2a30a0fff7412887
|
162
|
-
- test/dummy/tmp/cache/assets/E0B/E40/sprockets%2F96b1b0fa8f4feee3299fc9dcd2078d0d
|
163
370
|
- test/fixtures/raffle_v1/comments.yml
|
164
371
|
- test/fixtures/raffle_v1/posts.yml
|
165
372
|
- test/functional/raffle_v1/comments_controller_test.rb
|
@@ -180,17 +387,17 @@ require_paths:
|
|
180
387
|
- lib
|
181
388
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
389
|
requirements:
|
183
|
-
- -
|
390
|
+
- - ">="
|
184
391
|
- !ruby/object:Gem::Version
|
185
392
|
version: '0'
|
186
393
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
394
|
requirements:
|
188
|
-
- -
|
395
|
+
- - ">="
|
189
396
|
- !ruby/object:Gem::Version
|
190
397
|
version: '0'
|
191
398
|
requirements: []
|
192
399
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.
|
400
|
+
rubygems_version: 2.2.2
|
194
401
|
signing_key:
|
195
402
|
specification_version: 4
|
196
403
|
summary: a simple raffle game
|
@@ -216,10 +423,7 @@ test_files:
|
|
216
423
|
- test/dummy/config/locales/en.yml
|
217
424
|
- test/dummy/config/routes.rb
|
218
425
|
- test/dummy/config.ru
|
219
|
-
- test/dummy/db/development.sqlite3
|
220
426
|
- test/dummy/db/schema.rb
|
221
|
-
- test/dummy/db/test.sqlite3
|
222
|
-
- test/dummy/log/development.log
|
223
427
|
- test/dummy/public/404.html
|
224
428
|
- test/dummy/public/422.html
|
225
429
|
- test/dummy/public/500.html
|
@@ -227,24 +431,6 @@ test_files:
|
|
227
431
|
- test/dummy/Rakefile
|
228
432
|
- test/dummy/README.rdoc
|
229
433
|
- test/dummy/script/rails
|
230
|
-
- test/dummy/tmp/cache/assets/CA9/000/sprockets%2F4a08cdc7528358910b09a742236ce1d5
|
231
|
-
- test/dummy/tmp/cache/assets/CB2/BD0/sprockets%2F85aac33f66112e73231ea0779f646d48
|
232
|
-
- test/dummy/tmp/cache/assets/CC8/930/sprockets%2Ff75c059e31f23788564cdeb37454997a
|
233
|
-
- test/dummy/tmp/cache/assets/CEF/E80/sprockets%2Fd1d95274bb399cd78c4372bc6330679f
|
234
|
-
- test/dummy/tmp/cache/assets/D00/C30/sprockets%2F7d453e5233c35cc0664189bd1c060dca
|
235
|
-
- test/dummy/tmp/cache/assets/D06/390/sprockets%2F2db5f5807daaf42647f3f1614b2061c7
|
236
|
-
- test/dummy/tmp/cache/assets/D06/5C0/sprockets%2F10f71b69148321ca26d0bb94df09ed46
|
237
|
-
- test/dummy/tmp/cache/assets/D1E/8D0/sprockets%2Fd0f3965813d75eefebe5353981159cb3
|
238
|
-
- test/dummy/tmp/cache/assets/D35/FB0/sprockets%2Ff706372b7e19b270321cbce180d7edd3
|
239
|
-
- test/dummy/tmp/cache/assets/D49/1E0/sprockets%2F1c8eb9a82d46a60faa9b194282db8976
|
240
|
-
- test/dummy/tmp/cache/assets/D67/FA0/sprockets%2F3072f540a4a5f4af3636dc9cee4bd821
|
241
|
-
- test/dummy/tmp/cache/assets/D76/180/sprockets%2Fe06d9366092cba68641ddefa60cb5e97
|
242
|
-
- test/dummy/tmp/cache/assets/D9B/470/sprockets%2Fb7bb6ac37b3929f36a390e4f5b70aec3
|
243
|
-
- test/dummy/tmp/cache/assets/D9F/080/sprockets%2F67fdbee8438ea0fdd3406c4f3b277a14
|
244
|
-
- test/dummy/tmp/cache/assets/DCD/970/sprockets%2Fb3d4eb65c6d389bff1cb035a7c4e74d2
|
245
|
-
- test/dummy/tmp/cache/assets/DD2/7D0/sprockets%2F6d8fc01a6bd28f831fdbe625ea56f2c7
|
246
|
-
- test/dummy/tmp/cache/assets/DF1/CA0/sprockets%2Faa2be5b854dacdce2a30a0fff7412887
|
247
|
-
- test/dummy/tmp/cache/assets/E0B/E40/sprockets%2F96b1b0fa8f4feee3299fc9dcd2078d0d
|
248
434
|
- test/fixtures/raffle_v1/comments.yml
|
249
435
|
- test/fixtures/raffle_v1/posts.yml
|
250
436
|
- test/functional/raffle_v1/comments_controller_test.rb
|