activegraph 10.0.0.pre.beta.9 → 10.0.0.pre.beta.10

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
  SHA256:
3
- metadata.gz: 8550db7a7318c874038288f06c18b61626de59b1e15ef6da84106c655a765ddc
4
- data.tar.gz: 917fa4fa44b7ece60ddacae791ae73fb70632743092cb51f0efd062d4114a2c2
3
+ metadata.gz: 6d466d85a93338f42ae557c48b34cb8eef9be931703af2cd6f75b84c7fa99fcb
4
+ data.tar.gz: e99a8b44d22b07f56a8935134aeb07352cd73c300a374594a55d927aa42beafd
5
5
  SHA512:
6
- metadata.gz: 1d995c7d4ca8bbc0639434f2f284f532554a65d551ce977ee1566d84b3df50b92b2565d99ed9fbb82a3d9b3a425900c813cc16213eec9b8fd0f10e3bfc2432d3
7
- data.tar.gz: c8532396f2b1a154733ff443ea6cd846b690b723cf86db8b37efe8153ebdf71b5fc923bfcf4c2ded43016cdd1a5213fe62222e928768d12e00d0ba5f2ee65d6c
6
+ metadata.gz: 48158eae360949d5d3fc227dc6e967e8de7bcdd4af36e801e741bb494d518aec9d7620563bb9c8b0a919cd11680cec1faeeb89e97e2a9685c5ac1e5c16a8626b
7
+ data.tar.gz: 876d5d8837cd4511fbec787ac283fbcbd92633a93f62be4b6640499caf1e0aba8b2b43e11765037f5e52e2759bb0d05be68a6d41bf834ef1a40e52f67d5f47fa
@@ -1,7 +1,7 @@
1
1
  module ActiveGraph
2
2
  module ClassArguments
3
3
  class << self
4
- INVALID_CLASS_ARGUMENT_ERROR = 'option must by String, Symbol, false, nil, or an Array of Symbols/Strings'
4
+ INVALID_CLASS_ARGUMENT_ERROR = 'option must be String, Symbol, false, nil, or an Array of Symbols/Strings'
5
5
 
6
6
  def valid_argument?(class_argument)
7
7
  [NilClass, String, Symbol, FalseClass].include?(class_argument.class) ||
@@ -64,7 +64,9 @@ module ActiveGraph
64
64
  auth_token ||= username ? Neo4j::Driver::AuthTokens.basic(username, password) : Neo4j::Driver::AuthTokens.none
65
65
  register_neo4j_cypher_logging
66
66
 
67
- Neo4j::Driver::GraphDatabase.driver(url || path || default_driver_path_or_url, auth_token, config)
67
+ url ||= path || default_driver_path_or_url
68
+ method = url.is_a?(Enumerable) ? :routing_driver : :driver
69
+ Neo4j::Driver::GraphDatabase.send(method, url, auth_token, config)
68
70
  end
69
71
 
70
72
  def final_driver_config!(neo4j_config)
@@ -1,3 +1,3 @@
1
1
  module ActiveGraph
2
- VERSION = '10.0.0-beta.9'
2
+ VERSION = '10.0.0-beta.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0.pre.beta.9
4
+ version: 10.0.0.pre.beta.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg, Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel