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 CHANGED
@@ -1,2 +1,4 @@
1
1
  .project
2
- .loadpath
2
+ .loadpath
3
+ *qt_temp*
4
+ *~
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.5
1
+ 0.1.6
data/lib/helpers/merb.rb CHANGED
File without changes
File without changes
data/lib/paginate/ar.rb CHANGED
File without changes
data/lib/paginate/dm.rb CHANGED
File without changes
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 File.dirname(__FILE__) + '/paginators/' + file
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 File.dirname(__FILE__) + '/paginate/' + file
28
+ require 'paginate/' + file
27
29
  end
28
30
 
29
31
  # Require Helper Modules
30
32
  %w{ shared merb }.each do |file|
31
- require File.dirname(__FILE__) + '/helpers/' + file
33
+ require 'helpers/' + file
32
34
  end
File without changes
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.5"
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-07-05}
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.4}
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 = 3
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
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Paginate::Helpers::Merb do
4
4
  before(:all) do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Paginate::Helpers::Shared do
4
4
  before(:all) do
@@ -3,7 +3,7 @@ require 'active_record'
3
3
  # Setup AR connection, schema
4
4
  ActiveRecord::Base.establish_connection(
5
5
  :adapter => "sqlite3",
6
- :dbfile => ":memory:"
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 File.dirname(__FILE__) + '/../spec_helper'
16
- require File.dirname(__FILE__) + '/../fixtures/ar'
15
+ require 'spec_helper'
16
+ require 'fixtures/ar'
17
17
 
18
18
  describe 'Paginate::AR' do
19
19
  before(:each) do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe "Paginate.config" do
4
4
  before(:each) do
@@ -1,7 +1,7 @@
1
1
  require 'dm-core'
2
2
  require 'dm-aggregates'
3
- require File.dirname(__FILE__) + '/../spec_helper'
4
- require File.dirname(__FILE__) + '/../fixtures/dm'
3
+ require 'spec_helper'
4
+ require 'fixtures/dm'
5
5
 
6
6
  describe Paginate::DM do
7
7
  before(:all) do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Paginate::Simple do
4
4
  before(:each) do
@@ -1,7 +1,7 @@
1
1
  require 'dm-core'
2
2
  require 'dm-aggregates'
3
- require File.dirname(__FILE__) + '/../spec_helper'
4
- require File.dirname(__FILE__) + '/../fixtures/dm'
3
+ require 'spec_helper'
4
+ require 'fixtures/dm'
5
5
 
6
6
  describe Paginate::Paginators::ORM do
7
7
  Model = Paginate::Fixtures::DmModel
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Paginate::Paginators::Simple do
4
4
  # No instance variables are expected by the shared specs, only a +paginated+
data/spec/shared.rb CHANGED
File without changes
data/spec/spec.opts CHANGED
File without changes
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "rubygems"
2
2
  require "spec"
3
3
 
4
- $:.push File.join(File.dirname(__FILE__), '..', 'lib')
5
4
  require 'paginate'
6
- require File.join(File.dirname(__FILE__), 'shared')
5
+ require 'shared'
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.5
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-07-05 00:00:00 -07:00
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: false
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.2.0
82
+ rubygems_version: 1.3.5
77
83
  signing_key:
78
84
  specification_version: 3
79
85
  summary: Pagination for DataMapper, ActiveRecord, and Array