Skip to content

Commit

Permalink
Merge branch 'rails3'
Browse files Browse the repository at this point in the history
will_paginate is no longer compatible with Rails versions older than 3.0,
so throw the old garbage out
  • Loading branch information
mislav committed Jul 28, 2011
2 parents f169dcc + a2648e7 commit be75fe0
Show file tree
Hide file tree
Showing 82 changed files with 3,048 additions and 2,921 deletions.
6 changes: 3 additions & 3 deletions .gitignore
@@ -1,4 +1,4 @@
/doc
/rails
.bundle
doc
*.gem
/coverage
coverage
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "website"]
path = website
url = git://github.com/mislav/will_paginate.git
43 changes: 0 additions & 43 deletions .manifest

This file was deleted.

1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--color
11 changes: 11 additions & 0 deletions .travis.yml
@@ -0,0 +1,11 @@
rvm:
- 1.8.7
- 1.9.2
gemfile:
- Gemfile
- Gemfile.rails3.0
env:
- DB=sqlite3
- DB=mysql
- DB=mysql2
- DB=postgres
27 changes: 25 additions & 2 deletions CHANGELOG.rdoc
@@ -1,3 +1,26 @@
== "rails3" branch

* added Sequel support
* added an initialization hook for Merb
* refactored URL generation
* BACKWARDS INCOMPATIBLE: refactored LinkRenderer; also markup changes
<span class="current">1</span> is now <em>1</em>
a.prev_page -> a.previous_page (for consistency)
* "prev_label" -> "previous_label"
* ported view tests to specs
* setup Autotest
* added per_page=(limit) attribute writer to set default per_page
* Remove :include option from count_all query when possible (Rails 2.1)
* added WP::ViewHelpers::ActionView and LinkRenderer
* specs for ViewHelpers::Base and LinkRendererBase
* created LinkRendererBase that implements windowed visible page numbers logic
* created WP::ViewHelpers::Base abstract module that implements generic view helpers
* ported finder tests to specs
* added WP::Finders::DataMapper
* added WP::Finders::ActiveRecord mixin for ActiveRecord::Base
* created WP::Finders::Base abstract module that implements generic pagination logic
* removed dependency to ActiveSupport

= 2.3.12, released 2009-12-01

* make view helpers "HTML safe" for Rails 2.3.5 with rails_xss plugin
Expand Down Expand Up @@ -84,14 +107,14 @@
gem install mislav-will_paginate

* extract reusable pagination testing stuff into WillPaginate::View
* rethink the page URL construction mechanizm to be more bulletproof when
* rethink the page URL construction mechanism to be more bulletproof when
combined with custom routing for page parameter
* test that anchor parameter can be used in pagination links

== 2.2.2, released 2008-04-21

* Add support for page parameter in custom routes like "/foo/page/2"
* Change output of "page_entries_info" on single-page collection and erraneous
* Change output of "page_entries_info" on single-page collection and erroneous
output with empty collection as reported by Tim Chater

== 2.2.1, released 2008-04-08
Expand Down
29 changes: 29 additions & 0 deletions Gemfile
@@ -0,0 +1,29 @@
source 'http://rubygems.org'

rails_version = '~> 3.1.0.rc'

gem 'activerecord', rails_version
gem 'activeresource', rails_version
gem 'actionpack', rails_version

gem 'rake'
gem 'rspec', '~> 2.6.0'
gem 'mocha', '~> 0.9.8'

gem 'sequel', '~> 3.8'
gem 'sqlite3', '~> 1.3.3'
gem 'dm-core'
gem 'dm-aggregates'
gem 'dm-migrations'
gem 'dm-sqlite-adapter'

group :mysql do
gem 'mysql', '~> 2.8.1'
gem 'mysql2', '>= 0.3.6'
end
gem 'pg', '~> 0.11', :group => :pg

