mongoid_query_string_interface 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mongoid_query_string_interface.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
|
@@ -109,7 +109,9 @@ module Mongoid
|
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
def parse_array(value, operator)
|
|
112
|
-
|
|
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
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:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.1.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Vicente Mundim
|