rethinkdb 1.2.0.1 → 1.2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/net.rb +1 -1
- data/lib/query.rb +1 -1
- data/lib/rql.rb +8 -0
- metadata +43 -16
data/lib/net.rb
CHANGED
@@ -226,7 +226,7 @@ module RethinkDB
|
|
226
226
|
|
227
227
|
# Return the last opened connection, or throw if there is no such
|
228
228
|
# connection. Used by e.g. RQL_Query#run.
|
229
|
-
def self.
|
229
|
+
def self.last
|
230
230
|
return @@last if @@last
|
231
231
|
raise RuntimeError, "No last connection. Use RethinkDB::Connection.new."
|
232
232
|
end
|
data/lib/query.rb
CHANGED
@@ -11,7 +11,7 @@ module RethinkDB
|
|
11
11
|
# Run the invoking query using the most recently opened connection. See
|
12
12
|
# Connection#run for more details.
|
13
13
|
def run(*args)
|
14
|
-
Connection.
|
14
|
+
Connection.last.send(:run, self, *args)
|
15
15
|
end
|
16
16
|
|
17
17
|
def set_body(val, context=nil) # :nodoc:
|
data/lib/rql.rb
CHANGED
@@ -19,6 +19,14 @@ module RethinkDB
|
|
19
19
|
# r(1) + 2
|
20
20
|
# r.+(1, 2)
|
21
21
|
module RQL
|
22
|
+
# A shortcut for Connection::new
|
23
|
+
def self.connect(*args, &block)
|
24
|
+
Connection.new(*args, &block)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Return the most recently opened connection.
|
28
|
+
def self.last_connection; Connection.last; end
|
29
|
+
|
22
30
|
# Construct a javascript expression, which may refer to variables in scope
|
23
31
|
# (use <b>+to_s+</b> to get the name of a variable query, or simply splice
|
24
32
|
# it in). Defaults to a javascript expression, but if the optional second
|
metadata
CHANGED
@@ -1,24 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rethinkdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 75
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.2.0.
|
10
|
+
- 2
|
11
|
+
version: 1.2.0.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
|
-
-
|
14
|
+
- RethinkDB Inc.
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
19
|
date: 2012-11-09 00:00:00 Z
|
20
|
-
dependencies:
|
21
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: json
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: ruby_protobuf
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
22
49
|
description:
|
23
50
|
email: bugs@rethinkdb.com
|
24
51
|
executables: []
|
@@ -28,21 +55,21 @@ extensions: []
|
|
28
55
|
extra_rdoc_files: []
|
29
56
|
|
30
57
|
files:
|
31
|
-
- lib/
|
58
|
+
- lib/base_classes.rb
|
59
|
+
- lib/data_collectors.rb
|
32
60
|
- lib/jsons.rb
|
61
|
+
- lib/net.rb
|
62
|
+
- lib/protob_compiler.rb
|
33
63
|
- lib/query.rb
|
64
|
+
- lib/query_language.pb.rb
|
34
65
|
- lib/rethinkdb.rb
|
35
|
-
- lib/bt.rb
|
36
|
-
- lib/writes.rb
|
37
66
|
- lib/rql.rb
|
67
|
+
- lib/streams.rb
|
68
|
+
- lib/tables.rb
|
38
69
|
- lib/utils.rb
|
39
|
-
- lib/
|
40
|
-
- lib/net.rb
|
41
|
-
- lib/query_language.pb.rb
|
70
|
+
- lib/writes.rb
|
42
71
|
- lib/sequence.rb
|
43
|
-
- lib/
|
44
|
-
- lib/streams.rb
|
45
|
-
- lib/data_collectors.rb
|
72
|
+
- lib/bt.rb
|
46
73
|
homepage: http://rethinkdb.com
|
47
74
|
licenses:
|
48
75
|
- Apache-2
|
@@ -72,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
99
|
requirements: []
|
73
100
|
|
74
101
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.7.2
|
76
103
|
signing_key:
|
77
104
|
specification_version: 3
|
78
105
|
summary: This package provides the Ruby driver library for the RethinkDB database server.
|