kaminari 0.6.1 → 0.7.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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.7.0
2
+
3
+ * Ajaxified paginator templates
4
+
1
5
  == 0.6.0
2
6
 
3
7
  * Hamlized paginator templates
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source 'http://rubygems.org'
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
- gem 'rspec', '>= 2.4.0'
9
+ gem 'rspec', '>= 2.5.0'
10
10
  gem 'rr', '>= 1.0.2'
11
11
  gem 'bundler', '>= 1.0.0'
12
12
  gem 'jeweler', '>= 1.5.2'
@@ -15,7 +15,7 @@ group :development do
15
15
  # gem 'rails', '>= 3.0.3'
16
16
  gem 'rack', :git => 'git://github.com/rack/rack.git'
17
17
  gem 'arel', :git => 'git://github.com/rails/arel.git'
18
- gem 'rspec-rails', :git => 'git://github.com/rspec/rspec-rails.git'# 2.4.1 needed
18
+ gem 'rspec-rails', '>= 2.5.0'
19
19
  gem 'sqlite3', '>= 1.3.3'
20
20
  gem 'ruby-debug'
21
21
  end
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
 
13
13
  GIT
14
14
  remote: git://github.com/rails/rails.git
15
- revision: 59f7780a3454a14054d1d33d9b6e31192ab2e58b
15
+ revision: 1fd9d978a737d36cf7cca698f0fcbfc6fcdbed98
16
16
  specs:
17
17
  actionmailer (3.1.0.beta)
18
18
  actionpack (= 3.1.0.beta)
@@ -56,16 +56,6 @@ GIT
56
56
  rake (>= 0.8.7)
57
57
  thor (~> 0.14.4)
58
58
 
59
- GIT
60
- remote: git://github.com/rspec/rspec-rails.git
61
- revision: 3b279c63397975ef95219ecdb53b497ebc8dc9f0
62
- specs:
63
- rspec-rails (2.4.1)
64
- actionpack (~> 3.0)
65
- activesupport (~> 3.0)
66
- railties (~> 3.0)
67
- rspec (~> 2.4.0)
68
-
69
59
  GEM
70
60
  remote: http://rubygems.org/
71
61
  specs:
@@ -100,14 +90,19 @@ GEM
100
90
  rake (0.8.7)
101
91
  rcov (0.9.9)
102
92
  rr (1.0.2)
103
- rspec (2.4.0)
104
- rspec-core (~> 2.4.0)
105
- rspec-expectations (~> 2.4.0)
106
- rspec-mocks (~> 2.4.0)
107
- rspec-core (2.4.0)
108
- rspec-expectations (2.4.0)
93
+ rspec (2.5.0)
94
+ rspec-core (~> 2.5.0)
95
+ rspec-expectations (~> 2.5.0)
96
+ rspec-mocks (~> 2.5.0)
97
+ rspec-core (2.5.1)
98
+ rspec-expectations (2.5.0)
109
99
  diff-lcs (~> 1.1.2)
110
- rspec-mocks (2.4.0)
100
+ rspec-mocks (2.5.0)
101
+ rspec-rails (2.5.0)
102
+ actionpack (~> 3.0)
103
+ activesupport (~> 3.0)
104
+ railties (~> 3.0)
105
+ rspec (~> 2.5.0)
111
106
  ruby-debug (0.10.4)
112
107
  columnize (>= 0.1)
113
108
  ruby-debug-base (~> 0.10.4.0)
@@ -130,7 +125,7 @@ DEPENDENCIES
130
125
  rails!
131
126
  rcov
132
127
  rr (>= 1.0.2)
133
- rspec (>= 2.4.0)
134
- rspec-rails!
128
+ rspec (>= 2.5.0)
129
+ rspec-rails (>= 2.5.0)
135
130
  ruby-debug
136
131
  sqlite3 (>= 1.3.3)
data/README.rdoc CHANGED
@@ -71,6 +71,10 @@ Then bundle:
71
71
 
72
72
  <%= paginate @users, :left => 0, :right => 2 %>
73
73
 
74
+ * Ajax links (crazy simple, but works perfectly!)
75
+
76
+ <%= paginate @users, :remote => true %>
77
+
74
78
  === Customizing the pagination helper
75
79
 
76
80
  * The generator
data/TODO.txt CHANGED
@@ -1,5 +1,3 @@
1
1
  * add generator option to copy particular template
2
2
 
3
- * add Ajax generator
4
-
5
3
  * I18n?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.7.0
@@ -1,3 +1,3 @@
1
1
  <span class="page first">
2
- <%= link_to page, page_url %>
2
+ <%= link_to page, page_url, :remote => remote %>
3
3
  </span>
@@ -1,2 +1,2 @@
1
1
  %span.page.first
2
- = link_to page, page_url
2
+ = link_to page, page_url, :remote => remote
@@ -1,3 +1,3 @@
1
1
  <span class="page last">
2
- <%= link_to page, page_url %>
2
+ <%= link_to page, page_url, :remote => remote %>
3
3
  </span>
@@ -1,2 +1,2 @@
1
1
  %span.page.last
2
- = link_to page, page_url
2
+ = link_to page, page_url, :remote => remote
@@ -1,3 +1,3 @@
1
1
  <span class="next">
2
- <%= link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next' %>
2
+ <%= link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote %>
3
3
  </span>
@@ -1,2 +1,2 @@
1
1
  %span.next
2
- = link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next'
2
+ = link_to_if (current_page < num_pages), raw('Next &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote
@@ -1,3 +1,3 @@
1
1
  <span class="page">
2
- <%= link_to page, page_url %>
2
+ <%= link_to page, page_url, :remote => remote %>
3
3
  </span>
@@ -1,2 +1,2 @@
1
1
  %span.page
2
- = link_to page, page_url
2
+ = link_to page, page_url, :remote => remote
@@ -1,3 +1,3 @@
1
1
  <span class="prev">
2
- <%= link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev' %>
2
+ <%= link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>
3
3
  </span>
@@ -1,2 +1,2 @@
1
1
  %span.prev
2
- = link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev'
2
+ = link_to_if (current_page > 1), raw('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote
data/kaminari.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kaminari}
8
- s.version = "0.6.1"
8
+ s.version = "0.7.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Akira Matsuda"]
@@ -81,7 +81,7 @@ Gem::Specification.new do |s|
81
81
  s.specification_version = 3
82
82
 
83
83
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
84
- s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
84
+ s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
85
85
  s.add_development_dependency(%q<rr>, [">= 1.0.2"])
86
86
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
87
87
  s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
@@ -89,12 +89,12 @@ Gem::Specification.new do |s|
89
89
  s.add_development_dependency(%q<rails>, [">= 0"])
90
90
  s.add_development_dependency(%q<rack>, [">= 0"])
91
91
  s.add_development_dependency(%q<arel>, [">= 0"])
92
- s.add_development_dependency(%q<rspec-rails>, [">= 0"])
92
+ s.add_development_dependency(%q<rspec-rails>, [">= 2.5.0"])
93
93
  s.add_development_dependency(%q<sqlite3>, [">= 1.3.3"])
94
94
  s.add_development_dependency(%q<ruby-debug>, [">= 0"])
95
95
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
96
96
  else
97
- s.add_dependency(%q<rspec>, [">= 2.4.0"])
97
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
98
98
  s.add_dependency(%q<rr>, [">= 1.0.2"])
99
99
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
100
100
  s.add_dependency(%q<jeweler>, [">= 1.5.2"])
@@ -102,13 +102,13 @@ Gem::Specification.new do |s|
102
102
  s.add_dependency(%q<rails>, [">= 0"])
103
103
  s.add_dependency(%q<rack>, [">= 0"])
104
104
  s.add_dependency(%q<arel>, [">= 0"])
105
- s.add_dependency(%q<rspec-rails>, [">= 0"])
105
+ s.add_dependency(%q<rspec-rails>, [">= 2.5.0"])
106
106
  s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
107
107
  s.add_dependency(%q<ruby-debug>, [">= 0"])
108
108
  s.add_dependency(%q<rails>, [">= 3.0.0"])
109
109
  end
110
110
  else
111
- s.add_dependency(%q<rspec>, [">= 2.4.0"])
111
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
112
112
  s.add_dependency(%q<rr>, [">= 1.0.2"])
113
113
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
114
114
  s.add_dependency(%q<jeweler>, [">= 1.5.2"])
@@ -116,7 +116,7 @@ Gem::Specification.new do |s|
116
116
  s.add_dependency(%q<rails>, [">= 0"])
117
117
  s.add_dependency(%q<rack>, [">= 0"])
118
118
  s.add_dependency(%q<arel>, [">= 0"])
119
- s.add_dependency(%q<rspec-rails>, [">= 0"])
119
+ s.add_dependency(%q<rspec-rails>, [">= 2.5.0"])
120
120
  s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
121
121
  s.add_dependency(%q<ruby-debug>, [">= 0"])
122
122
  s.add_dependency(%q<rails>, [">= 3.0.0"])
@@ -129,7 +129,7 @@ module Kaminari
129
129
  end
130
130
 
131
131
  def paginate(scope, options = {}, &block)
132
- PaginationRenderer.new self, options.reverse_merge(:current_page => scope.current_page, :num_pages => scope.num_pages)
132
+ PaginationRenderer.new self, options.reverse_merge(:current_page => scope.current_page, :num_pages => scope.num_pages, :remote => false)
133
133
  end
134
134
  end
135
135
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 6
9
- - 1
10
- version: 0.6.1
8
+ - 7
9
+ - 0
10
+ version: 0.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira Matsuda
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 31
28
+ hash: 27
29
29
  segments:
30
30
  - 2
31
- - 4
31
+ - 5
32
32
  - 0
33
- version: 2.4.0
33
+ version: 2.5.0
34
34
  requirement: *id001
35
35
  prerelease: false
36
36
  name: rspec
@@ -145,10 +145,12 @@ dependencies:
145
145
  requirements:
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
- hash: 3
148
+ hash: 27
149
149
  segments:
150
+ - 2
151
+ - 5
150
152
  - 0
151
- version: "0"
153
+ version: 2.5.0
152
154
  requirement: *id009
153
155
  prerelease: false
154
156
  name: rspec-rails