plucky 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plucky/criteria_hash.rb +1 -1
- data/lib/plucky/options_hash.rb +5 -1
- data/lib/plucky/version.rb +1 -1
- metadata +3 -2
data/lib/plucky/criteria_hash.rb
CHANGED
data/lib/plucky/options_hash.rb
CHANGED
@@ -67,7 +67,11 @@ module Plucky
|
|
67
67
|
def normalized_sort(value)
|
68
68
|
case value
|
69
69
|
when Array
|
70
|
-
value.
|
70
|
+
if value.size == 1 && value[0].is_a?(String)
|
71
|
+
normalized_sort_piece(value[0])
|
72
|
+
else
|
73
|
+
value.compact.map { |v| normalized_sort_piece(v).flatten }
|
74
|
+
end
|
71
75
|
else
|
72
76
|
normalized_sort_piece(value)
|
73
77
|
end
|
data/lib/plucky/version.rb
CHANGED
metadata
CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- John Nunemaker
|
@@ -13,7 +14,7 @@ autorequire:
|
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
16
|
|
16
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-18 00:00:00 -04:00
|
17
18
|
default_executable:
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|