mholling-paged_scopes 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/Rakefile +53 -0
- data/VERSION.yml +4 -0
- data/lib/paged_scopes/collection.rb +45 -0
- data/lib/paged_scopes/context.rb +36 -0
- data/lib/paged_scopes/controller.rb +22 -0
- data/lib/paged_scopes/index.rb +89 -0
- data/lib/paged_scopes/pages.rb +188 -0
- data/lib/paged_scopes/paginator.rb +47 -0
- data/lib/paged_scopes/resources.rb +32 -0
- data/lib/paged_scopes.rb +9 -0
- data/rails/init.rb +1 -0
- data/spec/collection_spec.rb +66 -0
- data/spec/context_spec.rb +19 -0
- data/spec/controller_spec.rb +60 -0
- data/spec/index_spec.rb +31 -0
- data/spec/page_spec.rb +174 -0
- data/spec/paginator_spec.rb +147 -0
- data/spec/resources_spec.rb +70 -0
- data/spec/spec_helper.rb +132 -0
- metadata +90 -0
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mholling-paged_scopes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Hollingworth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-06-15 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activerecord
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.2.1
|
24
|
+
version:
|
25
|
+
description:
|
26
|
+
email: mdholling@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- LICENSE
|
36
|
+
- README.rdoc
|
37
|
+
- Rakefile
|
38
|
+
- VERSION.yml
|
39
|
+
- lib/paged_scopes.rb
|
40
|
+
- lib/paged_scopes/collection.rb
|
41
|
+
- lib/paged_scopes/context.rb
|
42
|
+
- lib/paged_scopes/controller.rb
|
43
|
+
- lib/paged_scopes/index.rb
|
44
|
+
- lib/paged_scopes/pages.rb
|
45
|
+
- lib/paged_scopes/paginator.rb
|
46
|
+
- lib/paged_scopes/resources.rb
|
47
|
+
- rails/init.rb
|
48
|
+
- spec/collection_spec.rb
|
49
|
+
- spec/context_spec.rb
|
50
|
+
- spec/controller_spec.rb
|
51
|
+
- spec/index_spec.rb
|
52
|
+
- spec/page_spec.rb
|
53
|
+
- spec/paginator_spec.rb
|
54
|
+
- spec/resources_spec.rb
|
55
|
+
- spec/spec_helper.rb
|
56
|
+
has_rdoc: false
|
57
|
+
homepage: http://github.com/mholling/paged_scopes
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options:
|
60
|
+
- --charset=UTF-8
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
version:
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: "0"
|
74
|
+
version:
|
75
|
+
requirements: []
|
76
|
+
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 1.2.0
|
79
|
+
signing_key:
|
80
|
+
specification_version: 2
|
81
|
+
summary: PagedScopes is an ActiveRecord pagination gem. It lets you easily paginate collection associations and named scopes. It also paginates collections which already have :limit and :offset scopes in place. You can also find the page containing a given object in a collection, and find the next and previous objects for each object in the collection.
|
82
|
+
test_files:
|
83
|
+
- spec/collection_spec.rb
|
84
|
+
- spec/context_spec.rb
|
85
|
+
- spec/controller_spec.rb
|
86
|
+
- spec/index_spec.rb
|
87
|
+
- spec/page_spec.rb
|
88
|
+
- spec/paginator_spec.rb
|
89
|
+
- spec/resources_spec.rb
|
90
|
+
- spec/spec_helper.rb
|