acts_as_paginable 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.textile +5 -1
- data/VERSION +1 -1
- data/acts_as_paginable.gemspec +4 -4
- data/lib/acts_as_paginable.rb +1 -1
- metadata +24 -13
data/CHANGELOG.textile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
h1 0.4.0
|
2
|
+
|
3
|
+
* Rails 3 compatability.
|
4
|
+
|
1
5
|
h1. 0.3.0
|
2
6
|
|
3
|
-
Separated scope chaining from invokation of paginate. This allows you to invoke further methods on the chained scope such as:
|
7
|
+
* Separated scope chaining from invokation of paginate. This allows you to invoke further methods on the chained scope such as:
|
4
8
|
|
5
9
|
bc. Bill.chain_scopes(params, per_page).sum("billing_positions.amount")
|
6
10
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/acts_as_paginable.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_paginable}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Julian Fischer"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-07-14}
|
13
13
|
s.description = %q{Filter records by passing params to a controller. No need to modify the model anymore.}
|
14
14
|
s.email = %q{fischer@avarteq.de}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.homepage = %q{http://github.com/avarteq/acts_as_paginable}
|
32
32
|
s.rdoc_options = ["--charset=UTF-8"]
|
33
33
|
s.require_paths = ["lib"]
|
34
|
-
s.rubygems_version = %q{1.3.
|
34
|
+
s.rubygems_version = %q{1.3.6}
|
35
35
|
s.summary = %q{A will_paginate enhancement to automatically receive a filterable pagination method.}
|
36
36
|
s.test_files = [
|
37
37
|
"test/helper.rb",
|
data/lib/acts_as_paginable.rb
CHANGED
@@ -5,7 +5,7 @@ module Avarteq
|
|
5
5
|
base.extend(ClassMethods)
|
6
6
|
|
7
7
|
# Named scope so that records can be ordered like this: MyClass.scoped_by_attr.order("id DESC")
|
8
|
-
base.send(:
|
8
|
+
#base.send(:scope, :order, lambda {|order| { :order => order } })
|
9
9
|
end
|
10
10
|
|
11
11
|
module ClassMethods
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_paginable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 0.4.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Julian Fischer
|
@@ -9,29 +14,33 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-07-14 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: will_paginate
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
23
29
|
version: "0"
|
24
|
-
|
30
|
+
type: :runtime
|
31
|
+
version_requirements: *id001
|
25
32
|
- !ruby/object:Gem::Dependency
|
26
33
|
name: thoughtbot-shoulda
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
33
41
|
version: "0"
|
34
|
-
|
42
|
+
type: :development
|
43
|
+
version_requirements: *id002
|
35
44
|
description: Filter records by passing params to a controller. No need to modify the model anymore.
|
36
45
|
email: fischer@avarteq.de
|
37
46
|
executables: []
|
@@ -65,18 +74,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
74
|
requirements:
|
66
75
|
- - ">="
|
67
76
|
- !ruby/object:Gem::Version
|
77
|
+
segments:
|
78
|
+
- 0
|
68
79
|
version: "0"
|
69
|
-
version:
|
70
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
81
|
requirements:
|
72
82
|
- - ">="
|
73
83
|
- !ruby/object:Gem::Version
|
84
|
+
segments:
|
85
|
+
- 0
|
74
86
|
version: "0"
|
75
|
-
version:
|
76
87
|
requirements: []
|
77
88
|
|
78
89
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.3.
|
90
|
+
rubygems_version: 1.3.6
|
80
91
|
signing_key:
|
81
92
|
specification_version: 3
|
82
93
|
summary: A will_paginate enhancement to automatically receive a filterable pagination method.
|