gamification 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/gamification/application_controller.rb +1 -1
- data/app/controllers/gamification/rewards_controller.rb +46 -0
- data/app/helpers/gamification/application_helper.rb +24 -0
- data/app/helpers/gamification/rewards_helper.rb +20 -0
- data/app/models/gamification/goal.rb +5 -0
- data/app/models/gamification/medal.rb +5 -0
- data/app/models/gamification/reward.rb +5 -0
- data/app/uploaders/gamification/image_uploader.rb +47 -0
- data/app/views/gamification/rewards/_presentation.html.erb +7 -0
- data/app/views/gamification/rewards/_reward.html.erb +9 -0
- data/app/views/gamification/scorings/create.html.erb +2 -0
- data/config/initializers/routing.rb +15 -0
- data/config/locales/en.yml +3 -0
- data/config/locales/nb.yml +35 -0
- data/config/routes.rb +1 -0
- data/db/migrate/20140310081749_rename_everything.rb +10 -0
- data/db/migrate/20140313134259_create_gamification_medals.rb +11 -0
- data/db/migrate/20140314132611_add_description_to_gamification_medals.rb +5 -0
- data/db/migrate/20140315142524_rename_gamification_tasks_to_goals.rb +7 -0
- data/db/migrate/20140318220723_add_seen_at_to_gamification_rewards.rb +9 -0
- data/lib/gamification.rb +1 -0
- data/lib/gamification/activerecord.rb +13 -0
- data/lib/gamification/concerns.rb +2 -0
- data/lib/gamification/concerns/models.rb +3 -2
- data/lib/gamification/concerns/models/goal.rb +44 -0
- data/lib/gamification/concerns/models/medal.rb +13 -0
- data/lib/gamification/concerns/models/reward.rb +33 -0
- data/lib/gamification/concerns/rewardable.rb +12 -0
- data/lib/gamification/concerns/rewarding.rb +7 -0
- data/lib/gamification/engine.rb +10 -0
- data/lib/gamification/version.rb +1 -1
- data/spec/controllers/gamification/rewards_controller_spec.rb +57 -0
- data/spec/dummy/app/assets/javascripts/articles.js +2 -0
- data/spec/dummy/app/assets/stylesheets/articles.css +4 -0
- data/spec/dummy/app/controllers/articles_controller.rb +5 -0
- data/spec/dummy/app/helpers/articles_helper.rb +2 -0
- data/spec/dummy/app/models/article.rb +2 -2
- data/spec/dummy/app/models/user.rb +2 -2
- data/spec/dummy/app/views/articles/show.html.erb +1 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +25 -12
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +3893 -1707
- data/spec/dummy/log/test.log +22080 -2888
- data/spec/dummy/spec/controllers/articles_controller_spec.rb +15 -0
- data/spec/dummy/spec/helpers/articles_helper_spec.rb +14 -0
- data/spec/dummy/spec/models/article_spec.rb +0 -1
- data/spec/dummy/spec/models/user_spec.rb +0 -1
- data/spec/dummy/spec/views/articles/show.html.erb_spec.rb +4 -0
- data/spec/factories/gamification_goals.rb +14 -0
- data/spec/factories/gamification_medals.rb +10 -0
- data/spec/factories/gamification_rewards.rb +8 -0
- data/spec/helpers/gamification/application_helper_spec.rb +14 -0
- data/spec/helpers/gamification/rewards_helper_spec.rb +18 -0
- data/spec/lib/gamification/concerns/rewardable_spec.rb +17 -0
- data/spec/models/gamification/goal_spec.rb +65 -0
- data/spec/models/gamification/medal_spec.rb +6 -0
- data/spec/models/gamification/reward_spec.rb +102 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/views/gamification/rewards/_presentation.html.erb_spec.rb +23 -0
- metadata +173 -28
- data/MIT-LICENSE +0 -20
- data/app/models/gamification/scoring.rb +0 -5
- data/app/models/gamification/task.rb +0 -5
- data/app/views/layouts/gamification/application.html.erb +0 -14
- data/lib/gamification/concerns/models/scoring.rb +0 -8
- data/lib/gamification/concerns/models/task.rb +0 -50
- data/spec/factories/gamification_scorings.rb +0 -8
- data/spec/factories/gamification_tasks.rb +0 -8
- data/spec/models/gamification/scoring_spec.rb +0 -7
- data/spec/models/gamification/task_spec.rb +0 -77
There are too many changes on this page to be displayed.
The amount of changes on this page would crash your brower.
You can still verify the content by downloading the gem file manually.