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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rethinkdb.rb +13 -0
  3. data/lib/shim.rb +1 -2
  4. metadata +19 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d589a0dca4408818f9436f1de68c0b308f3d5e90
4
- data.tar.gz: da8263048750b9f9849dd603423a749f64f011ac
3
+ metadata.gz: 9f587abb21c2f7e36f127e616288c54b13dfd301
4
+ data.tar.gz: 6882be24c8e9299e6e28fd2856807e687a2123e0
5
5
  SHA512:
6
- metadata.gz: 5e6cdf08230b8c639fe7b27b85c99e511cec21dd8d20646ab148dac3dbb70380c2226b5c97a346f25a5ce06a880c01334db89221bbb81379e1e9a7c4dfe83390
7
- data.tar.gz: 13e9754e90e8c7dabb4831265bb9a2ad72c10ee534cff87bc711f2bd02fb8810048a5d64bb29ba794106526b183bb60fbbc5afe3d8288d3301f00cbbd19539ec
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.dup
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.1
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: 2013-12-03 00:00:00.000000000 Z
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