gremlin_client 0.1.5 → 0.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 554200a9f09c4b653a1472cec1fdf300a43a2907
4
- data.tar.gz: 9bd314fae406984547b40f94109d6c87b6bdc789
2
+ SHA256:
3
+ metadata.gz: d463c286ef8435033b84fecb3552c9fab5783b19fc33ca1e7e0626e0b4c03b87
4
+ data.tar.gz: 7e4e4cf09210d770936b4479162ac877ae1ed7678c5dc58d983d522571b845e0
5
5
  SHA512:
6
- metadata.gz: 595ecdc8ffc3fc878f989ffef5c82296507aa0a6e3a9d8593742f76b0627b38690f83cb21c9973e0ceb329457ff7652cea6edcde103f5c7b3f004a68b6dfe87d
7
- data.tar.gz: 77e78c10ed640c8374a596ed8f34bf4ecdf0598898a8758ac2c0100e60044b55e2b9fadcefeb6ae98e2002d3ccc900663298f86144eb1912845153aa75f016b1
6
+ metadata.gz: e179fdfcc31f687d894f65915213af2acc4426b9e68a8cb8348061b3168fd73a28ea31c0f7dcaa333901bf3e9fcc4fcafc062627b7fe75aa786df4de2ef3b9b9
7
+ data.tar.gz: '07835da2c7f2bc5d111eb14501b0129ab79c3ebc0fbcdb511f185ca8e3f03a93dce0436b9301f35a51fe0fd63ff8fbf5525dbfaa1b13c046d5b2d33b53f18a81'
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.5.1
@@ -1,30 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gremlin_client (0.1.5)
4
+ gremlin_client (0.1.6)
5
5
  oj (~> 2.16)
6
6
  websocket-client-simple (~> 0.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.3.0)
12
- coderay (1.1.1)
13
- coveralls (0.8.19)
11
+ ast (2.4.0)
12
+ coderay (1.1.2)
13
+ coveralls (0.8.22)
14
14
  json (>= 1.8, < 3)
15
- simplecov (~> 0.12.0)
15
+ simplecov (~> 0.16.1)
16
16
  term-ansicolor (~> 1.3)
17
- thor (~> 0.19.1)
17
+ thor (~> 0.19.4)
18
18
  tins (~> 1.6)
19
19
  diff-lcs (1.3)
20
- docile (1.1.5)
21
- event_emitter (0.2.5)
22
- ffi (1.9.17)
20
+ docile (1.3.1)
21
+ event_emitter (0.2.6)
22
+ ffi (1.9.25)
23
23
  formatador (0.2.5)
24
- guard (2.14.1)
24
+ guard (2.14.2)
25
25
  formatador (>= 0.2.4)
26
26
  listen (>= 2.7, < 4.0)
27
- lumberjack (~> 1.0)
27
+ lumberjack (>= 1.0.12, < 2.0)
28
28
  nenv (~> 0.1)
29
29
  notiffany (~> 0.0)
30
30
  pry (>= 0.9.12)
@@ -35,64 +35,66 @@ GEM
35
35
  guard (~> 2.1)
36
36
  guard-compat (~> 1.1)
37
37
  rspec (>= 2.99.0, < 4.0)
38
- json (2.0.3)
38
+ jaro_winkler (1.5.1)
39
+ json (2.1.0)
39
40
  listen (3.1.5)
40
41
  rb-fsevent (~> 0.9, >= 0.9.4)
41
42
  rb-inotify (~> 0.9, >= 0.9.7)
42
43
  ruby_dep (~> 1.2)
43
- lumberjack (1.0.11)
44
- method_source (0.8.2)
44
+ lumberjack (1.0.13)
45
+ method_source (0.9.0)
45
46
  nenv (0.3.0)
46
47
  notiffany (0.1.1)
47
48
  nenv (~> 0.1)
48
49
  shellany (~> 0.0)
49
50
  oj (2.18.5)
50
- parser (2.4.0.0)
51
- ast (~> 2.2)
52
- powerpack (0.1.1)
53
- pry (0.10.4)
51
+ parallel (1.12.1)
52
+ parser (2.5.1.2)
53
+ ast (~> 2.4.0)
54
+ powerpack (0.1.2)
55
+ pry (0.11.3)
54
56
  coderay (~> 1.1.0)
55
- method_source (~> 0.8.1)
56
- slop (~> 3.4)
57
- rainbow (2.2.1)
58
- rake (12.0.0)
59
- rb-fsevent (0.9.8)
60
- rb-inotify (0.9.8)
61
- ffi (>= 0.5.0)
62
- rspec (3.5.0)
63
- rspec-core (~> 3.5.0)
64
- rspec-expectations (~> 3.5.0)
65
- rspec-mocks (~> 3.5.0)
66
- rspec-core (3.5.4)
67
- rspec-support (~> 3.5.0)
68
- rspec-expectations (3.5.0)
57
+ method_source (~> 0.9.0)
58
+ rainbow (3.0.0)
59
+ rake (12.3.1)
60
+ rb-fsevent (0.10.3)
61
+ rb-inotify (0.9.10)
62
+ ffi (>= 0.5.0, < 2)
63
+ rspec (3.8.0)
64
+ rspec-core (~> 3.8.0)
65
+ rspec-expectations (~> 3.8.0)
66
+ rspec-mocks (~> 3.8.0)
67
+ rspec-core (3.8.0)
68
+ rspec-support (~> 3.8.0)
69
+ rspec-expectations (3.8.1)
69
70
  diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.5.0)
71
- rspec-mocks (3.5.0)
71
+ rspec-support (~> 3.8.0)
72
+ rspec-mocks (3.8.0)
72
73
  diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.5.0)
74
- rspec-support (3.5.0)
75
- rubocop (0.47.1)
76
- parser (>= 2.3.3.1, < 3.0)
74
+ rspec-support (~> 3.8.0)
75
+ rspec-support (3.8.0)
76
+ rubocop (0.59.0)
77
+ jaro_winkler (~> 1.5.1)
78
+ parallel (~> 1.10)
79
+ parser (>= 2.5, != 2.5.1.1)
77
80
  powerpack (~> 0.1)
78
- rainbow (>= 1.99.1, < 3.0)
81
+ rainbow (>= 2.2.2, < 4.0)
79
82
  ruby-progressbar (~> 1.7)
80
83
  unicode-display_width (~> 1.0, >= 1.0.1)
81
- ruby-progressbar (1.8.1)
84
+ ruby-progressbar (1.10.0)
82
85
  ruby_dep (1.5.0)
83
86
  shellany (0.0.1)
84
- simplecov (0.12.0)
85
- docile (~> 1.1.0)
87
+ simplecov (0.16.1)
88
+ docile (~> 1.1)
86
89
  json (>= 1.8, < 3)
87
90
  simplecov-html (~> 0.10.0)
88
- simplecov-html (0.10.0)
89
- slop (3.6.0)
90
- term-ansicolor (1.4.0)
91
+ simplecov-html (0.10.2)
92
+ term-ansicolor (1.6.0)
91
93
  tins (~> 1.0)
92
94
  thor (0.19.4)
93
- tins (1.13.2)
94
- unicode-display_width (1.1.3)
95
- websocket (1.2.4)
95
+ tins (1.16.3)
96
+ unicode-display_width (1.4.0)
97
+ websocket (1.2.8)
96
98
  websocket-client-simple (0.3.0)
97
99
  event_emitter
98
100
  websocket
@@ -107,7 +109,7 @@ DEPENDENCIES
107
109
  guard-rspec (~> 4.7)
108
110
  rake (~> 12.0)
109
111
  rspec (~> 3.5)
110
- rubocop (~> 0.47)
112
+ rubocop (~> 0.49)
111
113
 
112
114
  BUNDLED WITH
113
- 1.14.6
115
+ 1.16.4
data/README.md CHANGED
@@ -30,8 +30,8 @@ gem instal gremlin_client
30
30
  ```
31
31
 
32
32
  ```ruby
33
- conn = GremlinClient.Connection.new(host: 'localhost', port:123)
34
- resp = conn.send("g.V().has('myVar', myValue)", {myValue: 'this_is_processed_by_gremlin_server'})
33
+ conn = GremlinClient::Connection.new(host: 'localhost', port:123)
34
+ resp = conn.send_query("g.V().has('myVar', myValue)", {myValue: 'this_is_processed_by_gremlin_server'})
35
35
  ```
36
36
 
37
37
  Alternativelly, you can use groovy files instead:
@@ -47,7 +47,7 @@ g.V().has("something", var1)
47
47
  You can even specify the folder where to load those files in the constructor:
48
48
 
49
49
  ```ruby
50
- conn = GremlinClient.Connection.new(gremlin_script_path: 'scripts/gremlin')
50
+ conn = GremlinClient::Connection.new(gremlin_script_path: 'scripts/gremlin')
51
51
  ```
52
52
 
53
53
 
data/RELEASE.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Release Notes
2
2
 
3
+ ## v0.1.6 - 2018-09-10
3
4
 
5
+ * add path option to Amazon neptune (thank you @yoku and @garymacindoe)
6
+ * depedency version bump (security)
7
+
8
+ ## v0.1.5
4
9
 
5
10
  ## v0.1.4 - 2017-04-14
6
11
 
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'rake', '~> 12.0'
27
27
  spec.add_development_dependency 'rspec', '~> 3.5'
28
28
  spec.add_development_dependency 'guard-rspec', '~> 4.7'
29
- spec.add_development_dependency 'rubocop', '~> 0.47'
29
+ spec.add_development_dependency 'rubocop', '~> 0.49'
30
30
  spec.add_development_dependency 'coveralls', '~> 0.8'
31
31
  end
@@ -33,6 +33,7 @@ module GremlinClient
33
33
  def initialize(
34
34
  host: 'localhost',
35
35
  port: 8182,
36
+ path: '/',
36
37
  connection_timeout: 1,
37
38
  timeout: 10,
38
39
  gremlin_script_path: '.',
@@ -40,6 +41,7 @@ module GremlinClient
40
41
  )
41
42
  @host = host
42
43
  @port = port
44
+ @path = path
43
45
  @connection_timeout = connection_timeout
44
46
  @timeout = timeout
45
47
  @gremlin_script_path = gremlin_script_path
@@ -51,7 +53,7 @@ module GremlinClient
51
53
  # creates a new connection object
52
54
  def connect
53
55
  gremlin = self
54
- WebSocket::Client::Simple.connect("ws://#{@host}:#{@port}/") do |ws|
56
+ WebSocket::Client::Simple.connect("ws://#{@host}:#{@port}#{@path}") do |ws|
55
57
  @ws = ws
56
58
 
57
59
  @ws.on :message do |msg|
@@ -1,3 +1,3 @@
1
1
  module GremliClient
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -54,8 +54,8 @@ RSpec.describe :connection do
54
54
  end
55
55
 
56
56
  it :websocket do
57
- expect(WebSocket::Client::Simple).to receive(:connect).with('ws://SERVER_A:123/')
58
- conn = GremlinClient::Connection.new(host: :SERVER_A, port: 123)
57
+ expect(WebSocket::Client::Simple).to receive(:connect).with('ws://SERVER_A:123/path/to/gremlin')
58
+ conn = GremlinClient::Connection.new(host: :SERVER_A, port: 123, path: '/path/to/gremlin')
59
59
  end
60
60
 
61
61
  it :gremlin_script_path do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gremlin_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Coraça de Freitas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket-client-simple
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.47'
103
+ version: '0.49'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.47'
110
+ version: '0.49'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: coveralls
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.5.1
176
+ rubygems_version: 2.7.7
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Simple Gremlin server client for the WebSocketChannelizer