mongoid_query_string_interface 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,7 +87,7 @@ module Mongoid
87
87
  end
88
88
 
89
89
  def parse_value(value, operator)
90
- parse_date(value) or parse_integer(value) or parse_array(value, operator) or parse_regex(value) or value
90
+ parse_date(value) or parse_integer(value) or parse_float(value) or parse_array(value, operator) or parse_regex(value) or value
91
91
  end
92
92
 
93
93
  def parse_date(date)
@@ -97,7 +97,7 @@ module Mongoid
97
97
  end
98
98
 
99
99
  def parse_integer(integer)
100
- if match = integer.match(/\d+/)
100
+ if match = integer.match(/^\d+$/)
101
101
  match[0].to_i
102
102
  end
103
103
  end
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.2"
4
+ VERSION = "0.1.3"
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vicente Mundim
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-22 00:00:00 -03:00
18
+ date: 2010-08-10 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency