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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e5d88da3b8782b8bb2fb07e95392a2123f894cd
4
- data.tar.gz: 9a166526a02b00dcb1095f1ce7a785d5f4a32034
3
+ metadata.gz: d324609dd93210feb39bb7b46739c46cfbc0662f
4
+ data.tar.gz: cb52c14ff194b1222eaed3b22b0ad938dc7a1914
5
5
  SHA512:
6
- metadata.gz: add6543b9ef0cbf7670cedf9e7f976bb45a615bbe08d80ba6ec864dfdd3e8e78a057c7e40bed41e717db414582c6c5aaa0b52450ad23478229533cf42398f702
7
- data.tar.gz: 4eca98ff56f180af2c35b0ef5f2e563297e87b1fb05b65ebfd908e2abd8612774cf7dc283d20d56ebbdc87be0d6dadb7f3d7d9a6d5be020d58353b5aae2ae22a
6
+ metadata.gz: 64af342ed59b17cd4912168f60fe61f46fae2e1da4e9077095736b96c917953098a700851c7c877f263d0ddddfc9ddb3a4d683b90313d7d106d778461a7478c8
7
+ data.tar.gz: 234cfb876a6f5119807075fcceac54ec63b819af7b733d97964252e43385851af2052ff25928167f376a67383c0dae1e376e5aca60588791fde5ad4cc667e73e
data/HISTORY CHANGED
@@ -1,4 +1,7 @@
1
1
 
2
+ # 0.10
3
+ + Datamapper interop is improved (also in #order_by)
4
+
2
5
  # 0.9
3
6
 
4
7
  + Allows expressions of the form `where('id=$1', 1)`.
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.9.14'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flounder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.14
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess