rexpro 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -32,7 +32,7 @@ require 'rexpro'
32
32
 
33
33
  client = Rexpro::Client.new(host: 'localhost', port: 8184) # defaults
34
34
 
35
- response = client.execute('g.v(2)', graph_name: 'tinkergraph')
35
+ response = client.execute('g.v(vid)', graph_name: 'tinkergraph', bindings: {vid: 2})
36
36
 
37
37
  response.results
38
38
  => {"_id"=>"2", "_type"=>"vertex", "_properties"=>{"name"=>"vadas", "age"=>27}}
@@ -38,17 +38,17 @@ module Rexpro
38
38
  req.write_to(@socket)
39
39
 
40
40
  Rexpro::Message.read_from(@socket).tap do |resp|
41
- if resp.request_uuid.bytes.to_a != req.request_uuid.bytes.to_a
42
- @socket.close
43
- raise Rexpro::RexproException,
44
- "request uuid of response didn't match request"
45
- end
46
-
47
41
  if resp.is_a? Rexpro::Message::Error
48
42
  err_msg = resp.error_message
49
43
  err_msg << " [flag=#{resp.flag}]" if resp.flag
50
44
  raise Rexpro::RexproError.new(err_msg)
51
45
  end
46
+
47
+ if resp.request_uuid.bytes.to_a != req.request_uuid.bytes.to_a
48
+ @socket.close
49
+ raise Rexpro::RexproException,
50
+ "request uuid of response didn't match request"
51
+ end
52
52
  end
53
53
  rescue TCPTimeout::SocketTimeout => ex
54
54
  raise Rexpro::RexproException.new(ex)
@@ -1,3 +1,3 @@
1
1
  module Rexpro
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Lann Martin
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-18 00:00:00.000000000 Z
12
+ date: 2014-09-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: msgpack
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: uuid
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: tcp_timeout
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: bundler
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,15 +78,17 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rake
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  description: RexPro, a binary protocol for Rexster
@@ -107,31 +118,36 @@ files:
107
118
  homepage: https://github.com/lann/rexpro-ruby
108
119
  licenses:
109
120
  - MIT
110
- metadata: {}
111
- post_install_message: |2+
121
+ post_install_message: ! '
112
122
 
113
123
  ! ***UPDGRADE WARNING***
124
+
114
125
  ! rexpro-ruby 1.x breaks compatibility with rexster-server-2.3 and below.
126
+
115
127
  ! Continue using 0.x versions if you cannot upgrade rexster.
116
128
 
129
+
130
+ '
117
131
  rdoc_options: []
118
132
  require_paths:
119
133
  - lib
120
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
+ none: false
121
136
  requirements:
122
- - - '>='
137
+ - - ! '>='
123
138
  - !ruby/object:Gem::Version
124
139
  version: '0'
125
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
+ none: false
126
142
  requirements:
127
- - - '>='
143
+ - - ! '>='
128
144
  - !ruby/object:Gem::Version
129
145
  version: '0'
130
146
  requirements: []
131
147
  rubyforge_project:
132
- rubygems_version: 2.0.3
148
+ rubygems_version: 1.8.23
133
149
  signing_key:
134
- specification_version: 4
150
+ specification_version: 3
135
151
  summary: RexPro is a binary protocol for Rexster that can be used to send Gremlin
136
152
  scripts to a remote Rexster instance.
137
153
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c285c8ba0eff69cc073538af4ec13e778e4bd446
4
- data.tar.gz: 6222bc5d0537fc9b5a7930b6cb2e5675fe99838b
5
- SHA512:
6
- metadata.gz: 44e8e198fc74b2178c377e3261a950a06dec30712d39f3a1e51d118e17b2be597b7b730269c2c7c5ddd225bc3c348f53d6a491eaf83c2b83eab22c95a74dc23f
7
- data.tar.gz: 794291c0201aaf38028a08147ae5c114b80dfe0350a6d21bada272ac4ea16783e4923895d2ec198ab5c5f5854fef9cbb2ade41f85d63a954a6bd8bff56bc9ca0