activegraph 11.5.0.beta.3 → 12.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +17 -17
- data/activegraph.gemspec +1 -1
- data/lib/active_graph/base.rb +4 -0
- data/lib/active_graph/core/element.rb +142 -0
- data/lib/active_graph/core/entity.rb +4 -0
- data/lib/active_graph/core/label.rb +5 -166
- data/lib/active_graph/core/node.rb +0 -4
- data/lib/active_graph/core/query_clauses.rb +4 -4
- data/lib/active_graph/core/schema.rb +23 -28
- data/lib/active_graph/core/type.rb +13 -0
- data/lib/active_graph/migrations/helpers/schema.rb +10 -13
- data/lib/active_graph/model_schema.rb +1 -1
- data/lib/active_graph/node/has_n.rb +1 -1
- data/lib/active_graph/node/labels.rb +15 -12
- data/lib/active_graph/node/persistence.rb +0 -11
- data/lib/active_graph/node/query/query_proxy/link.rb +15 -4
- data/lib/active_graph/node/query/query_proxy.rb +3 -3
- data/lib/active_graph/node/query/query_proxy_eager_loading.rb +1 -1
- data/lib/active_graph/node/query/query_proxy_enumerable.rb +4 -4
- data/lib/active_graph/node/query/query_proxy_methods.rb +14 -16
- data/lib/active_graph/node/query/query_proxy_methods_of_mass_updating.rb +1 -5
- data/lib/active_graph/node/query.rb +1 -1
- data/lib/active_graph/node/query_methods.rb +9 -12
- data/lib/active_graph/railtie.rb +11 -10
- data/lib/active_graph/relationship/initialize.rb +2 -2
- data/lib/active_graph/relationship/persistence.rb +3 -1
- data/lib/active_graph/relationship/property.rb +1 -5
- data/lib/active_graph/relationship/query.rb +14 -9
- data/lib/active_graph/relationship/related_node.rb +4 -8
- data/lib/active_graph/relationship/types.rb +8 -0
- data/lib/active_graph/relationship/wrapping.rb +1 -1
- data/lib/active_graph/relationship.rb +4 -1
- data/lib/active_graph/shared/identity.rb +6 -3
- data/lib/active_graph/shared/persistence.rb +12 -1
- data/lib/active_graph/shared/query_factory.rb +1 -1
- data/lib/active_graph/shared/type_converters.rb +3 -2
- data/lib/active_graph/version.rb +1 -1
- data/lib/active_graph.rb +0 -2
- data/lib/rails/generators/migration_helper.rb +0 -3
- metadata +22 -26
data/lib/active_graph/version.rb
CHANGED
data/lib/active_graph.rb
CHANGED
@@ -26,8 +26,6 @@ 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
|
31
29
|
loader.setup
|
32
30
|
# loader.eager_load
|
33
31
|
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activegraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.0.0.beta.1
|
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-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: activemodel
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '7'
|
19
|
+
name: activemodel
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: i18n
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - "!="
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: 1.8.8
|
33
|
+
name: i18n
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,32 +39,26 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.8.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: neo4j-ruby-driver
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 4.4.1
|
48
|
-
- - "<"
|
49
45
|
- !ruby/object:Gem::Version
|
50
46
|
version: '5'
|
47
|
+
name: neo4j-ruby-driver
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 4.4.1
|
58
|
-
- - "<"
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '5'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name: orm_adapter
|
63
56
|
requirement: !ruby/object:Gem::Requirement
|
64
57
|
requirements:
|
65
58
|
- - ">="
|
66
59
|
- !ruby/object:Gem::Version
|
67
60
|
version: 0.5.0
|
61
|
+
name: orm_adapter
|
68
62
|
type: :runtime
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -73,12 +67,12 @@ dependencies:
|
|
73
67
|
- !ruby/object:Gem::Version
|
74
68
|
version: 0.5.0
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
|
-
name: sorted_set
|
77
70
|
requirement: !ruby/object:Gem::Requirement
|
78
71
|
requirements:
|
79
72
|
- - ">="
|
80
73
|
- !ruby/object:Gem::Version
|
81
74
|
version: '0'
|
75
|
+
name: sorted_set
|
82
76
|
type: :runtime
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -87,12 +81,12 @@ dependencies:
|
|
87
81
|
- !ruby/object:Gem::Version
|
88
82
|
version: '0'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
|
-
name: guard
|
91
84
|
requirement: !ruby/object:Gem::Requirement
|
92
85
|
requirements:
|
93
86
|
- - ">="
|
94
87
|
- !ruby/object:Gem::Version
|
95
88
|
version: '0'
|
89
|
+
name: guard
|
96
90
|
type: :development
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -101,12 +95,12 @@ dependencies:
|
|
101
95
|
- !ruby/object:Gem::Version
|
102
96
|
version: '0'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
|
-
name: guard-rspec
|
105
98
|
requirement: !ruby/object:Gem::Requirement
|
106
99
|
requirements:
|
107
100
|
- - ">="
|
108
101
|
- !ruby/object:Gem::Version
|
109
102
|
version: '0'
|
103
|
+
name: guard-rspec
|
110
104
|
type: :development
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -115,12 +109,12 @@ dependencies:
|
|
115
109
|
- !ruby/object:Gem::Version
|
116
110
|
version: '0'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
|
-
name: guard-rubocop
|
119
112
|
requirement: !ruby/object:Gem::Requirement
|
120
113
|
requirements:
|
121
114
|
- - ">="
|
122
115
|
- !ruby/object:Gem::Version
|
123
116
|
version: '0'
|
117
|
+
name: guard-rubocop
|
124
118
|
type: :development
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -129,12 +123,12 @@ dependencies:
|
|
129
123
|
- !ruby/object:Gem::Version
|
130
124
|
version: '0'
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
|
-
name: neo4j-rake_tasks
|
133
126
|
requirement: !ruby/object:Gem::Requirement
|
134
127
|
requirements:
|
135
128
|
- - ">="
|
136
129
|
- !ruby/object:Gem::Version
|
137
130
|
version: 0.3.0
|
131
|
+
name: neo4j-rake_tasks
|
138
132
|
type: :development
|
139
133
|
prerelease: false
|
140
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -143,12 +137,12 @@ dependencies:
|
|
143
137
|
- !ruby/object:Gem::Version
|
144
138
|
version: 0.3.0
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
|
-
name: os
|
147
140
|
requirement: !ruby/object:Gem::Requirement
|
148
141
|
requirements:
|
149
142
|
- - ">="
|
150
143
|
- !ruby/object:Gem::Version
|
151
144
|
version: '0'
|
145
|
+
name: os
|
152
146
|
type: :development
|
153
147
|
prerelease: false
|
154
148
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -157,12 +151,12 @@ dependencies:
|
|
157
151
|
- !ruby/object:Gem::Version
|
158
152
|
version: '0'
|
159
153
|
- !ruby/object:Gem::Dependency
|
160
|
-
name: pry
|
161
154
|
requirement: !ruby/object:Gem::Requirement
|
162
155
|
requirements:
|
163
156
|
- - ">="
|
164
157
|
- !ruby/object:Gem::Version
|
165
158
|
version: '0'
|
159
|
+
name: pry
|
166
160
|
type: :development
|
167
161
|
prerelease: false
|
168
162
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -171,12 +165,12 @@ dependencies:
|
|
171
165
|
- !ruby/object:Gem::Version
|
172
166
|
version: '0'
|
173
167
|
- !ruby/object:Gem::Dependency
|
174
|
-
name: railties
|
175
168
|
requirement: !ruby/object:Gem::Requirement
|
176
169
|
requirements:
|
177
170
|
- - ">="
|
178
171
|
- !ruby/object:Gem::Version
|
179
172
|
version: '7'
|
173
|
+
name: railties
|
180
174
|
type: :development
|
181
175
|
prerelease: false
|
182
176
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -185,12 +179,12 @@ dependencies:
|
|
185
179
|
- !ruby/object:Gem::Version
|
186
180
|
version: '7'
|
187
181
|
- !ruby/object:Gem::Dependency
|
188
|
-
name: rake
|
189
182
|
requirement: !ruby/object:Gem::Requirement
|
190
183
|
requirements:
|
191
184
|
- - ">="
|
192
185
|
- !ruby/object:Gem::Version
|
193
186
|
version: '0'
|
187
|
+
name: rake
|
194
188
|
type: :development
|
195
189
|
prerelease: false
|
196
190
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -199,12 +193,12 @@ dependencies:
|
|
199
193
|
- !ruby/object:Gem::Version
|
200
194
|
version: '0'
|
201
195
|
- !ruby/object:Gem::Dependency
|
202
|
-
name: rubocop
|
203
196
|
requirement: !ruby/object:Gem::Requirement
|
204
197
|
requirements:
|
205
198
|
- - ">="
|
206
199
|
- !ruby/object:Gem::Version
|
207
200
|
version: 0.56.0
|
201
|
+
name: rubocop
|
208
202
|
type: :development
|
209
203
|
prerelease: false
|
210
204
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -213,12 +207,12 @@ dependencies:
|
|
213
207
|
- !ruby/object:Gem::Version
|
214
208
|
version: 0.56.0
|
215
209
|
- !ruby/object:Gem::Dependency
|
216
|
-
name: yard
|
217
210
|
requirement: !ruby/object:Gem::Requirement
|
218
211
|
requirements:
|
219
212
|
- - ">="
|
220
213
|
- !ruby/object:Gem::Version
|
221
214
|
version: '0'
|
215
|
+
name: yard
|
222
216
|
type: :development
|
223
217
|
prerelease: false
|
224
218
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -227,12 +221,12 @@ dependencies:
|
|
227
221
|
- !ruby/object:Gem::Version
|
228
222
|
version: '0'
|
229
223
|
- !ruby/object:Gem::Dependency
|
230
|
-
name: dryspec
|
231
224
|
requirement: !ruby/object:Gem::Requirement
|
232
225
|
requirements:
|
233
226
|
- - ">="
|
234
227
|
- !ruby/object:Gem::Version
|
235
228
|
version: '0'
|
229
|
+
name: dryspec
|
236
230
|
type: :development
|
237
231
|
prerelease: false
|
238
232
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -241,12 +235,12 @@ dependencies:
|
|
241
235
|
- !ruby/object:Gem::Version
|
242
236
|
version: '0'
|
243
237
|
- !ruby/object:Gem::Dependency
|
244
|
-
name: rspec
|
245
238
|
requirement: !ruby/object:Gem::Requirement
|
246
239
|
requirements:
|
247
240
|
- - ">="
|
248
241
|
- !ruby/object:Gem::Version
|
249
242
|
version: '3.10'
|
243
|
+
name: rspec
|
250
244
|
type: :development
|
251
245
|
prerelease: false
|
252
246
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -280,6 +274,7 @@ files:
|
|
280
274
|
- lib/active_graph/class_arguments.rb
|
281
275
|
- lib/active_graph/config.rb
|
282
276
|
- lib/active_graph/core/cypher_error.rb
|
277
|
+
- lib/active_graph/core/element.rb
|
283
278
|
- lib/active_graph/core/entity.rb
|
284
279
|
- lib/active_graph/core/instrumentable.rb
|
285
280
|
- lib/active_graph/core/label.rb
|
@@ -295,6 +290,7 @@ files:
|
|
295
290
|
- lib/active_graph/core/result.rb
|
296
291
|
- lib/active_graph/core/schema.rb
|
297
292
|
- lib/active_graph/core/schema_errors.rb
|
293
|
+
- lib/active_graph/core/type.rb
|
298
294
|
- lib/active_graph/core/wrappable.rb
|
299
295
|
- lib/active_graph/error.rb
|
300
296
|
- lib/active_graph/lazy_attribute_hash.rb
|
@@ -437,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
437
433
|
- !ruby/object:Gem::Version
|
438
434
|
version: 1.3.1
|
439
435
|
requirements: []
|
440
|
-
rubygems_version: 3.
|
436
|
+
rubygems_version: 3.3.26
|
441
437
|
signing_key:
|
442
438
|
specification_version: 4
|
443
439
|
summary: A graph database for Ruby
|