rethinkdb 1.11.0.1 → 1.11.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/rethinkdb.rb +13 -0
- data/lib/shim.rb +1 -2
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f587abb21c2f7e36f127e616288c54b13dfd301
|
4
|
+
data.tar.gz: 6882be24c8e9299e6e28fd2856807e687a2123e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf87c17c7361a4fe68ecdf69196a41c253e0177c2d5a7ca308f992dce9c1f419cbad037bf563d5db0417eb9e5253d7350201642276fe0a846b6ecf64706831aa
|
7
|
+
data.tar.gz: 33ee490117e89cfa8cabc2f793dbd08ae6a8050de0ecb5094282c2303eaab8bba804104eda3d6a5f7e4e2f4e13e497ec44aa57e907b004a83008de6de0cc1cb9
|
data/lib/rethinkdb.rb
CHANGED
@@ -11,10 +11,23 @@ load 'shim.rb'
|
|
11
11
|
load 'func.rb'
|
12
12
|
load 'rpp.rb'
|
13
13
|
|
14
|
+
class Term::AssocPair
|
15
|
+
def deep_dup
|
16
|
+
dup.tap { |pair| pair.val = pair.val.deep_dup }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
14
20
|
class Term
|
15
21
|
attr_accessor :context
|
16
22
|
attr_accessor :is_error
|
17
23
|
|
24
|
+
def deep_dup
|
25
|
+
dup.tap {|term|
|
26
|
+
term.args.map!(&:deep_dup)
|
27
|
+
term.optargs.map!(&:deep_dup)
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
18
31
|
def bt_tag bt
|
19
32
|
@is_error = true
|
20
33
|
begin
|
data/lib/shim.rb
CHANGED
@@ -88,9 +88,8 @@ module RethinkDB
|
|
88
88
|
else raise RqlRuntimeError, "Unexpected response: #{r.inspect}"
|
89
89
|
end
|
90
90
|
rescue RqlError => e
|
91
|
-
term = orig_term.
|
91
|
+
term = orig_term.deep_dup
|
92
92
|
term.bt_tag(bt)
|
93
|
-
$t = term
|
94
93
|
raise e.class, "#{e.message}\nBacktrace:\n#{RPP.pp(term)}"
|
95
94
|
end
|
96
95
|
end
|
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: 1.11.0.
|
4
|
+
version: 1.11.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:
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: varint
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description:
|
42
56
|
email: bugs@rethinkdb.com
|
43
57
|
executables: []
|
@@ -46,11 +60,11 @@ extra_rdoc_files: []
|
|
46
60
|
files:
|
47
61
|
- lib/exc.rb
|
48
62
|
- lib/ql2.pb.rb
|
49
|
-
- lib/rethinkdb.rb
|
50
|
-
- lib/rpp.rb
|
51
|
-
- lib/func.rb
|
52
63
|
- lib/net.rb
|
64
|
+
- lib/rethinkdb.rb
|
53
65
|
- lib/shim.rb
|
66
|
+
- lib/func.rb
|
67
|
+
- lib/rpp.rb
|
54
68
|
homepage: http://rethinkdb.com
|
55
69
|
licenses:
|
56
70
|
- Apache-2
|