merit 3.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -20
  3. data/NEWS.md +30 -0
  4. data/README.md +14 -2
  5. data/RELEASING.md +16 -0
  6. data/Rakefile +13 -1
  7. data/app/models/merit/badge.rb +2 -19
  8. data/lib/merit.rb +13 -35
  9. data/lib/merit/{rules_badge_methods.rb → badge_rules_methods.rb} +0 -0
  10. data/lib/merit/base_target_finder.rb +1 -6
  11. data/lib/merit/{model_additions.rb → class_methods.rb} +2 -19
  12. data/lib/merit/controller_extensions.rb +4 -22
  13. data/lib/{generators → merit/generators}/active_record/install_generator.rb +12 -8
  14. data/lib/{generators → merit/generators}/active_record/merit_generator.rb +8 -4
  15. data/lib/{generators → merit/generators}/active_record/remove_generator.rb +9 -5
  16. data/lib/{generators/active_record/templates/add_merit_fields_to_model.rb → merit/generators/active_record/templates/add_merit_fields_to_model.erb} +1 -1
  17. data/lib/{generators/active_record/templates/create_badges_sashes.rb → merit/generators/active_record/templates/create_badges_sashes.erb} +1 -1
  18. data/lib/{generators/active_record/templates/create_merit_actions.rb → merit/generators/active_record/templates/create_merit_actions.erb} +1 -1
  19. data/lib/{generators/active_record/templates/create_merit_activity_logs.rb → merit/generators/active_record/templates/create_merit_activity_logs.erb} +1 -1
  20. data/lib/{generators/active_record/templates/create_sashes.rb → merit/generators/active_record/templates/create_sashes.erb} +1 -1
  21. data/lib/{generators/active_record/templates/create_scores_and_points.rb → merit/generators/active_record/templates/create_scores_and_points.erb} +2 -2
  22. data/lib/{generators/active_record/templates/remove_merit_fields_from_model.rb → merit/generators/active_record/templates/remove_merit_fields_from_model.erb} +1 -1
  23. data/lib/{generators/active_record/templates/remove_merit_tables.rb → merit/generators/active_record/templates/remove_merit_tables.erb} +1 -1
  24. data/lib/merit/generators/install_generator.rb +21 -0
  25. data/lib/{generators/merit → merit/generators}/merit_generator.rb +7 -2
  26. data/lib/{generators/merit → merit/generators}/remove_generator.rb +7 -2
  27. data/lib/{generators/merit/templates/merit.rb → merit/generators/templates/merit.erb} +1 -4
  28. data/lib/{generators/merit/templates/merit_badge_rules.rb → merit/generators/templates/merit_badge_rules.erb} +0 -0
  29. data/lib/{generators/merit/templates/merit_point_rules.rb → merit/generators/templates/merit_point_rules.erb} +0 -0
  30. data/lib/{generators/merit/templates/merit_rank_rules.rb → merit/generators/templates/merit_rank_rules.erb} +0 -0
  31. data/{app/models/merit/action.rb → lib/merit/models/action_concern.rb} +12 -10
  32. data/lib/merit/models/active_record/action.rb +11 -0
  33. data/lib/merit/models/active_record/{merit/activity_log.rb → activity_log.rb} +4 -6
  34. data/lib/merit/models/active_record/{merit/badges_sash.rb → badges_sash.rb} +4 -4
  35. data/lib/merit/models/active_record/{merit/sash.rb → sash.rb} +5 -2
  36. data/lib/merit/models/active_record/{merit/score.rb → score.rb} +4 -1
  37. data/lib/merit/models/badges_sash_concern.rb +13 -0
  38. data/lib/merit/models/base/badges_sash.rb +1 -1
  39. data/lib/merit/models/base/sash.rb +1 -1
  40. data/lib/merit/models/sash_concern.rb +53 -0
  41. data/lib/merit/{rules_points_methods.rb → point_rules_methods.rb} +0 -0
  42. data/lib/merit/{rules_rank_methods.rb → rank_rules_methods.rb} +3 -18
  43. data/merit.gemspec +7 -5
  44. data/test/dummy/app/controllers/comments_controller.rb +1 -1
  45. data/test/dummy/app/controllers/registrations_controller.rb +1 -1
  46. data/test/dummy/app/models/address.rb +1 -12
  47. data/test/dummy/app/models/comment.rb +3 -25
  48. data/test/dummy/app/models/user.rb +1 -18
  49. data/test/dummy/config/application.rb +8 -10
  50. data/test/dummy/config/application_api_only.rb +28 -0
  51. data/test/dummy/config/environment_api_only.rb +7 -0
  52. data/test/dummy/config/initializers/new_framework_defaults.rb +3 -0
  53. data/test/dummy/db/schema.rb +55 -59
  54. data/test/integration/navigation_test.rb +2 -2
  55. data/test/test_helper.rb +11 -12
  56. data/test/unit/base_target_finder_test.rb +7 -26
  57. data/test/unit/merit_unit_test.rb +13 -17
  58. data/test/unit/rule_unit_test.rb +15 -8
  59. data/test/unit/rules_matcher_test.rb +9 -6
  60. data/test/unit/sash_finder_test.rb +5 -5
  61. data/test/unit/score_test.rb +1 -1
  62. data/test/unit/target_finder_test.rb +13 -13
  63. metadata +64 -73
  64. data/UPGRADING.md +0 -256
  65. data/lib/generators/active_record/templates/add_target_data_to_merit_actions.rb +0 -5
  66. data/lib/generators/active_record/upgrade_generator.rb +0 -36
  67. data/lib/generators/merit/install_generator.rb +0 -16
  68. data/lib/generators/merit/upgrade_generator.rb +0 -7
  69. data/lib/merit/models/active_record/merit/action.rb +0 -12
  70. data/lib/merit/models/mongoid/merit/action.rb +0 -18
  71. data/lib/merit/models/mongoid/merit/activity_log.rb +0 -11
  72. data/lib/merit/models/mongoid/merit/badges_sash.rb +0 -22
  73. data/lib/merit/models/mongoid/merit/sash.rb +0 -30
  74. data/lib/merit/models/mongoid/merit/score.rb +0 -45
  75. data/test/dummy/db/migrate/20140906225844_create_players.rb +0 -8
  76. data/test/dummy/public/javascripts/application.js +0 -2
  77. data/test/dummy/public/javascripts/controls.js +0 -965
  78. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  79. data/test/dummy/public/javascripts/effects.js +0 -1123
  80. data/test/dummy/public/javascripts/prototype.js +0 -6001
  81. data/test/dummy/public/javascripts/rails.js +0 -191
  82. data/test/orm/active_record.rb +0 -2
  83. data/test/orm/mongoid.rb +0 -6
  84. data/test/orm_models/active_record.rb +0 -11
  85. data/test/orm_models/mongoid.rb +0 -15

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.