simple_paginate 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +39 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +77 -0
- data/Rakefile +50 -0
- data/app/views/simple_paginate/_next_page.html.erb +9 -0
- data/app/views/simple_paginate/_next_page.html.haml +7 -0
- data/app/views/simple_paginate/_next_page.html.slim +7 -0
- data/app/views/simple_paginate/_paginator.html.erb +12 -0
- data/app/views/simple_paginate/_paginator.html.haml +9 -0
- data/app/views/simple_paginate/_paginator.html.slim +9 -0
- data/app/views/simple_paginate/_prev_page.html.erb +9 -0
- data/app/views/simple_paginate/_prev_page.html.haml +7 -0
- data/app/views/simple_paginate/_prev_page.html.slim +7 -0
- data/config/locales/simple_paginate.yml +5 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/active_record_42.gemfile +24 -0
- data/gemfiles/active_record_42.gemfile.lock +319 -0
- data/lib/generators/simple_paginate/config_generator.rb +16 -0
- data/lib/generators/simple_paginate/templates/simple_paginate_config.rb +3 -0
- data/lib/generators/simple_paginate/views_generator.rb +31 -0
- data/lib/simple_paginate/config.rb +21 -0
- data/lib/simple_paginate/engine.rb +4 -0
- data/lib/simple_paginate/helpers/action_view_extension.rb +19 -0
- data/lib/simple_paginate/helpers/paginator.rb +70 -0
- data/lib/simple_paginate/helpers/tags.rb +84 -0
- data/lib/simple_paginate/models/active_record_extension.rb +27 -0
- data/lib/simple_paginate/railtie.rb +16 -0
- data/lib/simple_paginate/version.rb +3 -0
- data/lib/simple_paginate.rb +9 -0
- data/simple_paginate.gemspec +28 -0
- data/spec/fake_app/active_record/config.rb +3 -0
- data/spec/fake_app/active_record/models.rb +12 -0
- data/spec/fake_app/log/development.log +0 -0
- data/spec/fake_app/rails_app.rb +38 -0
- data/spec/simple_paginate/config_spec.rb +27 -0
- data/spec/simple_paginate/helpers/action_view_extension_spec.rb +43 -0
- data/spec/simple_paginate/helpers/tags_spec.rb +57 -0
- data/spec/simple_paginate/models/active_record_extension_spec.rb +71 -0
- data/spec/simple_paginate/version_spec.rb +8 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/database_cleaner.rb +12 -0
- metadata +182 -0
metadata
ADDED
@@ -0,0 +1,182 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_paginate
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yong Gu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: actionpack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: database_cleaner
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.4.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.4.0
|
97
|
+
description: Simple pagination solution for previous and next page navigation.
|
98
|
+
email:
|
99
|
+
- zerogy921@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- app/views/simple_paginate/_next_page.html.erb
|
111
|
+
- app/views/simple_paginate/_next_page.html.haml
|
112
|
+
- app/views/simple_paginate/_next_page.html.slim
|
113
|
+
- app/views/simple_paginate/_paginator.html.erb
|
114
|
+
- app/views/simple_paginate/_paginator.html.haml
|
115
|
+
- app/views/simple_paginate/_paginator.html.slim
|
116
|
+
- app/views/simple_paginate/_prev_page.html.erb
|
117
|
+
- app/views/simple_paginate/_prev_page.html.haml
|
118
|
+
- app/views/simple_paginate/_prev_page.html.slim
|
119
|
+
- config/locales/simple_paginate.yml
|
120
|
+
- gemfiles/.bundle/config
|
121
|
+
- gemfiles/active_record_42.gemfile
|
122
|
+
- gemfiles/active_record_42.gemfile.lock
|
123
|
+
- lib/generators/simple_paginate/config_generator.rb
|
124
|
+
- lib/generators/simple_paginate/templates/simple_paginate_config.rb
|
125
|
+
- lib/generators/simple_paginate/views_generator.rb
|
126
|
+
- lib/simple_paginate.rb
|
127
|
+
- lib/simple_paginate/config.rb
|
128
|
+
- lib/simple_paginate/engine.rb
|
129
|
+
- lib/simple_paginate/helpers/action_view_extension.rb
|
130
|
+
- lib/simple_paginate/helpers/paginator.rb
|
131
|
+
- lib/simple_paginate/helpers/tags.rb
|
132
|
+
- lib/simple_paginate/models/active_record_extension.rb
|
133
|
+
- lib/simple_paginate/railtie.rb
|
134
|
+
- lib/simple_paginate/version.rb
|
135
|
+
- simple_paginate.gemspec
|
136
|
+
- spec/fake_app/active_record/config.rb
|
137
|
+
- spec/fake_app/active_record/models.rb
|
138
|
+
- spec/fake_app/log/development.log
|
139
|
+
- spec/fake_app/rails_app.rb
|
140
|
+
- spec/simple_paginate/config_spec.rb
|
141
|
+
- spec/simple_paginate/helpers/action_view_extension_spec.rb
|
142
|
+
- spec/simple_paginate/helpers/tags_spec.rb
|
143
|
+
- spec/simple_paginate/models/active_record_extension_spec.rb
|
144
|
+
- spec/simple_paginate/version_spec.rb
|
145
|
+
- spec/spec_helper.rb
|
146
|
+
- spec/support/database_cleaner.rb
|
147
|
+
homepage: ''
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata: {}
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.2.2
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: Simple pagination solution for previous and next page navigation.
|
171
|
+
test_files:
|
172
|
+
- spec/fake_app/active_record/config.rb
|
173
|
+
- spec/fake_app/active_record/models.rb
|
174
|
+
- spec/fake_app/log/development.log
|
175
|
+
- spec/fake_app/rails_app.rb
|
176
|
+
- spec/simple_paginate/config_spec.rb
|
177
|
+
- spec/simple_paginate/helpers/action_view_extension_spec.rb
|
178
|
+
- spec/simple_paginate/helpers/tags_spec.rb
|
179
|
+
- spec/simple_paginate/models/active_record_extension_spec.rb
|
180
|
+
- spec/simple_paginate/version_spec.rb
|
181
|
+
- spec/spec_helper.rb
|
182
|
+
- spec/support/database_cleaner.rb
|