shanna-dm-tokyo-adapter 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/dm-tokyo-adapter/query.rb +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -78,7 +78,7 @@ module DataMapper
|
|
78
78
|
|
79
79
|
def comparison_statement(statements, comparison, affirmative = true)
|
80
80
|
value = comparison.value
|
81
|
-
primitive = comparison.
|
81
|
+
primitive = comparison.subject.primitive
|
82
82
|
|
83
83
|
if value.kind_of?(Range) && value.exclude_end?
|
84
84
|
operation = BooleanOperation.new(:and,
|
@@ -101,7 +101,7 @@ module DataMapper
|
|
101
101
|
else fail_native("Comparison #{comparison.slug}'.") && return
|
102
102
|
end
|
103
103
|
|
104
|
-
statements.add(comparison.
|
104
|
+
statements.add(comparison.subject.field, operator, quote_value(value), affirmative)
|
105
105
|
end
|
106
106
|
|
107
107
|
def quote_value(value)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shanna-dm-tokyo-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Hanna
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|