sayso-kaminari 0.12.4.001

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.document +5 -0
  2. data/.gemtest +0 -0
  3. data/.gitignore +7 -0
  4. data/.rspec +2 -0
  5. data/CHANGELOG +245 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +20 -0
  8. data/README.rdoc +217 -0
  9. data/Rakefile +22 -0
  10. data/app/views/kaminari/_first_page.html.erb +11 -0
  11. data/app/views/kaminari/_first_page.html.haml +9 -0
  12. data/app/views/kaminari/_first_page.html.slim +10 -0
  13. data/app/views/kaminari/_gap.html.erb +8 -0
  14. data/app/views/kaminari/_gap.html.haml +8 -0
  15. data/app/views/kaminari/_gap.html.slim +9 -0
  16. data/app/views/kaminari/_last_page.html.erb +11 -0
  17. data/app/views/kaminari/_last_page.html.haml +9 -0
  18. data/app/views/kaminari/_last_page.html.slim +10 -0
  19. data/app/views/kaminari/_next_page.html.erb +11 -0
  20. data/app/views/kaminari/_next_page.html.haml +9 -0
  21. data/app/views/kaminari/_next_page.html.slim +10 -0
  22. data/app/views/kaminari/_page.html.erb +12 -0
  23. data/app/views/kaminari/_page.html.haml +10 -0
  24. data/app/views/kaminari/_page.html.slim +11 -0
  25. data/app/views/kaminari/_paginator.html.erb +23 -0
  26. data/app/views/kaminari/_paginator.html.haml +18 -0
  27. data/app/views/kaminari/_paginator.html.slim +19 -0
  28. data/app/views/kaminari/_prev_page.html.erb +11 -0
  29. data/app/views/kaminari/_prev_page.html.haml +9 -0
  30. data/app/views/kaminari/_prev_page.html.slim +10 -0
  31. data/config/locales/kaminari.yml +10 -0
  32. data/kaminari.gemspec +35 -0
  33. data/lib/generators/kaminari/config_generator.rb +16 -0
  34. data/lib/generators/kaminari/templates/kaminari_config.rb +8 -0
  35. data/lib/generators/kaminari/views_generator.rb +103 -0
  36. data/lib/kaminari.rb +2 -0
  37. data/lib/kaminari/config.rb +41 -0
  38. data/lib/kaminari/engine.rb +4 -0
  39. data/lib/kaminari/helpers/action_view_extension.rb +50 -0
  40. data/lib/kaminari/helpers/paginator.rb +154 -0
  41. data/lib/kaminari/helpers/tags.rb +95 -0
  42. data/lib/kaminari/models/active_record_extension.rb +25 -0
  43. data/lib/kaminari/models/active_record_relation_methods.rb +35 -0
  44. data/lib/kaminari/models/array_extension.rb +42 -0
  45. data/lib/kaminari/models/configuration_methods.rb +20 -0
  46. data/lib/kaminari/models/fixer.rb +102 -0
  47. data/lib/kaminari/models/mongo_mapper_extension.rb +18 -0
  48. data/lib/kaminari/models/mongoid_criteria_methods.rb +18 -0
  49. data/lib/kaminari/models/mongoid_extension.rb +31 -0
  50. data/lib/kaminari/models/page_scope_methods.rb +36 -0
  51. data/lib/kaminari/models/plucky_criteria_methods.rb +18 -0
  52. data/lib/kaminari/railtie.rb +37 -0
  53. data/lib/kaminari/version.rb +3 -0
  54. data/spec/acceptance/acceptance_helper.rb +5 -0
  55. data/spec/acceptance/support/helpers.rb +5 -0
  56. data/spec/acceptance/support/paths.rb +9 -0
  57. data/spec/acceptance/users_spec.rb +53 -0
  58. data/spec/config/config_spec.rb +61 -0
  59. data/spec/fake_app.rb +80 -0
  60. data/spec/helpers/action_view_extension_spec.rb +37 -0
  61. data/spec/helpers/helpers_spec.rb +135 -0
  62. data/spec/helpers/tags_spec.rb +140 -0
  63. data/spec/models/active_record_relation_methods_spec.rb +28 -0
  64. data/spec/models/array_spec.rb +105 -0
  65. data/spec/models/default_per_page_spec.rb +29 -0
  66. data/spec/models/mongo_mapper_spec.rb +79 -0
  67. data/spec/models/mongoid_spec.rb +72 -0
  68. data/spec/models/scopes_spec.rb +149 -0
  69. data/spec/spec_helper.rb +28 -0
  70. data/spec/support/database_cleaner.rb +13 -0
  71. data/spec/support/matchers.rb +46 -0
  72. metadata +264 -0
