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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28183a002a46cb07b4bb06afee24635401c7c2fe
4
- data.tar.gz: 358e7baa55c0d6ad366b01540370fd445b4f7532
3
+ metadata.gz: 559057935d4e2a19d75f01b08e66b22af7974c67
4
+ data.tar.gz: a631703347f7caf672ce7916f800a0e2567b8510
5
5
  SHA512:
6
- metadata.gz: cb180b835ceaf73ebba7df1bdaae7cb4dd2b6788cbb7031221d205a0e8ac9b409016fc8803240d5cbdee0e015b00c204fc0557b68b2f91c7b7b8219820b8963a
7
- data.tar.gz: 93415bd52ed219e32a2d46a8657c58f51b3dcf22296d423e25701e29a40ebe2b5310bb5238e1ab0c52acb965f3a8079952de804b304f1ba9843c03079be45d3c
6
+ metadata.gz: a6ee3881813ef0ba42eba4b110fc207cc80b1f652cb0e98e24bf59eaaabca18c2a32762009d3bad76a9362c0779b88b300d0d75ad0ab4ca66c5af2a13d412d6d
7
+ data.tar.gz: b555bfc1c5d19e4c10757e91694b7cbeae6ab938795f30466a7a3eb186650fd64575e357b32b8178edc25a474e2d4e657752920319e51331cd4e17ca8051451d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaminari-cache (0.1.0)
4
+ kaminari-cache (0.1.1)
5
5
  kaminari-cache
6
6
 
7
7
  GEM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kaminari-cache"
8
- s.version = "0.1.0"
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
  ]
@@ -60,14 +60,18 @@ module KaminariCache
60
60
  end
61
61
 
62
62
  def apply_sort(scope, order)
63
- case order.class
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
- scope.order! "#{k.to_s} #{v.to_s}"
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.0
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
@@ -1,3 +0,0 @@
1
- module KaminariCache
2
- VERSION = '0.1.0'
3
- end