rethinkdb 2.1.0 → 2.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/func.rb +1 -1
  3. data/lib/shim.rb +5 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4dbe3bed2b00fa519fa84f136b6b140da9e97c49
4
- data.tar.gz: 478001c0afd50dcbad8d02d843ffa2602d7cec6d
3
+ metadata.gz: 0f9e29fef9dff4fff5839c8e3a5f6437c3d74d95
4
+ data.tar.gz: f6298583258d5cb4184e98387cf1cbdcd3bafe27
5
5
  SHA512:
6
- metadata.gz: 34d05e329c5c523c91f324e67205cef95ad57c2af7ae9b01977ddd76e2bb03be110b45165fd42fbe36535865548bef1e8b82cb37925a21cc98dea9e25e1b9a6d
7
- data.tar.gz: 07a54b27fba8686fd47b9a6a814f18e417400fc4636240f015c255aa7e52358ffc623fb2c375c66fc1b2a2f07d0fa044b07d609e1441ced43eab383b61f472de
6
+ metadata.gz: 24c971f08f44c05f7367cad246478a84dfc16723ce69409ced3ab191c5add66c0bff11b63f45455ed2eced5a48c4826c9a16ac59ea4b721cbdb9745e2f82a707
7
+ data.tar.gz: 8604ceb2fe485b2149f4dd7c09330cb6ce3e62446648ee23814d4bebc112263d21b079a4863f2e1221867989103c4ebd9714a021c153c07ac10474e5363b545b
data/lib/func.rb CHANGED
@@ -83,7 +83,7 @@ module RethinkDB
83
83
  if [:<, :<=, :>, :>=, :+, :-, :*, :/, :%].include?(__method__)
84
84
  a.each {|arg|
85
85
  if arg.is_a?(RQL) && arg.bitop
86
- err = "Calling #{__method__} on result of infix bitwise operator:\n" +
86
+ err = "Calling '#{__method__}' on result of infix bitwise operator:\n" +
87
87
  "#{arg.inspect}.\n" +
88
88
  "This is almost always a precedence error.\n" +
89
89
  "Note that `a < b | b < c` <==> `a < (b | b) < c`.\n" +
data/lib/shim.rb CHANGED
@@ -88,6 +88,11 @@ module RethinkDB
88
88
  def to_json(*a, &b)
89
89
  @body.to_json(*a, &b)
90
90
  end
91
+
92
+ def as_json(*a, &b)
93
+ @body.as_json(*a, &b)
94
+ end
95
+
91
96
  def to_pb; @body; end
92
97
 
93
98
  def binary(*a)
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.1
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-08-11 00:00:00.000000000 Z
11
+ date: 2015-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json