dm-pager 0.0.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 1.0.0 / 2009-12-07
3
+ ==================
4
+
5
+ * Fixes PostgresError when ordering with aggregation function count(*) [#23]
6
+
2
7
  0.0.8 / 2009-10-27
3
8
  ==================
4
9
 
data/dm-pager.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dm-pager}
5
- s.version = "0.0.8"
5
+ s.version = "1.0.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
9
- s.date = %q{2009-10-27}
9
+ s.date = %q{2009-12-07}
10
10
  s.description = %q{DataMapper Pagination}
11
11
  s.email = %q{tj@vision-media.ca}
12
12
  s.extra_rdoc_files = ["lib/dm-pager.rb", "lib/dm-pager/defaults.rb", "lib/dm-pager/helpers.rb", "lib/dm-pager/helpers/rails.rb", "lib/dm-pager/pager.rb", "lib/dm-pager/pagination.rb", "lib/dm-pager/version.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
@@ -40,6 +40,7 @@ module DataMapper
40
40
  :offset => (page - 1) * per_page,
41
41
  :order => [:id.desc]
42
42
  }.merge(query))
43
+ options.delete :order
43
44
  options.merge! :total => count(query), :page => page
44
45
  collection.pager = DataMapper::Pager.new options
45
46
  collection
@@ -1,6 +1,6 @@
1
1
 
2
2
  module DataMapper
3
3
  module Pagination
4
- VERSION = '0.0.8'
4
+ VERSION = '1.0.0'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-pager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-27 00:00:00 -07:00
12
+ date: 2009-12-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency