query-interface-server 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa59e5d27a4d347557feacd5b8532d44a59fb193
|
|
4
|
+
data.tar.gz: b4e606a6eafa0fd084ad3c9f66c008b8b0028286
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2874115560a8d61ec60de63c914b5276f7034eea75ac62d05833d3dfb60f21c1b7087f5b4c4569f10905b68e56ba749e772b7739228a66b10b0d7197618901e4
|
|
7
|
+
data.tar.gz: 19c73142795c5389f40db1db8f43d1006e6cdaafb8ae216c41fbce71296870b73198b3b114fa2729782adfa31339f0df925ef452a138c02d256faf70acdc5ffa
|
|
@@ -58,10 +58,10 @@ module QueryInterface
|
|
|
58
58
|
def with(*fields, **opts)
|
|
59
59
|
self.copy.tap do |query|
|
|
60
60
|
fields.each do |field|
|
|
61
|
-
query.add_transformation("with", {field
|
|
61
|
+
query.add_transformation("with", {"field" => field.to_s})
|
|
62
62
|
end
|
|
63
63
|
opts.each do |field, param|
|
|
64
|
-
query.add_transformation("with", {field
|
|
64
|
+
query.add_transformation("with", {"field" => field.to_s, "param" => param})
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
end
|
|
@@ -87,7 +87,7 @@ module QueryInterface
|
|
|
87
87
|
def count
|
|
88
88
|
query = self.copy
|
|
89
89
|
query.add_transformation("count")
|
|
90
|
-
query.do_query
|
|
90
|
+
query.do_query
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def do_query
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: query-interface-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Kopecky <andreas.kopecky@radarservices.com>
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2014-
|
|
13
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: sequel
|