@@ -0,0 +1,29 @@
1
+ require File.expand_path('../spec_helper', File.dirname(__FILE__))
2
+
3
+ describe 'default per_page' do
4
+ describe 'AR::Base' do
5
+ subject { ActiveRecord::Base }
6
+ it { should_not respond_to :paginates_per }
7
+ end
8
+
9
+ subject { User.page 0 }
10
+
11
+ context 'by default' do
12
+ its(:limit_value) { should == 25 }
13
+ end
14
+
15
+ context 'when explicitly set via paginates_per' do
16
+ before { User.paginates_per 1326 }
17
+ its(:limit_value) { should == 1326 }
18
+ after { User.paginates_per nil }
19
+ end
20
+
21
+ describe "default per_page value's independency per model" do
22
+ context "when User's default per_page was changed" do
23
+ before { User.paginates_per 1326 }
24
+ subject { Book.page 0 }
25
+ its(:limit_value) { should == 25 }
26
+ after { User.paginates_per nil }
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,79 @@
1
+ require File.expand_path('../spec_helper', File.dirname(__FILE__))
2
+ require 'mongo_mapper'
3
+ require File.expand_path('../../lib/kaminari/models/mongo_mapper_extension', File.dirname(__FILE__))
4
+
5
+ describe Kaminari::MongoMapperExtension do
6
+ before :all do
7
+ MongoMapper.connection = Mongo::Connection.new('localhost', 27017)
8
+ MongoMapper.database = "kaminari_test"
9
+ class Developer
10
+ include ::MongoMapper::Document
11
+ key :salary, Integer
12
+ end
13
+ end
14
+ before do
15
+ stub(subject).count { 300 } # in order to avoid DB access...
16
+ end
17
+
18
+ describe '#page' do
19
+ context 'page 1' do
20
+ subject { Developer.page(1) }
21
+ it { should be_a Plucky::Query }
22
+ its(:current_page) { should == 1 }
23
+ its(:limit_value) { should == 25 }
24
+ its(:num_pages) { should == 12 }
25
+ it { should skip(0) }
26
+ end
27
+
28
+ context 'page 2' do
29
+ subject { Developer.page 2 }
30
+ it { should be_a Plucky::Query }
31
+ its(:current_page) { should == 2 }
32
+ its(:limit_value) { should == 25 }
33
+ its(:num_pages) { should == 12 }
34
+ it { should skip 25 }
35
+ end
36
+
37
+ context 'page "foobar"' do
38
+ subject { Developer.page 'foobar' }
39
+ it { should be_a Plucky::Query }
40
+ its(:current_page) { should == 1 }
41
+ its(:limit_value) { should == 25 }
42
+ its(:num_pages) { should == 12 }
43
+ it { should skip 0 }
44
+ end
45
+
46
+ context 'with criteria before' do
47
+ it "should have the proper criteria source" do
48
+ Developer.where(:salary => 1).page(2).criteria.source.should == {:salary => 1}
49
+ end
50
+
51
+ subject { Developer.where(:salary => 1).page 2 }
52
+ its(:current_page) { should == 2 }
53
+ its(:limit_value) { should == 25 }
54
+ its(:num_pages) { should == 12 }
55
+ it { should skip 25 }
56
+ end
57
+
58
+ context 'with criteria after' do
59
+ it "should have the proper criteria source" do
60
+ Developer.where(:salary => 1).page(2).criteria.source.should == {:salary => 1}
61
+ end
62
+
63
+ subject { Developer.page(2).where(:salary => 1) }
64
+ its(:current_page) { should == 2 }
65
+ its(:limit_value) { should == 25 }
66
+ its(:num_pages) { should == 12 }
67
+ it { should skip 25 }
68
+ end
69
+ end
70
+
71
+ describe '#per' do
72
+ subject { Developer.page(2).per(10) }
73
+ it { should be_a Plucky::Query }
74
+ its(:current_page) { should == 2 }
75
+ its(:limit_value) { should == 10 }
76
+ its(:num_pages) { should == 30 }
77
+ it { should skip 10 }
78
+ end
79
+ end
@@ -0,0 +1,72 @@
1
+ require File.expand_path('../spec_helper', File.dirname(__FILE__))
2
+ require 'mongoid'
3
+ require File.expand_path('../../lib/kaminari/models/mongoid_extension', File.dirname(__FILE__))
4
+
5
+ describe Kaminari::MongoidExtension do
6
+ before :all do
7
+ class Developer
8
+ include ::Mongoid::Document
9
+ field :salary, :type => Integer
10
+ end
11
+ end
12
+ before do
13
+ stub(subject).count { 300 } # in order to avoid DB access...
14
+ end
15
+
16
+ describe '#page' do
17
+ context 'page 1' do
18
+ subject { Developer.page 1 }
19
+ it { should be_a Mongoid::Criteria }
20
+ its(:current_page) { should == 1 }
21
+ its(:limit_value) { should == 25 }
22
+ its(:num_pages) { should == 12 }
23
+ it { should skip(0) }
24
+ end
25
+
26
+ context 'page 2' do
27
+ subject { Developer.page 2 }
28
+ it { should be_a Mongoid::Criteria }
29
+ its(:current_page) { should == 2 }
30
+ its(:limit_value) { should == 25 }
31
+ its(:num_pages) { should == 12 }
32
+ it { should skip 25 }
33
+ end
34
+
35
+ context 'page "foobar"' do
36
+ subject { Developer.page 'foobar' }
37
+ it { should be_a Mongoid::Criteria }
38
+ its(:current_page) { should == 1 }
39
+ its(:limit_value) { should == 25 }
40
+ its(:num_pages) { should == 12 }
41
+ it { should skip 0 }
42
+ end
43
+
44
+ context 'with criteria before' do
45
+ subject { Developer.where(:salary => 1).page 2 }
46
+ its(:selector) { should == {:salary => 1} }
47
+ its(:current_page) { should == 2 }
48
+ its(:limit_value) { should == 25 }
49
+ its(:num_pages) { should == 12 }
50
+ it { should skip 25 }
51
+ end
52
+
53
+ context 'with criteria after' do
54
+ subject { Developer.page(2).where(:salary => 1) }
55
+ its(:selector) { should == {:salary => 1} }
56
+ its(:current_page) { should == 2 }
57
+ its(:limit_value) { should == 25 }
58
+ its(:num_pages) { should == 12 }
59
+ it { should skip 25 }
60
+ end
61
+
62
+ end
63
+
64
+ describe '#per' do
65
+ subject { Developer.page(2).per(10) }
66
+ it { should be_a Mongoid::Criteria }
67
+ its(:current_page) { should == 2 }
68
+ its(:limit_value) { should == 10 }
69
+ its(:num_pages) { should == 30 }
70
+ it { should skip 10 }
71
+ end
72
+ end
@@ -0,0 +1,149 @@
1
+ require File.expand_path('../spec_helper', File.dirname(__FILE__))
2
+
3
+ describe Kaminari::ActiveRecordExtension do
4
+ before :all do
5
+ 1.upto(100) {|i| User.create! :name => "user#{'%03d' % i}", :age => (i / 10)}
6
+ end
7
+
8
+ describe '#page' do
9
+ shared_examples_for 'the first page' do
10
+ it { should have(25).users }
11
+ its('first.name') { should == 'user001' }
12
+ end
13
+
14
+ shared_examples_for 'blank page' do
15
+ it { should have(0).users }
16
+ end
17
+
18
+ context 'page 1' do
19
+ subject { User.page 1 }
20
+ it_should_behave_like 'the first page'
21
+ end
22
+
23
+ context 'page 2' do
24
+ subject { User.page 2 }
25
+ it { should have(25).users }
26
+ its('first.name') { should == 'user026' }
27
+ end
28
+
29
+ context 'page without an argument' do
30
+ subject { User.page }
31
+ it_should_behave_like 'the first page'
32
+ end
33
+
34
+ context 'page < 1' do
35
+ subject { User.page 0 }
36
+ it_should_behave_like 'the first page'
37
+ end
38
+
39
+ context 'page > max page' do
40
+ subject { User.page 5 }
41
+ it_should_behave_like 'blank page'
42
+ end
43
+
44
+ describe 'ensure #order_values is preserved' do
45
+ subject { User.order('id').page 1 }
46
+ its(:order_values) { should == ['id'] }
47
+ end
48
+ end
49
+
50
+ describe '#per' do
51
+ context 'page 1 per 5' do
52
+ subject { User.page(1).per(5) }
53
+ it { should have(5).users }
54
+ its('first.name') { should == 'user001' }
55
+ end
56
+ end
57
+
58
+ describe '#num_pages' do
59
+ context 'per 25 (default)' do
60
+ subject { User.page }
61
+ its(:num_pages) { should == 4 }
62
+ end
63
+
64
+ context 'per 7' do
65
+ subject { User.page(2).per(7) }
66
+ its(:num_pages) { should == 15 }
67
+ end
68
+
69
+ context 'per 65536' do
70
+ subject { User.page(50).per(65536) }
71
+ its(:num_pages) { should == 1 }
72
+ end
73
+
74
+ context 'per 0 (using default)' do
75
+ subject { User.page(50).per(0) }
76
+ its(:num_pages) { should == 4 }
77
+ end
78
+
79
+ context 'per -1 (using default)' do
80
+ subject { User.page(5).per(-1) }
81
+ its(:num_pages) { should == 4 }
82
+ end
83
+
84
+ context 'per "String value that can not be converted into Number" (using default)' do
85
+ subject { User.page(5).per('aho') }
86
+ its(:num_pages) { should == 4 }
87
+ end
88
+ end
89
+
90
+ describe '#current_page' do
91
+ context 'page 1' do
92
+ subject { User.page }
93
+ its(:current_page) { should == 1 }
94
+ end
95
+
96
+ context 'page 2' do
97
+ subject { User.page(2).per 3 }
98
+ its(:current_page) { should == 2 }
99
+ end
100
+ end
101
+
102
+ describe '#first_page?' do
103
+ context 'on first page' do
104
+ subject { User.page(1).per(10) }
105
+ its(:first_page?) { should == true }
106
+ end
107
+
108
+ context 'not on first page' do
109
+ subject { User.page(5).per(10) }
110
+ its(:first_page?) { should == false }
111
+ end
112
+ end
113
+
114
+ describe '#last_page?' do
115
+ context 'on last page' do
116
+ subject { User.page(10).per(10) }
117
+ its(:last_page?) { should == true }
118
+ end
119
+
120
+ context 'not on last page' do
121
+ subject { User.page(1).per(10) }
122
+ its(:last_page?) { should == false }
123
+ end
124
+ end
125
+
126
+ describe '#count' do
127
+ context 'page 1' do
128
+ subject { User.page }
129
+ its(:count) { should == 25 }
130
+ end
131
+
132
+ context 'page 2' do
133
+ subject { User.page 2 }
134
+ its(:count) { should == 25 }
135
+ end
136
+ end
137
+
138
+ context 'chained with .group' do
139
+ subject { User.group('age').page(2).per 5 }
140
+ # 0..10
141
+ its(:total_count) { should == 11 }
142
+ its(:num_pages) { should == 3 }
143
+ end
144
+
145
+ context 'activerecord descendants' do
146
+ subject { ActiveRecord::Base.descendants }
147
+ its(:length) { should_not == 0 }
148
+ end
149
+ end
@@ -0,0 +1,28 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rails'
4
+ require 'mongoid'
5
+ require 'kaminari'
6
+ require 'database_cleaner'
7
+ # Ensure we use 'syck' instead of 'psych' in 1.9.2
8
+ # RubyGems >= 1.5.0 uses 'psych' on 1.9.2, but
9
+ # Psych does not yet support YAML 1.1 merge keys.
10
+ # Merge keys is often used in mongoid.yml
11
+ # See: http://redmine.ruby-lang.org/issues/show/4300
12
+ if RUBY_VERSION >= '1.9.2'
13
+ YAML::ENGINE.yamler = 'syck'
14
+ end
15
+ require File.join(File.dirname(__FILE__), 'fake_app')
16
+
17
+ require 'rspec/rails'
18
+ # Requires supporting files with custom matchers and macros, etc,
19
+ # in ./support/ and its subdirectories.
20
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
21
+
22
+ RSpec.configure do |config|
23
+ config.mock_with :rr
24
+ config.before :all do
25
+ # ActiveRecord::Base.connection.execute 'CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))' unless ActiveRecord::Base.connection.table_exists? 'users'
26
+ CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'users'
27
+ end
28
+ end
@@ -0,0 +1,13 @@
1
+ DatabaseCleaner.strategy = :transaction
2
+
3
+ RSpec.configure do |config|
4
+ config.before :suite do
5
+ DatabaseCleaner.clean_with :truncation
6
+ end
7
+ config.before :each do
8
+ DatabaseCleaner.start
9
+ end
10
+ config.after :each do
11
+ DatabaseCleaner.clean
12
+ end
13
+ end
@@ -0,0 +1,46 @@
1
+ RSpec::Matchers.define :contain_tag do |klass|
2
+ match do |collection|
3
+ if @num.blank?
4
+ collection.any? {|tag| tag.is_a? klass}
5
+ else
6
+ (@count = collection.count {|tag| tag.is_a? klass}) == @num
7
+ end
8
+ end
9
+
10
+ def count(num)
11
+ @num = num
12
+ self
13
+ end
14
+
15
+ description do
16
+ "contain #{@num || 'any'} instance(s) of #{klass.name}"
17
+ end
18
+ failure_message_for_should do |collection|
19
+ "expected #{@num || 'any'} instance(s) of #{klass.name} but was #{@count}"
20
+ end
21
+ end
22
+
23
+ RSpec::Matchers.define :contain_tag_old do |count|
24
+ match do |collection|
25
+ (@count = collection.count {|tag| tag.is_a? @klass}) == count
26
+ end
27
+
28
+ def instance_of(klass)
29
+ @klass = klass
30
+ self
31
+ end
32
+ alias :instances_of :instance_of
33
+
34
+ description do
35
+ "contain #{count || 'any'} instance(s) of #{@klass.name}"
36
+ end
37
+ failure_message_for_should do |collection|
38
+ "expected #{count || 'any'} instance(s) of #{@klass.name} but was #{@count}"
39
+ end
40
+ end
41
+
42
+ RSpec::Matchers.define :skip do |num|
43
+ match do |criteria|
44
+ criteria.instance_variable_get('@options')[:skip] == num
45
+ end
46
+ end
metadata ADDED
@@ -0,0 +1,264 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sayso-kaminari
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.12.4.001
6
+ platform: ruby
7
+ authors:
8
+ - SaySo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-23 00:00:00 +02:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rails
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 3.0.0
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 1.0.0
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: sqlite3
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: mongoid
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "2"
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: mongo_mapper
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0.9"
69
+ type: :development
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: "0"
80
+ type: :development
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec-rails
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ type: :development
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: rr
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: "0"
102
+ type: :development
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: steak
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
116
+ name: capybara
117
+ prerelease: false
118
+ requirement: &id010 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
124
+ type: :development
125
+ version_requirements: *id010
126
+ - !ruby/object:Gem::Dependency
127
+ name: database_cleaner
128
+ prerelease: false
129
+ requirement: &id011 !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: "0"
135
+ type: :development
136
+ version_requirements: *id011
137
+ description: Kaminari is a Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3 - forked and gemified for sayso
138
+ email:
139
+ - sayso@truvolabs.com
140
+ executables: []
141
+
142
+ extensions: []
143
+
144
+ extra_rdoc_files:
145
+ - README.rdoc
146
+ files:
147
+ - .document
148
+ - .gemtest
149
+ - .gitignore
150
+ - .rspec
151
+ - CHANGELOG
152
+ - Gemfile
153
+ - LICENSE.txt
154
+ - README.rdoc
155
+ - Rakefile
156
+ - app/views/kaminari/_first_page.html.erb
157
+ - app/views/kaminari/_first_page.html.haml
158
+ - app/views/kaminari/_first_page.html.slim
159
+ - app/views/kaminari/_gap.html.erb
160
+ - app/views/kaminari/_gap.html.haml
161
+ - app/views/kaminari/_gap.html.slim
162
+ - app/views/kaminari/_last_page.html.erb
163
+ - app/views/kaminari/_last_page.html.haml
164
+ - app/views/kaminari/_last_page.html.slim
165
+ - app/views/kaminari/_next_page.html.erb
166
+ - app/views/kaminari/_next_page.html.haml
167
+ - app/views/kaminari/_next_page.html.slim
168
+ - app/views/kaminari/_page.html.erb
169
+ - app/views/kaminari/_page.html.haml
170
+ - app/views/kaminari/_page.html.slim
171
+ - app/views/kaminari/_paginator.html.erb
172
+ - app/views/kaminari/_paginator.html.haml
173
+ - app/views/kaminari/_paginator.html.slim
174
+ - app/views/kaminari/_prev_page.html.erb
175
+ - app/views/kaminari/_prev_page.html.haml
176
+ - app/views/kaminari/_prev_page.html.slim
177
+ - config/locales/kaminari.yml
178
+ - kaminari.gemspec
179
+ - lib/generators/kaminari/config_generator.rb
180
+ - lib/generators/kaminari/templates/kaminari_config.rb
181
+ - lib/generators/kaminari/views_generator.rb
182
+ - lib/kaminari.rb
183
+ - lib/kaminari/config.rb
184
+ - lib/kaminari/engine.rb
185
+ - lib/kaminari/helpers/action_view_extension.rb
186
+ - lib/kaminari/helpers/paginator.rb
187
+ - lib/kaminari/helpers/tags.rb
188
+ - lib/kaminari/models/active_record_extension.rb
189
+ - lib/kaminari/models/active_record_relation_methods.rb
190
+ - lib/kaminari/models/array_extension.rb
191
+ - lib/kaminari/models/configuration_methods.rb
192
+ - lib/kaminari/models/fixer.rb
193
+ - lib/kaminari/models/mongo_mapper_extension.rb
194
+ - lib/kaminari/models/mongoid_criteria_methods.rb
195
+ - lib/kaminari/models/mongoid_extension.rb
196
+ - lib/kaminari/models/page_scope_methods.rb
197
+ - lib/kaminari/models/plucky_criteria_methods.rb
198
+ - lib/kaminari/railtie.rb
199
+ - lib/kaminari/version.rb
200
+ - spec/acceptance/acceptance_helper.rb
201
+ - spec/acceptance/support/helpers.rb
202
+ - spec/acceptance/support/paths.rb
203
+ - spec/acceptance/users_spec.rb
204
+ - spec/config/config_spec.rb
205
+ - spec/fake_app.rb
206
+ - spec/helpers/action_view_extension_spec.rb
207
+ - spec/helpers/helpers_spec.rb
208
+ - spec/helpers/tags_spec.rb
209
+ - spec/models/active_record_relation_methods_spec.rb
210
+ - spec/models/array_spec.rb
211
+ - spec/models/default_per_page_spec.rb
212
+ - spec/models/mongo_mapper_spec.rb
213
+ - spec/models/mongoid_spec.rb
214
+ - spec/models/scopes_spec.rb
215
+ - spec/spec_helper.rb
216
+ - spec/support/database_cleaner.rb
217
+ - spec/support/matchers.rb
218
+ has_rdoc: true
219
+ homepage: https://github.com/sayso/kaminari
220
+ licenses:
221
+ - MIT
222
+ post_install_message:
223
+ rdoc_options: []
224
+
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ none: false
229
+ requirements:
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: "0"
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ none: false
235
+ requirements:
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: "0"
239
+ requirements: []
240
+
241
+ rubyforge_project: kaminari
242
+ rubygems_version: 1.6.2
243
+ signing_key:
244
+ specification_version: 3
245
+ summary: A pagination engine plugin for Rails 3 - forked and gemified for sayso
246
+ test_files:
247
+ - spec/acceptance/acceptance_helper.rb
248
+ - spec/acceptance/support/helpers.rb
249
+ - spec/acceptance/support/paths.rb
250
+ - spec/acceptance/users_spec.rb
251
+ - spec/config/config_spec.rb
252
+ - spec/fake_app.rb
253
+ - spec/helpers/action_view_extension_spec.rb
254
+ - spec/helpers/helpers_spec.rb
255
+ - spec/helpers/tags_spec.rb
256
+ - spec/models/active_record_relation_methods_spec.rb
257
+ - spec/models/array_spec.rb
258
+ - spec/models/default_per_page_spec.rb
259
+ - spec/models/mongo_mapper_spec.rb
260
+ - spec/models/mongoid_spec.rb
261
+ - spec/models/scopes_spec.rb
262
+ - spec/spec_helper.rb
263
+ - spec/support/database_cleaner.rb
264
+ - spec/support/matchers.rb