kaminari 0.15.1 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kaminari might be problematic. Click here for more details.

Files changed (46) hide show
  1. data/.travis.yml +17 -4
  2. data/CHANGELOG.rdoc +25 -0
  3. data/README.rdoc +23 -6
  4. data/Rakefile +2 -2
  5. data/gemfiles/active_record_30.gemfile +7 -3
  6. data/gemfiles/active_record_31.gemfile +7 -3
  7. data/gemfiles/active_record_32.gemfile +7 -3
  8. data/gemfiles/active_record_40.gemfile +9 -5
  9. data/gemfiles/active_record_41.gemfile +24 -0
  10. data/gemfiles/active_record_edge.gemfile +7 -3
  11. data/gemfiles/data_mapper_12.gemfile +7 -3
  12. data/gemfiles/mongo_mapper.gemfile +7 -2
  13. data/gemfiles/mongoid_24.gemfile +2 -2
  14. data/gemfiles/mongoid_30.gemfile +2 -1
  15. data/gemfiles/mongoid_31.gemfile +1 -1
  16. data/gemfiles/mongoid_40.gemfile +14 -0
  17. data/gemfiles/sinatra_13.gemfile +7 -4
  18. data/gemfiles/sinatra_14.gemfile +14 -6
  19. data/lib/generators/kaminari/views_generator.rb +3 -3
  20. data/lib/kaminari/helpers/action_view_extension.rb +5 -25
  21. data/lib/kaminari/helpers/paginator.rb +10 -3
  22. data/lib/kaminari/helpers/sinatra_helpers.rb +33 -2
  23. data/lib/kaminari/helpers/tags.rb +12 -2
  24. data/lib/kaminari/hooks.rb +0 -1
  25. data/lib/kaminari/models/active_record_extension.rb +2 -2
  26. data/lib/kaminari/models/active_record_relation_methods.rb +4 -0
  27. data/lib/kaminari/models/array_extension.rb +8 -4
  28. data/lib/kaminari/models/data_mapper_collection_methods.rb +4 -0
  29. data/lib/kaminari/models/mongoid_criteria_methods.rb +13 -1
  30. data/lib/kaminari/models/mongoid_extension.rb +0 -12
  31. data/lib/kaminari/models/plucky_criteria_methods.rb +4 -0
  32. data/lib/kaminari/version.rb +1 -1
  33. data/spec/fake_app/active_record/config.rb +1 -1
  34. data/spec/fake_app/mongoid/config.rb +3 -1
  35. data/spec/fake_app/mongoid/models.rb +4 -0
  36. data/spec/fake_app/views/alternative/kaminari/_first_page.html.erb +1 -0
  37. data/spec/fake_app/views/alternative/kaminari/_paginator.html.erb +3 -0
  38. data/spec/generators/views_generator_spec.rb +18 -0
  39. data/spec/helpers/action_view_extension_spec.rb +17 -10
  40. data/spec/helpers/helpers_spec.rb +9 -0
  41. data/spec/helpers/sinatra_helpers_spec.rb +53 -0
  42. data/spec/models/array_spec.rb +23 -4
  43. data/spec/models/mongoid/mongoid_spec.rb +72 -1
  44. data/spec/spec_helper.rb +1 -0
  45. metadata +62 -32
  46. checksums.yaml +0 -7
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 60097f892941d91ad613d645b3bd289a9680661f
4
- data.tar.gz: 5126f2a954a41a37418f9d61fa35f653273b5bb7
5
- SHA512:
6
- metadata.gz: 4f56bf9bb35c7c7e17c8665acdb25c1bac2f91815b8ed771ec7eab8c90afc11aabeaca322269a934aa9dfac1196e92401da099e5282801d0544658c078f8ce37
7
- data.tar.gz: 38a6c284647b832ef51cc2951925de53fb137bcde55810b33edbe5759a7fb4911ade9f2795dce1bf5255305b8cccc9afba7195c61273abf756a8228ab3f131de