flounder 0.9.14 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY +3 -0
- data/flounder.gemspec +1 -1
- data/lib/flounder/query/select.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d324609dd93210feb39bb7b46739c46cfbc0662f
|
4
|
+
data.tar.gz: cb52c14ff194b1222eaed3b22b0ad938dc7a1914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64af342ed59b17cd4912168f60fe61f46fae2e1da4e9077095736b96c917953098a700851c7c877f263d0ddddfc9ddb3a4d683b90313d7d106d778461a7478c8
|
7
|
+
data.tar.gz: 234cfb876a6f5119807075fcceac54ec63b819af7b733d97964252e43385851af2052ff25928167f376a67383c0dae1e376e5aca60588791fde5ad4cc667e73e
|
data/HISTORY
CHANGED
data/flounder.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "flounder"
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.10.0'
|
6
6
|
s.summary = "Flounder is a way to write SQL simply in Ruby. It deals with everything BUT object relational mapping. "
|
7
7
|
s.email = "kaspar.schiess@technologyastronauts.ch"
|
8
8
|
s.homepage = "https://bitbucket.org/technologyastronauts/oss_flounder"
|
@@ -207,6 +207,15 @@ module Flounder::Query
|
|
207
207
|
# * #on
|
208
208
|
#
|
209
209
|
def transform field
|
210
|
+
if defined?(DataMapper) &&
|
211
|
+
defined?(DataMapper::Query::Operator) &&
|
212
|
+
field.kind_of?(DataMapper::Query::Operator)
|
213
|
+
|
214
|
+
# interop: datamapper hijacks some of our operators, let's reverse this
|
215
|
+
field = Flounder::SymbolExtensions::Modifier.new(
|
216
|
+
field.target, field.operator)
|
217
|
+
end
|
218
|
+
|
210
219
|
case field
|
211
220
|
when String
|
212
221
|
Immediate.new(field).to_arel_field
|