jm81-paginate 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +7 -2
- data/TODO +0 -0
- data/VERSION +1 -1
- data/lib/helpers/merb.rb +0 -0
- data/lib/helpers/shared.rb +0 -0
- data/lib/paginate/ar.rb +0 -0
- data/lib/paginate/dm.rb +0 -0
- data/lib/paginate/simple.rb +0 -0
- data/lib/paginate.rb +5 -3
- data/lib/paginators/orm.rb +0 -0
- data/lib/paginators/simple.rb +0 -0
- data/paginate.gemspec +8 -4
- data/spec/fixtures/ar.rb +0 -0
- data/spec/fixtures/dm.rb +0 -0
- data/spec/helpers/merb_spec.rb +1 -1
- data/spec/helpers/shared_spec.rb +1 -1
- data/spec/paginate/ar_spec.rb +3 -3
- data/spec/paginate/config_spec.rb +1 -1
- data/spec/paginate/dm_spec.rb +2 -2
- data/spec/paginate/simple_spec.rb +1 -1
- data/spec/paginators/orm_spec.rb +2 -2
- data/spec/paginators/simple_spec.rb +1 -1
- data/spec/shared.rb +0 -0
- data/spec/spec.opts +0 -0
- data/spec/spec_helper.rb +1 -2
- metadata +11 -5
data/.gitignore
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
@@ -4,14 +4,19 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "paginate"
|
7
|
+
gem.name = "jm81-paginate"
|
8
8
|
gem.summary = "Pagination for DataMapper, ActiveRecord, and Array"
|
9
|
+
gem.description = <<EOF
|
10
|
+
This paginate library assists in paginating collections and results of database
|
11
|
+
queries. It is particularly designed for use with DataMapper and ActiveRecord,
|
12
|
+
and for the Merb and Rails frameworks, but can be used in many other situations.
|
13
|
+
EOF
|
9
14
|
gem.email = "jmorgan@morgancreative.net"
|
10
15
|
gem.homepage = "http://github.com/jm81/paginate"
|
11
16
|
gem.authors = ["Jared Morgan"]
|
12
17
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
13
18
|
end
|
14
|
-
|
19
|
+
Jeweler::GemcutterTasks.new
|
15
20
|
rescue LoadError
|
16
21
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
22
|
end
|
data/TODO
CHANGED
File without changes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/lib/helpers/merb.rb
CHANGED
File without changes
|
data/lib/helpers/shared.rb
CHANGED
File without changes
|
data/lib/paginate/ar.rb
CHANGED
File without changes
|
data/lib/paginate/dm.rb
CHANGED
File without changes
|
data/lib/paginate/simple.rb
CHANGED
File without changes
|
data/lib/paginate.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
module Paginate
|
2
|
+
VERSION = '0.1.6'
|
3
|
+
|
2
4
|
DEFAULTS = {
|
3
5
|
:default_limit => 10
|
4
6
|
}
|
@@ -18,15 +20,15 @@ end
|
|
18
20
|
|
19
21
|
# Require Paginators
|
20
22
|
%w{ simple orm }.each do |file|
|
21
|
-
require
|
23
|
+
require 'paginators/' + file
|
22
24
|
end
|
23
25
|
|
24
26
|
# Require Paginate Modules
|
25
27
|
%w{ simple dm ar }.each do |file|
|
26
|
-
require
|
28
|
+
require 'paginate/' + file
|
27
29
|
end
|
28
30
|
|
29
31
|
# Require Helper Modules
|
30
32
|
%w{ shared merb }.each do |file|
|
31
|
-
require
|
33
|
+
require 'helpers/' + file
|
32
34
|
end
|
data/lib/paginators/orm.rb
CHANGED
File without changes
|
data/lib/paginators/simple.rb
CHANGED
File without changes
|
data/paginate.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{paginate}
|
5
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Jared Morgan"]
|
9
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-09-20}
|
10
13
|
s.email = %q{jmorgan@morgancreative.net}
|
11
14
|
s.extra_rdoc_files = [
|
12
15
|
"LICENSE",
|
@@ -42,10 +45,11 @@ Gem::Specification.new do |s|
|
|
42
45
|
"spec/spec.opts",
|
43
46
|
"spec/spec_helper.rb"
|
44
47
|
]
|
48
|
+
s.has_rdoc = true
|
45
49
|
s.homepage = %q{http://github.com/jm81/paginate}
|
46
50
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
51
|
s.require_paths = ["lib"]
|
48
|
-
s.rubygems_version = %q{1.3.
|
52
|
+
s.rubygems_version = %q{1.3.1}
|
49
53
|
s.summary = %q{Pagination for DataMapper, ActiveRecord, and Array}
|
50
54
|
s.test_files = [
|
51
55
|
"spec/fixtures/ar.rb",
|
@@ -64,7 +68,7 @@ Gem::Specification.new do |s|
|
|
64
68
|
|
65
69
|
if s.respond_to? :specification_version then
|
66
70
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
67
|
-
s.specification_version =
|
71
|
+
s.specification_version = 2
|
68
72
|
|
69
73
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
70
74
|
else
|
data/spec/fixtures/ar.rb
CHANGED
File without changes
|
data/spec/fixtures/dm.rb
CHANGED
File without changes
|
data/spec/helpers/merb_spec.rb
CHANGED
data/spec/helpers/shared_spec.rb
CHANGED
data/spec/paginate/ar_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require 'active_record'
|
|
3
3
|
# Setup AR connection, schema
|
4
4
|
ActiveRecord::Base.establish_connection(
|
5
5
|
:adapter => "sqlite3",
|
6
|
-
:
|
6
|
+
:database => ":memory:"
|
7
7
|
)
|
8
8
|
|
9
9
|
ActiveRecord::Schema.define do
|
@@ -12,8 +12,8 @@ ActiveRecord::Schema.define do
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
require
|
16
|
-
require
|
15
|
+
require 'spec_helper'
|
16
|
+
require 'fixtures/ar'
|
17
17
|
|
18
18
|
describe 'Paginate::AR' do
|
19
19
|
before(:each) do
|
data/spec/paginate/dm_spec.rb
CHANGED
data/spec/paginators/orm_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'dm-core'
|
2
2
|
require 'dm-aggregates'
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'fixtures/dm'
|
5
5
|
|
6
6
|
describe Paginate::Paginators::ORM do
|
7
7
|
Model = Paginate::Fixtures::DmModel
|
data/spec/shared.rb
CHANGED
File without changes
|
data/spec/spec.opts
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jm81-paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Morgan
|
@@ -9,11 +9,15 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-11 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: |
|
17
|
+
This paginate library assists in paginating collections and results of database
|
18
|
+
queries. It is particularly designed for use with DataMapper and ActiveRecord,
|
19
|
+
and for the Merb and Rails frameworks, but can be used in many other situations.
|
20
|
+
|
17
21
|
email: jmorgan@morgancreative.net
|
18
22
|
executables: []
|
19
23
|
|
@@ -51,8 +55,10 @@ files:
|
|
51
55
|
- spec/shared.rb
|
52
56
|
- spec/spec.opts
|
53
57
|
- spec/spec_helper.rb
|
54
|
-
has_rdoc:
|
58
|
+
has_rdoc: true
|
55
59
|
homepage: http://github.com/jm81/paginate
|
60
|
+
licenses: []
|
61
|
+
|
56
62
|
post_install_message:
|
57
63
|
rdoc_options:
|
58
64
|
- --charset=UTF-8
|
@@ -73,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
79
|
requirements: []
|
74
80
|
|
75
81
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.3.5
|
77
83
|
signing_key:
|
78
84
|
specification_version: 3
|
79
85
|
summary: Pagination for DataMapper, ActiveRecord, and Array
|