group :debug do
gem 'ruby-debug', :platforms => :mri_18
gem 'ruby-debug19', :platforms => :mri_19
end unless ENV['TRAVIS']
126 changes: 126 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,126 @@
GEM
remote: http://rubygems.org/
specs:
actionpack (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.1)
rack-cache (~> 1.0.2)
rack-mount (~> 0.8.1)
rack-test (~> 0.6.0)
sprockets (~> 2.0.0.beta.12)
activemodel (3.1.0.rc5)
activesupport (= 3.1.0.rc5)
bcrypt-ruby (~> 2.1.4)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
arel (~> 2.1.4)
tzinfo (~> 0.3.29)
activeresource (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
activesupport (3.1.0.rc5)
multi_json (~> 1.0)
addressable (2.2.6)
archive-tar-minitar (0.5.2)
arel (2.1.4)
bcrypt-ruby (2.1.4)
builder (3.0.0)
columnize (0.3.4)
data_objects (0.10.6)
addressable (~> 2.1)
diff-lcs (1.1.2)
dm-aggregates (1.1.0)
dm-core (~> 1.1.0)
dm-core (1.1.0)
addressable (~> 2.2.4)
dm-do-adapter (1.1.0)
data_objects (~> 0.10.2)
dm-core (~> 1.1.0)
dm-migrations (1.1.0)
dm-core (~> 1.1.0)
dm-sqlite-adapter (1.1.0)
dm-do-adapter (~> 1.1.0)
do_sqlite3 (~> 0.10.2)
do_sqlite3 (0.10.6)
data_objects (= 0.10.6)
erubis (2.7.0)
hike (1.2.0)
i18n (0.6.0)
linecache (0.46)
rbx-require-relative (> 0.0.4)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
mocha (0.9.12)
multi_json (1.0.3)
mysql (2.8.1)
mysql2 (0.3.6)
pg (0.11.0)
rack (1.3.2)
rack-cache (1.0.2)
rack (>= 0.4)
rack-mount (0.8.1)
rack (>= 1.0.0)
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2)
rbx-require-relative (0.0.5)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
sequel (3.25.0)
sprockets (2.0.0.beta.12)
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.3)
tilt (1.3.2)
tzinfo (0.3.29)

PLATFORMS
ruby

DEPENDENCIES
actionpack (~> 3.1.0.rc)
activerecord (~> 3.1.0.rc)
activeresource (~> 3.1.0.rc)
dm-aggregates
dm-core
dm-migrations
dm-sqlite-adapter
mocha (~> 0.9.8)
mysql (~> 2.8.1)
mysql2 (>= 0.3.6)
pg (~> 0.11)
rake
rspec (~> 2.6.0)
ruby-debug
ruby-debug19
sequel (~> 3.8)
sqlite3 (~> 1.3.3)
24 changes: 24 additions & 0 deletions Gemfile.rails3.0
@@ -0,0 +1,24 @@
source 'http://rubygems.org'

rails_version = '~> 3.0.0'

gem 'activerecord', rails_version
gem 'activeresource', rails_version
gem 'actionpack', rails_version

gem 'rake'
gem 'rspec', '~> 2.6.0'
gem 'mocha', '~> 0.9.8'

gem 'sqlite3', '~> 1.3.3'

group :mysql do
gem 'mysql', '~> 2.8.1'
gem 'mysql2', '>= 0.3.6'
end
gem 'pg', '~> 0.11', :group => :pg

group :debug do
gem 'ruby-debug', :platforms => :mri_18
gem 'ruby-debug19', :platforms => :mri_19
end unless ENV['TRAVIS']
92 changes: 92 additions & 0 deletions Gemfile.rails3.0.lock
@@ -0,0 +1,92 @@
GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionpack (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.9)
activesupport (= 3.0.9)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
activesupport (3.0.9)
archive-tar-minitar (0.5.2)
arel (2.0.10)
builder (2.1.2)
columnize (0.3.4)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.0)
linecache (0.46)
rbx-require-relative (> 0.0.4)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
mocha (0.9.12)
mysql (2.8.1)
mysql2 (0.3.6)
pg (0.11.0)
rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rake (0.9.2)
rbx-require-relative (0.0.5)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
sqlite3 (1.3.4)
tzinfo (0.3.29)

PLATFORMS
ruby

DEPENDENCIES
actionpack (~> 3.0.0)
activerecord (~> 3.0.0)
activeresource (~> 3.0.0)
mocha (~> 0.9.8)
mysql (~> 2.8.1)
mysql2 (>= 0.3.6)
pg (~> 0.11)
rake
rspec (~> 2.6.0)
ruby-debug
ruby-debug19
sqlite3 (~> 1.3.3)
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2007 PJ Hyett and Mislav Marohnić
Copyright (c) 2009 Mislav Marohnić

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down

0 comments on commit be75fe0

Please sign in to comment.