flounder 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flounder-0.9.6.gem +0 -0
- data/flounder.gemspec +1 -1
- data/lib/flounder/symbol_extensions.rb +2 -1
- data/qed/index.md +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25d788049bf3f82973544e20b826280ebfd41411
|
4
|
+
data.tar.gz: eb21cf7b82f279de89f198e1badc243a1d727ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b05e0b4cbbc339bdd90c52c9b9eed8f1ec300a724bce7f587f888e360ed6368fbba2fdc561e0b28aba58da9dd311cbb6c415040fa196c1cc64742a32846cad
|
7
|
+
data.tar.gz: e2e1eac6ce014003b11f009792ad9c4a0a702e485da0730e537df37e55f5abcc3603669a675655ffc2e65a9981e85079de1a15f75dfd8a1f7603c5015b99b7e4
|
data/flounder-0.9.6.gem
ADDED
Binary file
|
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.
|
5
|
+
s.version = '0.9.7'
|
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"
|
@@ -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, :
|
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
|
data/qed/index.md
CHANGED
@@ -46,6 +46,10 @@ Also, several conditions work as one would expect from DataMapper.
|
|
46
46
|
"SELECT [fields] FROM \"users\" WHERE \"users\".\"id\" >= 10")
|
47
47
|
domain[:users].where(:id.not_eq => 10).assert generates_sql(
|
48
48
|
"SELECT [fields] FROM \"users\" WHERE \"users\".\"id\" != 10")
|
49
|
+
domain[:users].where(:id.in => [1,2,3]).assert generates_sql(
|
50
|
+
"SELECT [fields] FROM \"users\" WHERE \"users\".\"id\" IN (1, 2, 3)")
|
51
|
+
domain[:users].where(:id.not_in => [1,2,3]).assert generates_sql(
|
52
|
+
"SELECT [fields] FROM \"users\" WHERE \"users\".\"id\" NOT IN (1, 2, 3)")
|
49
53
|
~~~
|
50
54
|
|
51
55
|
Fields can be used fully qualified by going through the entity.
|
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.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaspar Schiess
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- HISTORY
|
94
94
|
- LICENSE
|
95
95
|
- README
|
96
|
+
- flounder-0.9.6.gem
|
96
97
|
- flounder.gemspec
|
97
98
|
- lib/flounder.rb
|
98
99
|
- lib/flounder/connection.rb
|