flounder 0.9.9 → 0.9.10

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: 940cc41b4684232c361a86fd4959dfef55b870b1
4
- data.tar.gz: 1a06c9aad7acfb5a10a27338a63a384aaaa1b159
3
+ metadata.gz: a3055b086d4ebfe48d6a8e0fc1f8b714dc156eea
4
+ data.tar.gz: 33502d671dae3850251f913ba2eb2a1a1d8e5741
5
5
  SHA512:
6
- metadata.gz: b9172f01e03b4df6ae1e4ee05f88440a4adffd478d8908458790e6cfed7db595b42c3b2af62fae8d41456dbb2761a63f9238503f0d5e9ca56fa2b5d8c9b5de1e
7
- data.tar.gz: 0df7ef74347458c652bf98a4f949153e25e97b8a8aed5e7372ac19d5527e32c6de5bf6e43feac782d3b74afc12384240612bd552b5eb14dff6cfb79dc0516d32
6
+ metadata.gz: da8812d564ca9a540992684eb613ac6a46eeaf513cf38d04f76049afad332856f02529626b4f2fc4133b4b1aa353e5898f75abddd798b53bf5300bee2f7d0229
7
+ data.tar.gz: 7671211165f8c2671ff42c653b166606db434cd49a5392ba600b3e42977d160fa0c3a588870955af333d5928aae8623b2619c59d21abf7574afa88789c832c9f
data/HISTORY CHANGED
@@ -12,4 +12,5 @@
12
12
  + subquery support
13
13
  + localized where as in where(entity, :field => value)
14
14
  + db.where(entity, hash) form, where all symbols are looked up in entity.
15
- + db.entity.join(:other_entity) is now allowed
15
+ + db.entity.join(:other_entity) is now allowed
16
+ + :symbol.in => ... is now working.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "flounder"
5
- s.version = '0.9.9'
5
+ s.version = '0.9.10'
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"
@@ -66,10 +66,9 @@ module Flounder::Query
66
66
  end
67
67
 
68
68
  def on join_conditions
69
- join_conditions.each do |k, v|
70
- manager.on(
69
+ k, v = join_conditions.first
70
+ manager.on(
71
71
  transform_tuple(entity, k, join_field(v)))
72
- end
73
72
  self
74
73
  end
75
74
  def anchor
@@ -16,7 +16,8 @@ module Flounder
16
16
  # NOTE mixing comparison ops with asc and desc is nasty, but not really
17
17
  # relevant. Errors will get raised later on - we're not in the business of
18
18
  # checking your SQL for validity.
19
- [:not_eq, :lt, :gt, :gteq, :lteq, :matches, :asc, :desc].each do |kind|
19
+ [:not_eq, :lt, :gt, :gteq, :lteq, :matches, :in, :not_in,
20
+ :asc, :desc].each do |kind|
20
21
  define_method kind do
21
22
  Modifier.new(self, kind)
22
23
  end
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.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess