kaminari 0.9.6 → 0.9.7
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 +5 -0
- data/Gemfile.lock +5 -5
- data/README.rdoc +8 -3
- data/VERSION +1 -1
- data/kaminari.gemspec +3 -35
- data/lib/generators/kaminari/views_generator.rb +67 -12
- metadata +47 -79
- data/app/views/kaminari/github/_current_page.html.erb +0 -1
- data/app/views/kaminari/github/_current_page.html.haml +0 -1
- data/app/views/kaminari/github/_next_link.html.erb +0 -1
- data/app/views/kaminari/github/_next_link.html.haml +0 -1
- data/app/views/kaminari/github/_next_span.html.erb +0 -1
- data/app/views/kaminari/github/_next_span.html.haml +0 -1
- data/app/views/kaminari/github/_page_link.html.erb +0 -1
- data/app/views/kaminari/github/_page_link.html.haml +0 -1
- data/app/views/kaminari/github/_paginator.html.erb +0 -8
- data/app/views/kaminari/github/_paginator.html.haml +0 -7
- data/app/views/kaminari/github/_prev_link.html.erb +0 -1
- data/app/views/kaminari/github/_prev_link.html.haml +0 -1
- data/app/views/kaminari/github/_prev_span.html.erb +0 -1
- data/app/views/kaminari/github/_prev_span.html.haml +0 -1
- data/app/views/kaminari/github/_truncated_span.html.erb +0 -1
- data/app/views/kaminari/github/_truncated_span.html.haml +0 -1
- data/app/views/kaminari/google/_current_page.html.erb +0 -1
- data/app/views/kaminari/google/_current_page.html.haml +0 -3
- data/app/views/kaminari/google/_next_link.html.erb +0 -1
- data/app/views/kaminari/google/_next_link.html.haml +0 -2
- data/app/views/kaminari/google/_next_span.html.erb +0 -1
- data/app/views/kaminari/google/_next_span.html.haml +0 -2
- data/app/views/kaminari/google/_page_link.html.erb +0 -1
- data/app/views/kaminari/google/_page_link.html.haml +0 -2
- data/app/views/kaminari/google/_paginator.html.erb +0 -13
- data/app/views/kaminari/google/_paginator.html.haml +0 -15
- data/app/views/kaminari/google/_prev_link.html.erb +0 -1
- data/app/views/kaminari/google/_prev_link.html.haml +0 -2
- data/app/views/kaminari/google/_prev_span.html.erb +0 -1
- data/app/views/kaminari/google/_prev_span.html.haml +0 -2
- data/app/views/kaminari/google/_truncated_span.html.erb +0 -1
- data/app/views/kaminari/google/_truncated_span.html.haml +0 -1
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/rack/rack.git
|
3
|
-
revision:
|
3
|
+
revision: e3ffeac0dc04bb8d5994b7923bf12e55d549a279
|
4
4
|
specs:
|
5
5
|
rack (1.2.1)
|
6
6
|
|
7
7
|
GIT
|
8
8
|
remote: git://github.com/rails/arel.git
|
9
|
-
revision:
|
9
|
+
revision: dbc86c0f2c2fc3c8bacf35c67fb8e0967b0a8980
|
10
10
|
specs:
|
11
11
|
arel (2.0.7.beta.20110121165657)
|
12
12
|
|
13
13
|
GIT
|
14
14
|
remote: git://github.com/rails/rails.git
|
15
|
-
revision:
|
15
|
+
revision: 829de9d98e59f9b083ed96a9031cd9841c83ae47
|
16
16
|
specs:
|
17
17
|
actionmailer (3.1.0.beta)
|
18
18
|
actionpack (= 3.1.0.beta)
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
abstract (1.0.0)
|
63
63
|
bcrypt-ruby (2.1.4)
|
64
64
|
builder (3.0.0)
|
65
|
-
capybara (0.4.1.
|
65
|
+
capybara (0.4.1.2)
|
66
66
|
celerity (>= 0.7.9)
|
67
67
|
culerity (>= 0.2.4)
|
68
68
|
mime-types (>= 1.16)
|
@@ -72,7 +72,7 @@ GEM
|
|
72
72
|
selenium-webdriver (>= 0.0.27)
|
73
73
|
xpath (~> 0.1.3)
|
74
74
|
celerity (0.8.7)
|
75
|
-
childprocess (0.1.
|
75
|
+
childprocess (0.1.7)
|
76
76
|
ffi (~> 0.6.3)
|
77
77
|
columnize (0.3.2)
|
78
78
|
culerity (0.2.15)
|
data/README.rdoc
CHANGED
@@ -53,7 +53,7 @@ Note that the :per scope is not directly defined on the models but is just a met
|
|
53
53
|
|
54
54
|
* paginates_per
|
55
55
|
You can specify default per_page value per each model using the following declarative DSL.
|
56
|
-
class User
|
56
|
+
class User < ActiveRecord::Base
|
57
57
|
paginates_per 50
|
58
58
|
end
|
59
59
|
|
@@ -105,13 +105,18 @@ Haml templates generator is also available by adding "-e haml" option (this woul
|
|
105
105
|
% rails g kaminari:views default -e haml
|
106
106
|
|
107
107
|
* themes
|
108
|
-
|
108
|
+
The generator has the ability to fetch several sample template themes from the external repository (https://github.com/amatsuda/kaminari_themes) in addition to the bundled "default" one, which will help you creating a nice looking paginator.
|
109
109
|
% rails g kaminari:views THEME
|
110
110
|
|
111
|
-
To see the full list of avaliable themes, just hit the generator without specifying THEME argument.
|
111
|
+
To see the full list of avaliable themes, take a look at the themes repository, or just hit the generator without specifying THEME argument.
|
112
112
|
% rails g kaminari:views
|
113
113
|
|
114
114
|
|
115
|
+
== For more information
|
116
|
+
|
117
|
+
Check out Kaminari recipes on the GitHub Wiki.
|
118
|
+
https://github.com/amatsuda/kaminari/wiki/Kaminari-recipes
|
119
|
+
|
115
120
|
== Questions, Feedbacks
|
116
121
|
|
117
122
|
Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇☇☇ :)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.7
|
data/kaminari.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{kaminari}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.7"
|
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"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-13}
|
13
13
|
s.description = %q{Kaminari is a Scope & Engine based clean and powerful and customizable and sophisticated paginator for Rails 3}
|
14
14
|
s.email = %q{ronnie@dio.jp}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -47,38 +47,6 @@ Gem::Specification.new do |s|
|
|
47
47
|
"app/views/kaminari/_prev_span.html.haml",
|
48
48
|
"app/views/kaminari/_truncated_span.html.erb",
|
49
49
|
"app/views/kaminari/_truncated_span.html.haml",
|
50
|
-
"app/views/kaminari/github/_current_page.html.erb",
|
51
|
-
"app/views/kaminari/github/_current_page.html.haml",
|
52
|
-
"app/views/kaminari/github/_next_link.html.erb",
|
53
|
-
"app/views/kaminari/github/_next_link.html.haml",
|
54
|
-
"app/views/kaminari/github/_next_span.html.erb",
|
55
|
-
"app/views/kaminari/github/_next_span.html.haml",
|
56
|
-
"app/views/kaminari/github/_page_link.html.erb",
|
57
|
-
"app/views/kaminari/github/_page_link.html.haml",
|
58
|
-
"app/views/kaminari/github/_paginator.html.erb",
|
59
|
-
"app/views/kaminari/github/_paginator.html.haml",
|
60
|
-
"app/views/kaminari/github/_prev_link.html.erb",
|
61
|
-
"app/views/kaminari/github/_prev_link.html.haml",
|
62
|
-
"app/views/kaminari/github/_prev_span.html.erb",
|
63
|
-
"app/views/kaminari/github/_prev_span.html.haml",
|
64
|
-
"app/views/kaminari/github/_truncated_span.html.erb",
|
65
|
-
"app/views/kaminari/github/_truncated_span.html.haml",
|
66
|
-
"app/views/kaminari/google/_current_page.html.erb",
|
67
|
-
"app/views/kaminari/google/_current_page.html.haml",
|
68
|
-
"app/views/kaminari/google/_next_link.html.erb",
|
69
|
-
"app/views/kaminari/google/_next_link.html.haml",
|
70
|
-
"app/views/kaminari/google/_next_span.html.erb",
|
71
|
-
"app/views/kaminari/google/_next_span.html.haml",
|
72
|
-
"app/views/kaminari/google/_page_link.html.erb",
|
73
|
-
"app/views/kaminari/google/_page_link.html.haml",
|
74
|
-
"app/views/kaminari/google/_paginator.html.erb",
|
75
|
-
"app/views/kaminari/google/_paginator.html.haml",
|
76
|
-
"app/views/kaminari/google/_prev_link.html.erb",
|
77
|
-
"app/views/kaminari/google/_prev_link.html.haml",
|
78
|
-
"app/views/kaminari/google/_prev_span.html.erb",
|
79
|
-
"app/views/kaminari/google/_prev_span.html.haml",
|
80
|
-
"app/views/kaminari/google/_truncated_span.html.erb",
|
81
|
-
"app/views/kaminari/google/_truncated_span.html.haml",
|
82
50
|
"kaminari.gemspec",
|
83
51
|
"lib/generators/kaminari/views_generator.rb",
|
84
52
|
"lib/kaminari.rb",
|
@@ -102,7 +70,7 @@ Gem::Specification.new do |s|
|
|
102
70
|
s.homepage = %q{http://github.com/amatsuda/kaminari}
|
103
71
|
s.licenses = ["MIT"]
|
104
72
|
s.require_paths = ["lib"]
|
105
|
-
s.rubygems_version = %q{1.
|
73
|
+
s.rubygems_version = %q{1.5.2}
|
106
74
|
s.summary = %q{A pagnation engine plugin for Rails 3}
|
107
75
|
s.test_files = [
|
108
76
|
"spec/acceptance/acceptance_helper.rb",
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module Kaminari
|
2
2
|
module Generators
|
3
|
+
SHOW_API = 'http://github.com/api/v2/json/blob/show/amatsuda/kaminari_themes'
|
4
|
+
ALL_API = 'http://github.com/api/v2/json/blob/all/amatsuda/kaminari_themes/master'
|
5
|
+
|
3
6
|
class ViewsGenerator < Rails::Generators::NamedBase
|
4
7
|
source_root File.expand_path('../../../../app/views/kaminari', __FILE__)
|
5
8
|
|
@@ -12,28 +15,80 @@ rails g kaminari:views THEME [options]
|
|
12
15
|
Copies all paginator partial templates to your application.
|
13
16
|
You can choose a template THEME by specifying one from the list below:
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
github: A very simple one with only "Older" and "Newer" links.
|
18
|
+
- default
|
19
|
+
The default one.
|
20
|
+
This one is used internally while you don't override the partials.
|
21
|
+
#{themes.map {|t| " - #{t.name}\n#{t.description}"}.join("\n")}
|
20
22
|
BANNER
|
21
23
|
end
|
22
24
|
|
23
25
|
desc ''
|
24
|
-
def
|
25
|
-
|
26
|
-
|
26
|
+
def copy_or_fetch #:nodoc:
|
27
|
+
return copy_default_views if file_name == 'default'
|
28
|
+
|
29
|
+
themes = self.class.themes
|
30
|
+
if theme = themes.detect {|t| t.name == file_name}
|
31
|
+
download_templates theme
|
32
|
+
else
|
33
|
+
say %Q[no such theme: #{file_name}\n avaliable themes: #{themes.map(&:name).join ", "}]
|
27
34
|
end
|
28
35
|
end
|
29
36
|
|
30
37
|
private
|
31
|
-
def
|
32
|
-
|
38
|
+
def self.themes
|
39
|
+
@themes ||= open ALL_API do |json|
|
40
|
+
# open File.join File.dirname(__FILE__), '../../../spec/generators/sample.json' do |json|
|
41
|
+
files = ActiveSupport::JSON.decode(json)['blobs']
|
42
|
+
hash = files.group_by {|fn, _| fn[0...(fn.index('/') || 0)]}.delete_if {|fn, _| fn.blank?}
|
43
|
+
hash.map do |name, files|
|
44
|
+
Theme.new name, files
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def download_templates(theme)
|
50
|
+
theme.templates_for(template_engine).each do |template|
|
51
|
+
say " downloading #{template.name} from kaminari_themes..."
|
52
|
+
get "#{SHOW_API}/#{template.sha}", "app/views/kaminari/#{template.basename}"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def copy_default_views
|
57
|
+
filename_pattern = File.join self.class.source_root, "*.html.#{template_engine}"
|
58
|
+
Dir.glob(filename_pattern).map {|f| File.basename f}.each do |f|
|
59
|
+
copy_file f, "app/views/kaminari/#{f}"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def template_engine
|
64
|
+
options[:template_engine].try(:to_s).try(:downcase) || 'erb'
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
Template = Struct.new(:name, :sha) do
|
69
|
+
def engine #:nodoc:
|
70
|
+
File.extname(name).sub /^\./, ''
|
71
|
+
end
|
72
|
+
|
73
|
+
def basename #:nodoc:
|
74
|
+
File.basename name
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class Theme
|
79
|
+
attr_accessor :name
|
80
|
+
def initialize(name, templates) #:nodoc:
|
81
|
+
@name, @templates = name, templates.map {|f| Template.new *f}
|
82
|
+
end
|
83
|
+
|
84
|
+
def description #:nodoc:
|
85
|
+
file = @templates.detect {|t| t.name == "#{name}/DESCRIPTION"}
|
86
|
+
return "#{' ' * 12}#{name}" unless file
|
87
|
+
open("#{SHOW_API}/#{file.sha}").read.chomp.gsub /^/, ' ' * 12
|
33
88
|
end
|
34
89
|
|
35
|
-
def
|
36
|
-
|
90
|
+
def templates_for(template_engine) #:nodoc:
|
91
|
+
@templates.select {|t| t.engine == template_engine}
|
37
92
|
end
|
38
93
|
end
|
39
94
|
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:
|
4
|
+
hash: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 7
|
10
|
+
version: 0.9.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akira Matsuda
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-13 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
name: rspec
|
23
23
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
@@ -31,11 +31,11 @@ dependencies:
|
|
31
31
|
- 5
|
32
32
|
- 0
|
33
33
|
version: 2.5.0
|
34
|
-
requirement: *id001
|
35
34
|
prerelease: false
|
36
|
-
name: rspec
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
35
|
type: :development
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rr
|
39
39
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
@@ -47,11 +47,11 @@ dependencies:
|
|
47
47
|
- 0
|
48
48
|
- 2
|
49
49
|
version: 1.0.2
|
50
|
-
requirement: *id002
|
51
50
|
prerelease: false
|
52
|
-
name: rr
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
51
|
type: :development
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: steak
|
55
55
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
@@ -63,11 +63,11 @@ dependencies:
|
|
63
63
|
- 1
|
64
64
|
- 0
|
65
65
|
version: 1.1.0
|
66
|
-
requirement: *id003
|
67
66
|
prerelease: false
|
68
|
-
name: steak
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
67
|
type: :development
|
68
|
+
requirement: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capybara
|
71
71
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
@@ -80,11 +80,11 @@ dependencies:
|
|
80
80
|
- 1
|
81
81
|
- 1
|
82
82
|
version: 0.4.1.1
|
83
|
-
requirement: *id004
|
84
83
|
prerelease: false
|
85
|
-
name: capybara
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
84
|
type: :development
|
85
|
+
requirement: *id004
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: bundler
|
88
88
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
@@ -96,11 +96,11 @@ dependencies:
|
|
96
96
|
- 0
|
97
97
|
- 0
|
98
98
|
version: 1.0.0
|
99
|
-
requirement: *id005
|
100
99
|
prerelease: false
|
101
|
-
name: bundler
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
100
|
type: :development
|
101
|
+
requirement: *id005
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: jeweler
|
104
104
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
@@ -112,11 +112,11 @@ dependencies:
|
|
112
112
|
- 5
|
113
113
|
- 2
|
114
114
|
version: 1.5.2
|
115
|
-
requirement: *id006
|
116
115
|
prerelease: false
|
117
|
-
name: jeweler
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
116
|
type: :development
|
117
|
+
requirement: *id006
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rcov
|
120
120
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
@@ -126,11 +126,11 @@ dependencies:
|
|
126
126
|
segments:
|
127
127
|
- 0
|
128
128
|
version: "0"
|
129
|
-
requirement: *id007
|
130
129
|
prerelease: false
|
131
|
-
name: rcov
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
130
|
type: :development
|
131
|
+
requirement: *id007
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: rails
|
134
134
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
135
135
|
none: false
|
136
136
|
requirements:
|
@@ -140,11 +140,11 @@ dependencies:
|
|
140
140
|
segments:
|
141
141
|
- 0
|
142
142
|
version: "0"
|
143
|
-
requirement: *id008
|
144
143
|
prerelease: false
|
145
|
-
name: rails
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
144
|
type: :development
|
145
|
+
requirement: *id008
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: rack
|
148
148
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
@@ -154,11 +154,11 @@ dependencies:
|
|
154
154
|
segments:
|
155
155
|
- 0
|
156
156
|
version: "0"
|
157
|
-
requirement: *id009
|
158
157
|
prerelease: false
|
159
|
-
name: rack
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
158
|
type: :development
|
159
|
+
requirement: *id009
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
name: arel
|
162
162
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|
@@ -168,11 +168,11 @@ dependencies:
|
|
168
168
|
segments:
|
169
169
|
- 0
|
170
170
|
version: "0"
|
171
|
-
requirement: *id010
|
172
171
|
prerelease: false
|
173
|
-
name: arel
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
172
|
type: :development
|
173
|
+
requirement: *id010
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: rspec-rails
|
176
176
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
177
177
|
none: false
|
178
178
|
requirements:
|
@@ -184,11 +184,11 @@ dependencies:
|
|
184
184
|
- 5
|
185
185
|
- 0
|
186
186
|
version: 2.5.0
|
187
|
-
requirement: *id011
|
188
187
|
prerelease: false
|
189
|
-
name: rspec-rails
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
188
|
type: :development
|
189
|
+
requirement: *id011
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: sqlite3
|
192
192
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
@@ -200,11 +200,11 @@ dependencies:
|
|
200
200
|
- 3
|
201
201
|
- 3
|
202
202
|
version: 1.3.3
|
203
|
-
requirement: *id012
|
204
203
|
prerelease: false
|
205
|
-
name: sqlite3
|
206
|
-
- !ruby/object:Gem::Dependency
|
207
204
|
type: :development
|
205
|
+
requirement: *id012
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: ruby-debug
|
208
208
|
version_requirements: &id013 !ruby/object:Gem::Requirement
|
209
209
|
none: false
|
210
210
|
requirements:
|
@@ -214,11 +214,11 @@ dependencies:
|
|
214
214
|
segments:
|
215
215
|
- 0
|
216
216
|
version: "0"
|
217
|
-
requirement: *id013
|
218
217
|
prerelease: false
|
219
|
-
|
218
|
+
type: :development
|
219
|
+
requirement: *id013
|
220
220
|
- !ruby/object:Gem::Dependency
|
221
|
-
|
221
|
+
name: rails
|
222
222
|
version_requirements: &id014 !ruby/object:Gem::Requirement
|
223
223
|
none: false
|
224
224
|
requirements:
|
@@ -230,9 +230,9 @@ dependencies:
|
|
230
230
|
- 0
|
231
231
|
- 0
|
232
232
|
version: 3.0.0
|
233
|
-
requirement: *id014
|
234
233
|
prerelease: false
|
235
|
-
|
234
|
+
type: :runtime
|
235
|
+
requirement: *id014
|
236
236
|
description: Kaminari is a Scope & Engine based clean and powerful and customizable and sophisticated paginator for Rails 3
|
237
237
|
email: ronnie@dio.jp
|
238
238
|
executables: []
|
@@ -273,38 +273,6 @@ files:
|
|
273
273
|
- app/views/kaminari/_prev_span.html.haml
|
274
274
|
- app/views/kaminari/_truncated_span.html.erb
|
275
275
|
- app/views/kaminari/_truncated_span.html.haml
|
276
|
-
- app/views/kaminari/github/_current_page.html.erb
|
277
|
-
- app/views/kaminari/github/_current_page.html.haml
|
278
|
-
- app/views/kaminari/github/_next_link.html.erb
|
279
|
-
- app/views/kaminari/github/_next_link.html.haml
|
280
|
-
- app/views/kaminari/github/_next_span.html.erb
|
281
|
-
- app/views/kaminari/github/_next_span.html.haml
|
282
|
-
- app/views/kaminari/github/_page_link.html.erb
|
283
|
-
- app/views/kaminari/github/_page_link.html.haml
|
284
|
-
- app/views/kaminari/github/_paginator.html.erb
|
285
|
-
- app/views/kaminari/github/_paginator.html.haml
|
286
|
-
- app/views/kaminari/github/_prev_link.html.erb
|
287
|
-
- app/views/kaminari/github/_prev_link.html.haml
|
288
|
-
- app/views/kaminari/github/_prev_span.html.erb
|
289
|
-
- app/views/kaminari/github/_prev_span.html.haml
|
290
|
-
- app/views/kaminari/github/_truncated_span.html.erb
|
291
|
-
- app/views/kaminari/github/_truncated_span.html.haml
|
292
|
-
- app/views/kaminari/google/_current_page.html.erb
|
293
|
-
- app/views/kaminari/google/_current_page.html.haml
|
294
|
-
- app/views/kaminari/google/_next_link.html.erb
|
295
|
-
- app/views/kaminari/google/_next_link.html.haml
|
296
|
-
- app/views/kaminari/google/_next_span.html.erb
|
297
|
-
- app/views/kaminari/google/_next_span.html.haml
|
298
|
-
- app/views/kaminari/google/_page_link.html.erb
|
299
|
-
- app/views/kaminari/google/_page_link.html.haml
|
300
|
-
- app/views/kaminari/google/_paginator.html.erb
|
301
|
-
- app/views/kaminari/google/_paginator.html.haml
|
302
|
-
- app/views/kaminari/google/_prev_link.html.erb
|
303
|
-
- app/views/kaminari/google/_prev_link.html.haml
|
304
|
-
- app/views/kaminari/google/_prev_span.html.erb
|
305
|
-
- app/views/kaminari/google/_prev_span.html.haml
|
306
|
-
- app/views/kaminari/google/_truncated_span.html.erb
|
307
|
-
- app/views/kaminari/google/_truncated_span.html.haml
|
308
276
|
- kaminari.gemspec
|
309
277
|
- lib/generators/kaminari/views_generator.rb
|
310
278
|
- lib/kaminari.rb
|
@@ -354,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
322
|
requirements: []
|
355
323
|
|
356
324
|
rubyforge_project:
|
357
|
-
rubygems_version: 1.
|
325
|
+
rubygems_version: 1.5.2
|
358
326
|
signing_key:
|
359
327
|
specification_version: 3
|
360
328
|
summary: A pagnation engine plugin for Rails 3
|
@@ -1 +0,0 @@
|
|
1
|
-
<%# EMPTY! %>
|
@@ -1 +0,0 @@
|
|
1
|
-
-# EMPTY!
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= link_to raw('Older »'), url, :remote => remote -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
~ link_to raw('Older »'), url, :remote => remote
|
@@ -1 +0,0 @@
|
|
1
|
-
<span class="disabled">Older »</span>
|
@@ -1 +0,0 @@
|
|
1
|
-
<span class="disabled">Older »</span>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%# EMPTY! %>
|
@@ -1 +0,0 @@
|
|
1
|
-
-# EMPTY!
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<style>
|
2
|
-
.pagination{padding:.3em;margin:.3em; font: 13.34px helvetica,arial,freesans,clean,sans-serif;}
|
3
|
-
.pagination a{padding:.1em .3em;margin:.2em;border:1px solid #aad;text-decoration:none;color:#369;}
|
4
|
-
.pagination a:hover,.pagination a:active{border:1px solid #369;color:#000;}
|
5
|
-
.pagination span.current{padding:.1em .3em;margin:.2em;border:1px solid #369;font-weight:bold;background-color:#369;color:#FFF;}
|
6
|
-
.pagination span.disabled{padding:.1em .3em;margin:.2em;border:1px solid #eee;color:#ddd;}
|
7
|
-
</style>
|
8
|
-
<div class="pagination"><%= content_for :kaminari_paginator_tags %></div>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
:css
|
2
|
-
.pagination{padding:.3em;margin:.3em; font: 13.34px helvetica,arial,freesans,clean,sans-serif;}
|
3
|
-
.pagination a{padding:.1em .3em;margin:.2em;border:1px solid #aad;text-decoration:none;color:#369;}
|
4
|
-
.pagination a:hover,.pagination a:active{border:1px solid #369;color:#000;}
|
5
|
-
.pagination span.current{padding:.1em .3em;margin:.2em;border:1px solid #369;font-weight:bold;background-color:#369;color:#FFF;}
|
6
|
-
.pagination span.disabled{padding:.1em .3em;margin:.2em;border:1px solid #eee;color:#ddd;}
|
7
|
-
.pagination= content_for :kaminari_paginator_tags
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= link_to raw('« Newer'), url, :remote => remote -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
~ link_to raw('« Newer'), url, :remote => remote
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= content_tag :span, raw('« Newer'), :class => 'disabled' -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
~ content_tag :span, raw('« Newer'), :class => 'disabled'
|
@@ -1 +0,0 @@
|
|
1
|
-
<%# EMPTY! %>
|
@@ -1 +0,0 @@
|
|
1
|
-
-# EMPTY!
|
@@ -1 +0,0 @@
|
|
1
|
-
<td class="cur"><span class="csb" style="background-position:-53px 0;width:20px"></span><%= page %></td>
|
@@ -1 +0,0 @@
|
|
1
|
-
<td class="b"><%= link_to raw('<span class="csb ch" style="background-position:-96px 0;width:71px"></span><span style="display:block;margin-left:53px;text-decoration:underline">Next</span>'), url, :class => 'pn knavi', :id => 'pnnext', :style => 'text-align:left;text-decoration:none', :remote => remote %></td>
|
@@ -1,2 +0,0 @@
|
|
1
|
-
%td.b
|
2
|
-
= link_to raw('<span class="csb ch" style="background-position:-96px 0;width:71px"></span><span style="display:block;margin-left:53px;text-decoration:underline">Next</span>'), url, :class => 'pn knavi', :id => 'pnnext', :style => 'text-align:left;text-decoration:none', :remote => remote
|
@@ -1 +0,0 @@
|
|
1
|
-
<td class="b"><span class="csb" style="background-position:-96px 0;width:45px"></span></td>
|
@@ -1 +0,0 @@
|
|
1
|
-
<td><%= link_to raw(%Q[<span class="csb ch" style="background-position:-74px 0;width:20px"></span>#{page}]), url, :class => 'fl', :remote => remote %></td>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<style>
|
2
|
-
#nav a{display:block}
|
3
|
-
#nav td{padding:0;text-align:center}
|
4
|
-
.cur {font-weight:bold}
|
5
|
-
.csb {background:url(http://www.google.co.jp/images/srpr/nav_logo27.png) no-repeat;overflow:hidden;background-position:0 0;height:40px;display:block}
|
6
|
-
#nav {font-family: arial,sans-serif; font-size:small}
|
7
|
-
#nav a:link {text-decoration:none; color:#4496d3}
|
8
|
-
#nav a:hover {text-decoration:underline}
|
9
|
-
#nav a:active {color:#c11}
|
10
|
-
#nav a:visited {color:#2200C1}
|
11
|
-
.b {font-weight:bold}
|
12
|
-
</style>
|
13
|
-
<table id="nav" style="border-collapse:collapse;text-align:left;direction:ltr;margin:17px auto 0"><tbody><tr valign="top"><%= content_for :kaminari_paginator_tags %></tr></tbody></table>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
:css
|
2
|
-
#nav a{display:block}
|
3
|
-
#nav td{padding:0;text-align:center}
|
4
|
-
.cur {font-weight:bold}
|
5
|
-
.csb {background:url(http://www.google.co.jp/images/srpr/nav_logo27.png) no-repeat;overflow:hidden;background-position:0 0;height:40px;display:block}
|
6
|
-
#nav {font-family: arial,sans-serif; font-size:small}
|
7
|
-
#nav a:link {text-decoration:none; color:#4496d3}
|
8
|
-
#nav a:hover {text-decoration:underline}
|
9
|
-
#nav a:active {color:#c11}
|
10
|
-
#nav a:visited {color:#2200C1}
|
11
|
-
.b {font-weight:bold}
|
12
|
-
%table#nav{:style => 'border-collapse:collapse;text-align:left;direction:ltr;margin:17px auto 0'}
|
13
|
-
%tbody
|
14
|
-
%tr{:valign => 'top'}
|
15
|
-
= content_for :kaminari_paginator_tags
|
@@ -1 +0,0 @@
|
|
1
|
-
<td class="b"><%= link_to raw('<span class="csb ch" style="background-position:0 0;float:right;width:53px"></span><span style="display:block;margin-right:35px;clear:right;text-decoration:underline">Previous</span>'), url, :class => 'pn knavi', :id => 'pnprev', :style => 'text-decoration:none', :remote => remote %></td>
|
@@ -1,2 +0,0 @@
|
|
1
|
-
%td.b
|
2
|
-
= link_to raw('<span class="csb ch" style="background-position:0 0;float:right;width:53px"></span><span style="display:block;margin-right:35px;clear:right;text-decoration:underline">Previous</span>'), url, :class => 'pn knavi', :id => 'pnprev', :style => 'text-decoration:none', :remote => remote
|
@@ -1 +0,0 @@
|
|
1
|
-
<td class="b"><span class="csb" style="background-position:-24px 0;width:28px"></span></td>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%# Nothing! -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
-# Nothing!
|