mongoid_query_string_interface 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,7 +109,9 @@ module Mongoid
109
109
  end
110
110
 
111
111
  def parse_array(value, operator)
112
- split_and_strip(value) if array_operator?(operator)
112
+ if array_operator?(operator)
113
+ split_and_strip(value).map { |item| parse_regex(item) or item }
114
+ end
113
115
  end
114
116
 
115
117
  def parse_regex(regex)
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Mongoid #:nodoc
3
3
  module QueryStringInterface #:nodoc
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_query_string_interface
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vicente Mundim