dm-pager 1.0.0 → 1.0.1

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.1 / 2009-12-19
3
+ ==================
4
+
5
+ * Actually Fixes PostgresError (typo)
6
+
2
7
  1.0.0 / 2009-12-07
3
8
  ==================
4
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dm-pager}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
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-12-07}
9
+ s.date = %q{2009-12-19}
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,7 +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
+ query.delete :order
44
44
  options.merge! :total => count(query), :page => page
45
45
  collection.pager = DataMapper::Pager.new options
46
46
  collection
@@ -1,6 +1,6 @@
1
1
 
2
2
  module DataMapper
3
3
  module Pagination
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
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: 1.0.0
4
+ version: 1.0.1
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-12-07 00:00:00 -08:00
12
+ date: 2009-12-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency