gremlin_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 857945f3d59afb919ada2c03def3d2548a845753
4
- data.tar.gz: da8005b5c6e714b039bc78d8c21ffaa26f87c039
3
+ metadata.gz: d8aacf727c3233d7f671c378b395b0ac382b3918
4
+ data.tar.gz: e6b39121f3d570b622c1917590a64c285999c261
5
5
  SHA512:
6
- metadata.gz: 317e77f858d50bc94de9e91b6e8f70b228b05f0654cba152f1dfa67b8c35de3c043837b6f41366525cd41538aa135d5a75d5cf5afacb9ec20ef19c933480e7f0
7
- data.tar.gz: 0ee9aee6bc11cbcb5844bfb98fd0ce8c7c5d9cb5328000e6079297a6f230c49d30d4e507067c23f6c3fd4f33957ed87dd3d448494b11d62d1bceee676d58b2dd
6
+ metadata.gz: ed5208053eab26bbcc9cd225589479ea78227181b7cb08a99b1f75f5cd33feb767a2037ac17512cb109ac9958a4298da7e0073abddc021c4ffde53c13ca04616
7
+ data.tar.gz: c7ccee5ce8f570bb8dfcbedda1c1496fbce69151a51d0fd12e64c50e3008a7294e91f2309ef9c37fc8b0b8e7666a69eb7cac25a3e57c42ea8b607c9773ef2e91
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gremlin_client (0.0.2)
4
+ gremlin_client (0.0.3)
5
5
  websocket-client-simple (~> 0.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  # Module encapsulating our code
2
2
 
3
- require 'rubygems'
4
3
  require 'json'
4
+ require 'pathname'
5
5
  require 'websocket-client-simple'
6
6
 
7
7
  require 'gremlin_client/server_error'
@@ -40,6 +40,7 @@ module GremlinClient
40
40
 
41
41
  @timeout = timeout
42
42
  @groovy_script_path = groovy_script_path
43
+ @groovy_script_path = Pathname.new(@groovy_script_path) unless @groovy_script_path.is_a?(Pathname)
43
44
  end
44
45
 
45
46
 
@@ -122,7 +123,7 @@ module GremlinClient
122
123
 
123
124
  def resolve_path(filename)
124
125
  return filename if filename.is_a?(String) && filename[0,1] == '/'
125
- "#{@groovy_script_path}/#{filename}"
126
+ @groovy_script_path.join(filename).to_s
126
127
  end
127
128
  end
128
129
  end
@@ -1,3 +1,3 @@
1
1
  module GremliClient
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gremlin_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Coraça de Freitas