rethinkdb 2.1.0.1 → 2.1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shim.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb7d223e47d54934c1ac7cacc2428c5fbcc703a
|
4
|
+
data.tar.gz: 59d38d87a0ad38746109a006ca1116e473ee1bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 614c86b32a5735c20405a5f3003ba5725f01140442da10c56db22c4cb4cfa4a9bf8e8c73d17decc4398776aa8a3c08a66d30b63b1a82da324d6b5065bc362630
|
7
|
+
data.tar.gz: cbc0b2f65cd489e52b85a573eaf5b8d4bc5fe86b5e203cb8ef1d9f407be07cea73f8416899bdb453cae17ca39cb434bdadabe206c5eccc228f1bd75dd18b59cb
|
data/lib/shim.rb
CHANGED
@@ -149,6 +149,9 @@ module RethinkDB
|
|
149
149
|
|
150
150
|
def expr(x, max_depth=20)
|
151
151
|
unbound_if(@body != RQL)
|
152
|
+
if !max_depth.is_a?(Numeric)
|
153
|
+
raise ReqlDriverError, "Second argument to `r.expr` must be a number."
|
154
|
+
end
|
152
155
|
RQL.fast_expr(x, max_depth)
|
153
156
|
end
|
154
157
|
def coerce(other)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rethinkdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RethinkDB Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|