kaminari-cache 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/kaminari-cache.gemspec +1 -2
- data/lib/kaminari-cache.rb +6 -2
- metadata +1 -2
- data/lib/kaminari-cache/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 559057935d4e2a19d75f01b08e66b22af7974c67
|
4
|
+
data.tar.gz: a631703347f7caf672ce7916f800a0e2567b8510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ee3881813ef0ba42eba4b110fc207cc80b1f652cb0e98e24bf59eaaabca18c2a32762009d3bad76a9362c0779b88b300d0d75ad0ab4ca66c5af2a13d412d6d
|
7
|
+
data.tar.gz: b555bfc1c5d19e4c10757e91694b7cbeae6ab938795f30466a7a3eb186650fd64575e357b32b8178edc25a474e2d4e657752920319e51331cd4e17ca8051451d
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/kaminari-cache.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "kaminari-cache"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jim"]
|
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
"VERSION",
|
27
27
|
"kaminari-cache.gemspec",
|
28
28
|
"lib/kaminari-cache.rb",
|
29
|
-
"lib/kaminari-cache/version.rb",
|
30
29
|
"test/helper.rb",
|
31
30
|
"test/test_kaminari-cache.rb"
|
32
31
|
]
|
data/lib/kaminari-cache.rb
CHANGED
@@ -60,14 +60,18 @@ module KaminariCache
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def apply_sort(scope, order)
|
63
|
-
case order
|
63
|
+
case order
|
64
64
|
when Symbol
|
65
65
|
scope.order! order
|
66
66
|
when String
|
67
67
|
scope.order! order
|
68
68
|
when Hash
|
69
69
|
order.each do |k, v|
|
70
|
-
|
70
|
+
if v.empty?
|
71
|
+
scope.order! k
|
72
|
+
else
|
73
|
+
scope.order! "#{k.to_s} #{v.to_s}"
|
74
|
+
end
|
71
75
|
end
|
72
76
|
end
|
73
77
|
scope
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim
|
@@ -153,7 +153,6 @@ files:
|
|
153
153
|
- VERSION
|
154
154
|
- kaminari-cache.gemspec
|
155
155
|
- lib/kaminari-cache.rb
|
156
|
-
- lib/kaminari-cache/version.rb
|
157
156
|
- test/helper.rb
|
158
157
|
- test/test_kaminari-cache.rb
|
159
158
|
homepage: http://github.com/jdurand/kaminari-cache
|