folio-pagination-legacy 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.travis.yml +3 -0
- data/Gemfile +16 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +235 -0
- data/Rakefile +11 -0
- data/folio-pagination-legacy.gemspec +30 -0
- data/lib/folio-pagination-legacy.rb +3 -0
- data/lib/folio.rb +84 -0
- data/lib/folio/core_ext/enumerable.rb +51 -0
- data/lib/folio/invalid_page.rb +5 -0
- data/lib/folio/ordinal.rb +33 -0
- data/lib/folio/ordinal/page.rb +107 -0
- data/lib/folio/page.rb +86 -0
- data/lib/folio/per_page.rb +15 -0
- data/lib/folio/rails.rb +21 -0
- data/lib/folio/version.rb +3 -0
- data/lib/folio/will_paginate/active_record.rb +71 -0
- data/lib/folio/will_paginate/array.rb +10 -0
- data/lib/folio/will_paginate/collection.rb +19 -0
- data/lib/folio/will_paginate/view_helpers.rb +59 -0
- data/lib/folio/will_paginate/view_helpers/action_view.rb +10 -0
- data/lib/folio/will_paginate/view_helpers/link_renderer.rb +53 -0
- data/test/folio/core_ext/enumerable_test.rb +55 -0
- data/test/folio/ordinal/page_test.rb +173 -0
- data/test/folio/ordinal_test.rb +57 -0
- data/test/folio/page_test.rb +198 -0
- data/test/folio/per_page_test.rb +49 -0
- data/test/folio/rails_test.rb +11 -0
- data/test/folio/version_test.rb +8 -0
- data/test/folio/will_paginate/active_record_test.rb +113 -0
- data/test/folio/will_paginate/collection_test.rb +43 -0
- data/test/folio/will_paginate/view_helpers/link_renderer_test.rb +160 -0
- data/test/folio/will_paginate/view_helpers_test.rb +49 -0
- data/test/folio_test.rb +192 -0
- data/test/setup/active_record.rb +13 -0
- metadata +133 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'active_record'
|
2
|
+
|
3
|
+
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
|
4
|
+
|
5
|
+
module TestSetup
|
6
|
+
module ActiveRecord
|
7
|
+
def self.migrate
|
8
|
+
::ActiveRecord::Migration.suppress_messages do
|
9
|
+
yield ::ActiveRecord::Migration
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: folio-pagination-legacy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jacob Fugal
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: A pagination library.
|
47
|
+
email:
|
48
|
+
- jacob@instructure.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- .travis.yml
|
55
|
+
- Gemfile
|
56
|
+
- Guardfile
|
57
|
+
- LICENSE.txt
|
58
|
+
- README.md
|
59
|
+
- Rakefile
|
60
|
+
- folio-pagination-legacy.gemspec
|
61
|
+
- lib/folio-pagination-legacy.rb
|
62
|
+
- lib/folio.rb
|
63
|
+
- lib/folio/core_ext/enumerable.rb
|
64
|
+
- lib/folio/invalid_page.rb
|
65
|
+
- lib/folio/ordinal.rb
|
66
|
+
- lib/folio/ordinal/page.rb
|
67
|
+
- lib/folio/page.rb
|
68
|
+
- lib/folio/per_page.rb
|
69
|
+
- lib/folio/rails.rb
|
70
|
+
- lib/folio/version.rb
|
71
|
+
- lib/folio/will_paginate/active_record.rb
|
72
|
+
- lib/folio/will_paginate/array.rb
|
73
|
+
- lib/folio/will_paginate/collection.rb
|
74
|
+
- lib/folio/will_paginate/view_helpers.rb
|
75
|
+
- lib/folio/will_paginate/view_helpers/action_view.rb
|
76
|
+
- lib/folio/will_paginate/view_helpers/link_renderer.rb
|
77
|
+
- test/folio/core_ext/enumerable_test.rb
|
78
|
+
- test/folio/ordinal/page_test.rb
|
79
|
+
- test/folio/ordinal_test.rb
|
80
|
+
- test/folio/page_test.rb
|
81
|
+
- test/folio/per_page_test.rb
|
82
|
+
- test/folio/rails_test.rb
|
83
|
+
- test/folio/version_test.rb
|
84
|
+
- test/folio/will_paginate/active_record_test.rb
|
85
|
+
- test/folio/will_paginate/collection_test.rb
|
86
|
+
- test/folio/will_paginate/view_helpers/link_renderer_test.rb
|
87
|
+
- test/folio/will_paginate/view_helpers_test.rb
|
88
|
+
- test/folio_test.rb
|
89
|
+
- test/setup/active_record.rb
|
90
|
+
homepage: https://github.com/instructure/folio/tree/legacy
|
91
|
+
licenses:
|
92
|
+
- MIT
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 1.8.23
|
112
|
+
signing_key:
|
113
|
+
specification_version: 3
|
114
|
+
summary: Folio is a library for pagination. It's meant to be nearly compatible with
|
115
|
+
WillPaginate, but with broader -- yet more well-defined -- semantics to allow for
|
116
|
+
sources whose page identifiers are non-ordinal. This version of the gem is for
|
117
|
+
legacy Rails 2.3 support. If you're running Rails 3 or newer, you want the folio-pagination
|
118
|
+
gem.
|
119
|
+
test_files:
|
120
|
+
- test/folio/core_ext/enumerable_test.rb
|
121
|
+
- test/folio/ordinal/page_test.rb
|
122
|
+
- test/folio/ordinal_test.rb
|
123
|
+
- test/folio/page_test.rb
|
124
|
+
- test/folio/per_page_test.rb
|
125
|
+
- test/folio/rails_test.rb
|
126
|
+
- test/folio/version_test.rb
|
127
|
+
- test/folio/will_paginate/active_record_test.rb
|
128
|
+
- test/folio/will_paginate/collection_test.rb
|
129
|
+
- test/folio/will_paginate/view_helpers/link_renderer_test.rb
|
130
|
+
- test/folio/will_paginate/view_helpers_test.rb
|
131
|
+
- test/folio_test.rb
|
132
|
+
- test/setup/active_record.rb
|
133
|
+
has_rdoc:
|