activegraph 12.0.0.beta.2 → 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/README.md +17 -17
- data/lib/active_graph/railtie.rb +7 -5
- data/lib/active_graph/relationship/query.rb +1 -1
- 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/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Code Status
|
4
4
|
|
5
5
|
[![Actively Maintained](https://img.shields.io/badge/Maintenance%20Level-Actively%20Maintained-green.svg)](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)
|
6
|
-
[![Build Status](https://
|
6
|
+
[![Build Status](https://github.com/neo4jrb/activegraph/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/neo4jrb/activegraph/actions)
|
7
7
|
[![Coverage Status](https://coveralls.io/repos/neo4jrb/neo4j/badge.svg?branch=master)](https://coveralls.io/r/neo4jrb/neo4j?branch=master)
|
8
8
|
[![Code Climate](https://codeclimate.com/github/neo4jrb/neo4j.svg)](https://codeclimate.com/github/neo4jrb/neo4j)
|
9
9
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
### Documentation
|
13
13
|
|
14
|
-
All new documentation will be done via our [readthedocs](http://neo4jrb.readthedocs.org) site, though some old documentation has yet to be moved from our [wiki](https://github.com/neo4jrb/neo4j/wiki)
|
14
|
+
All new documentation will be done via our [readthedocs](http://neo4jrb.readthedocs.org) site, though some old documentation has yet to be moved from our [wiki](https://github.com/neo4jrb/neo4j/wiki)
|
15
15
|
|
16
16
|
### Contact Us
|
17
17
|
|
@@ -47,20 +47,20 @@ Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined [here]
|
|
47
47
|
|
48
48
|
| **Neo4j Version** | v2.x | v3.x | >= v4.x | >= 7.0.3 | activegraph 10 | activegraph 11.1 |
|
49
49
|
|-------------------|------|-------|---------|----------|------------------|------------------|
|
50
|
-
| 1.9.x | Yes | No | No | No | No | No
|
51
|
-
| 2.0.x | No | Yes | No | No | No | No
|
52
|
-
| 2.1.x | No | Yes | Yes * | Yes | No | No
|
53
|
-
| 2.2.x | No | No | Yes | Yes | No | No
|
54
|
-
| 2.3.x | No | No | Yes | Yes | No | No
|
55
|
-
| 3.0, 3.1, 3.3 | No | No | No | Yes | No | No
|
56
|
-
| 3.4 | No | No | No | Yes | Yes | No
|
57
|
-
| 3.5 | No | No | No | Yes | Yes | Yes
|
58
|
-
| 4.0 | No | No | No | No | Yes | Yes
|
59
|
-
| 4.1 | No | No | No | No | No | Yes
|
60
|
-
| 4.2 | No | No | No | No | No | Yes
|
61
|
-
| 4.3 | No | No | No | No | No | Yes
|
62
|
-
| 4.4 | No | No | No | No | No | Yes
|
63
|
-
| 5.x | No | No | No | No | No | Yes
|
50
|
+
| 1.9.x | Yes | No | No | No | No | No |
|
51
|
+
| 2.0.x | No | Yes | No | No | No | No |
|
52
|
+
| 2.1.x | No | Yes | Yes * | Yes | No | No |
|
53
|
+
| 2.2.x | No | No | Yes | Yes | No | No |
|
54
|
+
| 2.3.x | No | No | Yes | Yes | No | No |
|
55
|
+
| 3.0, 3.1, 3.3 | No | No | No | Yes | No | No |
|
56
|
+
| 3.4 | No | No | No | Yes | Yes | No |
|
57
|
+
| 3.5 | No | No | No | Yes | Yes | Yes |
|
58
|
+
| 4.0 | No | No | No | No | Yes | Yes |
|
59
|
+
| 4.1 | No | No | No | No | No | Yes |
|
60
|
+
| 4.2 | No | No | No | No | No | Yes |
|
61
|
+
| 4.3 | No | No | No | No | No | Yes |
|
62
|
+
| 4.4 | No | No | No | No | No | Yes |
|
63
|
+
| 5.x | No | No | No | No | No | Yes |
|
64
64
|
|
65
65
|
`*` Neo4j.rb >= 4.x doesn't support Neo4j versions before 2.1.5. To use 2.1.x you should upgrade to a version >= 2.1.5
|
66
66
|
|
@@ -68,7 +68,7 @@ Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined [here]
|
|
68
68
|
|
69
69
|
| **Neo4j Feature** | v2.x | v3.x | >= v4.x | >= 8.x | >= activegraph 10.0 |
|
70
70
|
|----------------------------|--------|------|---------|--------|---------------------|
|
71
|
-
| Bolt Protocol | No | No | No | Yes | Yes |
|
71
|
+
| Bolt Protocol | No | No | No | Yes | Yes |
|
72
72
|
| Auth | No | No | Yes | Yes | Yes |
|
73
73
|
| Remote Cypher | Yes | Yes | Yes | Yes | No |
|
74
74
|
| Transactions | Yes | Yes | Yes | Yes | Yes |
|
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|
|
@@ -15,7 +15,7 @@ module ActiveGraph::Relationship
|
|
15
15
|
# Loads the relationship using its neo_id.
|
16
16
|
def find_by_id(key)
|
17
17
|
query = ActiveGraph::Base.new_query
|
18
|
-
result = query.match(
|
18
|
+
result = query.match("()-[r:`#{mapped_element_name}`]-()").where("r.#{id_property_name}" => key).limit(1).return(:r).first
|
19
19
|
result&.send(:[], :r)
|
20
20
|
end
|
21
21
|
|
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
|