plucky 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,7 +72,7 @@ module Plucky
72
72
  end
73
73
 
74
74
  def object_ids=(value)
75
- raise ArgumentError unless value.respond_to?(:flatten)
75
+ raise ArgumentError unless value.is_a?(Array)
76
76
  @options[:object_ids] = value.flatten
77
77
  end
78
78
 
@@ -67,7 +67,11 @@ module Plucky
67
67
  def normalized_sort(value)
68
68
  case value
69
69
  when Array
70
- value.compact.map { |v| normalized_sort_piece(v).flatten }
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
@@ -1,3 +1,3 @@
1
1
  module Plucky
2
- Version = '0.1'
2
+ Version = '0.1.1'
3
3
  end
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- version: "0.1"
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 00:00:00 -04:00
17
+ date: 2010-05-18 00:00:00 -04:00
17
18
  default_executable:
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency