kaminari 0.12.4 → 0.13.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.
- data/.travis.yml +6 -0
- data/CHANGELOG +62 -0
- data/{LICENSE.txt → MIT-LICENSE} +0 -0
- data/README.rdoc +81 -14
- data/kaminari.gemspec +18 -5
- data/lib/generators/kaminari/templates/kaminari_config.rb +1 -0
- data/lib/generators/kaminari/views_generator.rb +1 -1
- data/lib/kaminari.rb +73 -2
- data/lib/kaminari/config.rb +3 -1
- data/lib/kaminari/helpers/action_view_extension.rb +74 -20
- data/lib/kaminari/helpers/paginator.rb +23 -5
- data/lib/kaminari/helpers/sinatra_helpers.rb +119 -0
- data/lib/kaminari/hooks.rb +35 -0
- data/lib/kaminari/models/active_record_extension.rb +12 -15
- data/lib/kaminari/models/active_record_model_extension.rb +20 -0
- data/lib/kaminari/models/active_record_relation_methods.rb +23 -13
- data/lib/kaminari/models/array_extension.rb +33 -15
- data/lib/kaminari/models/data_mapper_collection_methods.rb +15 -0
- data/lib/kaminari/models/data_mapper_extension.rb +48 -0
- data/lib/kaminari/models/mongo_mapper_extension.rb +3 -3
- data/lib/kaminari/models/mongoid_criteria_methods.rb +15 -10
- data/lib/kaminari/models/mongoid_extension.rb +7 -5
- data/lib/kaminari/models/page_scope_methods.rb +27 -26
- data/lib/kaminari/models/plucky_criteria_methods.rb +9 -12
- data/lib/kaminari/railtie.rb +2 -31
- data/lib/kaminari/sinatra.rb +13 -0
- data/lib/kaminari/version.rb +1 -1
- data/spec/config/config_spec.rb +1 -1
- data/spec/fake_app.rb +4 -0
- data/spec/fake_gem.rb +6 -0
- data/spec/helpers/action_view_extension_spec.rb +105 -10
- data/spec/helpers/helpers_spec.rb +1 -1
- data/spec/helpers/sinatra_helpers_spec.rb +174 -0
- data/spec/helpers/tags_spec.rb +1 -1
- data/spec/models/active_record_relation_methods_spec.rb +1 -1
- data/spec/models/array_spec.rb +17 -1
- data/spec/models/data_mapper_spec.rb +181 -0
- data/spec/models/default_per_page_spec.rb +1 -1
- data/spec/models/mongo_mapper_spec.rb +14 -11
- data/spec/models/mongoid_spec.rb +63 -6
- data/spec/models/scopes_spec.rb +154 -140
- data/spec/{acceptance → requests}/users_spec.rb +3 -2
- data/spec/spec_helper.rb +3 -1
- data/spec/spec_helper_for_sinatra.rb +13 -0
- data/spec/support/matchers.rb +6 -0
- metadata +263 -170
- data/spec/acceptance/acceptance_helper.rb +0 -5
- data/spec/acceptance/support/helpers.rb +0 -5
- data/spec/acceptance/support/paths.rb +0 -9