activegraph 10.0.0.pre.beta.2 → 10.0.0.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/activegraph.gemspec +2 -2
- data/lib/active_graph/railtie.rb +6 -5
- data/lib/active_graph/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf12b2e24dd9557ad7d5a232f653e150241910a48293d4aeba5f5e16f160a42
|
4
|
+
data.tar.gz: 36adc4653772d9132ea19f086b361f4d14fe61704ad1c75214ff441bac0652c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b15269740380e2bf9bf274f0d3cf89c0bc1394d3469c92919ce0fa172a0b7b22abeec2f7484440c2ff1dd38be275fbb6307aebcf1f8b5174cca8a8568aab70
|
7
|
+
data.tar.gz: fa92fc22ff87ae268a8ef951adb7dc2b838d3673db36ec34cbbf204be1584814a1c48d9c97fa2b87ae8ea09261ffb0a7a72e4c8be2f7dd4ac081c730b3be3b53
|
data/activegraph.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.name = 'activegraph'
|
8
8
|
s.version = ActiveGraph::VERSION
|
9
9
|
|
10
|
-
s.required_ruby_version =
|
10
|
+
s.required_ruby_version = '>= 2.5'
|
11
11
|
|
12
12
|
s.authors = 'Andreas Ronge, Brian Underwood, Chris Grigg, Heinrich Klobuczek'
|
13
13
|
s.email = 'andreas.ronge@gmail.com, public@brian-underwood.codes, chris@subvertallmedia.com, heinrich@mail.com'
|
@@ -38,7 +38,7 @@ DESCRIPTION
|
|
38
38
|
s.add_development_dependency('guard-rspec')
|
39
39
|
s.add_development_dependency('guard-rubocop')
|
40
40
|
s.add_development_dependency('neo4j-rake_tasks', '>= 0.3.0')
|
41
|
-
s.add_development_dependency("neo4j-#{
|
41
|
+
s.add_development_dependency("neo4j-#{ENV['driver'] == 'java' ? 'java' : 'ruby'}-driver", '>= 0.3.0')
|
42
42
|
s.add_development_dependency('os')
|
43
43
|
s.add_development_dependency('pry')
|
44
44
|
s.add_development_dependency('railties', '>= 4.0')
|
data/lib/active_graph/railtie.rb
CHANGED
@@ -7,7 +7,9 @@ require 'active_graph/core/driver'
|
|
7
7
|
module ActiveGraph
|
8
8
|
class Railtie < ::Rails::Railtie
|
9
9
|
def empty_config
|
10
|
-
ActiveSupport::OrderedOptions.new.tap
|
10
|
+
ActiveSupport::OrderedOptions.new.tap do |cfg|
|
11
|
+
cfg.driver = ActiveSupport::OrderedOptions.new.tap { |cfg| cfg.config = ActiveSupport::OrderedOptions.new }
|
12
|
+
end
|
11
13
|
end
|
12
14
|
|
13
15
|
config.neo4j = empty_config
|
@@ -58,13 +60,12 @@ module ActiveGraph
|
|
58
60
|
end
|
59
61
|
|
60
62
|
def setup!(neo4j_config = empty_config)
|
61
|
-
url, path, auth_token, username, password, config
|
62
|
-
final_driver_config!(neo4j_config).values_at(:url, :path, :auth_token, :username, :password, :config
|
63
|
+
url, path, auth_token, username, password, config =
|
64
|
+
final_driver_config!(neo4j_config).values_at(:url, :path, :auth_token, :username, :password, :config)
|
63
65
|
auth_token ||= username ? Neo4j::Driver::AuthTokens.basic(username, password) : Neo4j::Driver::AuthTokens.none
|
64
|
-
options ||= config || {}
|
65
66
|
register_neo4j_cypher_logging
|
66
67
|
|
67
|
-
ActiveGraph::Base.new_driver(url || path || default_driver_path_or_url, auth_token,
|
68
|
+
ActiveGraph::Base.new_driver(url || path || default_driver_path_or_url, auth_token, config)
|
68
69
|
end
|
69
70
|
|
70
71
|
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.3
|
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-03-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -410,7 +410,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
410
410
|
requirements:
|
411
411
|
- - ">="
|
412
412
|
- !ruby/object:Gem::Version
|
413
|
-
version: 2.
|
413
|
+
version: '2.5'
|
414
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
415
|
requirements:
|
416
416
|
- - ">"
|