activegraph 12.0.0.beta.3 → 12.0.0.beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcca80e7662a51145b62901d8961bfd00509f95b0e021302c0b208335208ed5d
4
- data.tar.gz: 20dd453152587b1484d6cee33a241cad19634bcec13abb3ce14d46240f903ca7
3
+ metadata.gz: 8689e1a33aefa219174b9d67337f197a55d84d2c07d8123453a851ac58579173
4
+ data.tar.gz: 10208863566850f436f008690933b6ef5a8cb3f08de0969c948f2ac58be67ae8
5
5
  SHA512:
6
- metadata.gz: c0070f359fb4744896c0f87cc074797ffd52b7cd7cb9a9bf178208a48550aafb038e918336b98a39e688495e322341c408712f91dcc0d85530df4a5b0e74e070
7
- data.tar.gz: 62dbe6f2792e7f71a5be534025273eb954d5a107b0aab3f090807ca6d72c40bbcf035da6f71fac858d99059361c500e55234b323201c3f293828fa9e34da00da
6
+ metadata.gz: 5142dd49c7f73a0d761b775824a82fa98bd96bba2c8bdff42da70fefbc66ab06730344fb38133e34faf755401d61296fe03819caaae107c653ed82822217339d
7
+ data.tar.gz: ec2e34736d51b05688efdfeaea0dc48ca9f3c496195d61310f917ce59d01be9b2c3db4694865acc4d6fe144963f016f759f3d982878bdb723e4b451156d17c9e
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module ActiveGraph
2
- VERSION = '12.0.0.beta.3'
2
+ VERSION = '12.0.0.beta.4'
3
3
  end
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
 
@@ -101,3 +101,6 @@ module ActiveGraph
101
101
  end
102
102
  end
103
103
  end
104
+
105
+ require 'rails/generators/named_base'
106
+ Rails::Generators::GeneratedAttribute.include ActiveGraph::Generators::GeneratedAttribute
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.3
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-15 00:00:00.000000000 Z
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