activegraph 12.0.0.beta.3 → 12.0.0.beta.4
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/railtie.rb +7 -5
- data/lib/active_graph/version.rb +1 -1
- data/lib/active_graph.rb +2 -0
- data/lib/rails/generators/migration_helper.rb +3 -0
- 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: 8689e1a33aefa219174b9d67337f197a55d84d2c07d8123453a851ac58579173
|
4
|
+
data.tar.gz: 10208863566850f436f008690933b6ef5a8cb3f08de0969c948f2ac58be67ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5142dd49c7f73a0d761b775824a82fa98bd96bba2c8bdff42da70fefbc66ab06730344fb38133e34faf755401d61296fe03819caaae107c653ed82822217339d
|
7
|
+
data.tar.gz: ec2e34736d51b05688efdfeaea0dc48ca9f3c496195d61310f917ce59d01be9b2c3db4694865acc4d6fe144963f016f759f3d982878bdb723e4b451156d17c9e
|
data/lib/active_graph/railtie.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
# Need the action_dispatch railtie to have action_dispatch.rescue_responses initialized correctly
|
2
2
|
require 'action_dispatch/railtie'
|
3
|
-
require 'rails/generators'
|
4
|
-
require 'rails/generators/active_model'
|
5
|
-
require 'rails/generators/named_base'
|
6
3
|
require 'rails/railtie'
|
7
|
-
require File.expand_path('../rails/generators/migration_helper.rb', __dir__)
|
8
|
-
Rails::Generators::GeneratedAttribute.include ActiveGraph::Generators::GeneratedAttribute
|
9
4
|
require 'active_graph'
|
10
5
|
|
11
6
|
module ActiveGraph
|
@@ -44,6 +39,13 @@ module ActiveGraph
|
|
44
39
|
ActiveGraph::Config[:verbose_query_logs] = false
|
45
40
|
end
|
46
41
|
|
42
|
+
# By default, Rails loads generators from load path.
|
43
|
+
# However, if we want to place generators at a different location we have to use "generators" hook
|
44
|
+
# https://api.rubyonrails.org/classes/Rails/Railtie.html
|
45
|
+
generators do
|
46
|
+
require File.expand_path('../rails/generators/migration_helper.rb', __dir__)
|
47
|
+
end
|
48
|
+
|
47
49
|
# Starting Neo after :load_config_initializers allows apps to
|
48
50
|
# register migrations in config/initializers
|
49
51
|
initializer 'neo4j.start', after: :load_config_initializers do |app|
|
data/lib/active_graph/version.rb
CHANGED
data/lib/active_graph.rb
CHANGED
@@ -26,6 +26,8 @@ loader = Zeitwerk::Loader.for_gem
|
|
26
26
|
loader.ignore(File.expand_path('rails', __dir__))
|
27
27
|
loader.ignore(File.expand_path('active_graph/railtie.rb', __dir__))
|
28
28
|
loader.inflector.inflect("ansi" => "ANSI")
|
29
|
+
module ActiveGraph
|
30
|
+
end
|
29
31
|
loader.setup
|
30
32
|
# loader.eager_load
|
31
33
|
|
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: 12.0.0.beta.
|
4
|
+
version: 12.0.0.beta.4
|
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: 2024-01-
|
11
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|