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 +4 -4
- data/lib/active_graph/class_arguments.rb +1 -1
- data/lib/active_graph/railtie.rb +3 -1
- data/lib/active_graph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d466d85a93338f42ae557c48b34cb8eef9be931703af2cd6f75b84c7fa99fcb
|
4
|
+
data.tar.gz: e99a8b44d22b07f56a8935134aeb07352cd73c300a374594a55d927aa42beafd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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) ||
|
data/lib/active_graph/railtie.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/active_graph/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|