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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c6ef6e85cad5ae83d519bf7c5d781f70f39d9528bf79722e3913a5edfdc0ca2
4
- data.tar.gz: 8a75e8976bcb65c734db47024d84f55dad7897ee7e0eb6e08a2e3a60571f441c
3
+ metadata.gz: 5bf12b2e24dd9557ad7d5a232f653e150241910a48293d4aeba5f5e16f160a42
4
+ data.tar.gz: 36adc4653772d9132ea19f086b361f4d14fe61704ad1c75214ff441bac0652c9
5
5
  SHA512:
6
- metadata.gz: ead910dc52bdd93b39b274fc766f376972a16b284a79ba7b8b25b52dab54508927ea7e0ed857f6c416500f283210d659dec1c8fe955cf2ec417dc13d0b5ecc08
7
- data.tar.gz: 53d4531aaa3afa01b813f9b4e40adda8ffc3a69b6d0c9f23606d9ef98d184126952909166d17d57e7e3fa372772bf17ce0bf36651cff11c17124a5556d6057ca
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 = ((RUBY_PLATFORM == 'java') ? '>= 1.9.3' : '>= 2.1.9')
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-#{RUBY_PLATFORM =~ /java/ ? 'java' : 'ruby'}-driver", '>= 0.3.0')
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')
@@ -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 { |cfg| cfg.driver = ActiveSupport::OrderedOptions.new }
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, options =
62
- final_driver_config!(neo4j_config).values_at(:url, :path, :auth_token, :username, :password, :config, :options)
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, options)
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)
@@ -1,3 +1,3 @@
1
1
  module ActiveGraph
2
- VERSION = '10.0.0-beta.2'
2
+ VERSION = '10.0.0-beta.3'
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.2
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-04 00:00:00.000000000 Z
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.1.9
413
+ version: '2.5'
414
414
  required_rubygems_version: !ruby/object:Gem::Requirement
415
415
  requirements:
416
416
  - - ">"