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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shim.rb +3 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f9e29fef9dff4fff5839c8e3a5f6437c3d74d95
4
- data.tar.gz: f6298583258d5cb4184e98387cf1cbdcd3bafe27
3
+ metadata.gz: dbb7d223e47d54934c1ac7cacc2428c5fbcc703a
4
+ data.tar.gz: 59d38d87a0ad38746109a006ca1116e473ee1bf3
5
5
  SHA512:
6
- metadata.gz: 24c971f08f44c05f7367cad246478a84dfc16723ce69409ced3ab191c5add66c0bff11b63f45455ed2eced5a48c4826c9a16ac59ea4b721cbdb9745e2f82a707
7
- data.tar.gz: 8604ceb2fe485b2149f4dd7c09330cb6ce3e62446648ee23814d4bebc112263d21b079a4863f2e1221867989103c4ebd9714a021c153c07ac10474e5363b545b
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.1
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-09-05 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json