activegraph 12.0.0.beta.4 → 12.0.0.beta.5

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: 8689e1a33aefa219174b9d67337f197a55d84d2c07d8123453a851ac58579173
4
- data.tar.gz: 10208863566850f436f008690933b6ef5a8cb3f08de0969c948f2ac58be67ae8
3
+ metadata.gz: 1d874584342339574829e1049d3b50075283ce6811e09156408a8e6845a3646e
4
+ data.tar.gz: 56670037e70309d62db283a165691576af3137c3c1632fd9cdb96f4c9fb087c5
5
5
  SHA512:
6
- metadata.gz: 5142dd49c7f73a0d761b775824a82fa98bd96bba2c8bdff42da70fefbc66ab06730344fb38133e34faf755401d61296fe03819caaae107c653ed82822217339d
7
- data.tar.gz: ec2e34736d51b05688efdfeaea0dc48ca9f3c496195d61310f917ce59d01be9b2c3db4694865acc4d6fe144963f016f759f3d982878bdb723e4b451156d17c9e
6
+ metadata.gz: 8b1e932ec561196a75ec02f84a9d715b4ff251b039a0761c97d4bbc21931bb5086c54b712d5cccdbf3efd9d1943a4287e84893eec5dea5aeb283e4d97572120b
7
+ data.tar.gz: fede28ced764c0e9cdac7479464a6ebba25bb26bdaac05c00cdd6150596fdbee228a4253685165981b339807ed12e103c7d1fa80a97eb169d56cc216cc55f75b
data/Gemfile CHANGED
@@ -6,10 +6,11 @@ active_model_version = ENV['ACTIVE_MODEL_VERSION']
6
6
  gem 'activemodel', "~> #{active_model_version}" if active_model_version&.length&.positive?
7
7
 
8
8
  group 'test' do
9
- gem 'coveralls', require: false
9
+ # gem 'coveralls', require: false
10
10
  gem 'overcommit'
11
11
  gem 'codecov', require: false
12
12
  gem 'simplecov', require: false
13
+ gem 'simplecov-cobertura', require: false
13
14
  gem 'simplecov-html', require: false
14
15
  gem 'its'
15
16
  gem 'test-unit'
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 = '>= 2.6'
10
+ s.required_ruby_version = '>= 3.1'
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'
@@ -30,9 +30,9 @@ DESCRIPTION
30
30
  'bug_tracker_uri' => 'https://github.com/neo4jrb/activegraph/issues'
31
31
  }
32
32
 
33
- s.add_dependency('activemodel', '>= 7')
33
+ s.add_dependency('activemodel')
34
34
  s.add_dependency('i18n', '!= 1.8.8') # https://github.com/jruby/jruby/issues/6547
35
- s.add_dependency('neo4j-ruby-driver', '>= 5')
35
+ s.add_dependency('neo4j-ruby-driver', '>= 5.7.0.alpha.3')
36
36
  s.add_dependency('orm_adapter', '>= 0.5.0')
37
37
  s.add_dependency('sorted_set')
38
38
  s.add_development_dependency('guard')
@@ -38,8 +38,9 @@ module ActiveGraph
38
38
  end
39
39
 
40
40
  def migrate
41
- ActiveSupport::Deprecation.warn '`AddIdProperty` task is deprecated and may be removed from future releases. '\
42
- 'Create a new migration and use the `populate_id_property` helper.', caller
41
+ ActiveGraph.deprecator.warn '`AddIdProperty` task is deprecated and may be removed from future releases. ' \
42
+ 'Create a new migration and use the `populate_id_property` helper.',
43
+ caller_locations
43
44
  models = ActiveSupport::HashWithIndifferentAccess.new(YAML.load_file(models_filename))[:models]
44
45
  output 'This task will add an ID Property every node in the given file.'
45
46
  output 'It may take a significant amount of time, please be patient.'
@@ -108,7 +109,6 @@ MESSAGE
108
109
  # print_output message
109
110
  # end
110
111
 
111
-
112
112
  # def id_batch_set(label, id_property, new_ids, count)
113
113
  # tx = ActiveGraph::Base.new_transaction
114
114
 
@@ -96,7 +96,7 @@ module ActiveGraph
96
96
  return unless incomplete_states.any?
97
97
  incomplete_versions = incomplete_states.map(&:migration_id)
98
98
  fail MigrationError, <<-MSG
99
- There are migrations struck in an incomplete states, that could not be fixed automatically:
99
+ There are migrations stuck in an incomplete states, that could not be fixed automatically:
100
100
  #{incomplete_versions.join('\n')}
101
101
  This can happen when there's a critical error inside a migration.
102
102
 
@@ -299,7 +299,7 @@ module ActiveGraph::Node
299
299
 
300
300
  # :nocov:
301
301
  def has_association?(name)
302
- ActiveSupport::Deprecation.warn 'has_association? is deprecated and may be removed from future releases, use association? instead.', caller
302
+ ActiveGraph.deprecator.warn 'has_association? is deprecated and may be removed from future releases, use association? instead.', caller
303
303
 
304
304
  association?(name)
305
305
  end
@@ -147,7 +147,7 @@ module ActiveGraph::Node
147
147
 
148
148
  # rubocop:disable Naming/PredicateName
149
149
  def has_id_property?
150
- ActiveSupport::Deprecation.warn 'has_id_property? is deprecated and may be removed from future releases, use id_property? instead.', caller
150
+ ActiveGraph.deprecator.warn 'has_id_property? is deprecated and may be removed from future releases, use id_property? instead.', caller
151
151
 
152
152
  id_property?
153
153
  end
@@ -160,7 +160,7 @@ module ActiveGraph
160
160
 
161
161
  # rubocop:disable Naming/AccessorMethodName
162
162
  def set_mapped_label_name(name)
163
- ActiveSupport::Deprecation.warn 'set_mapped_label_name is deprecated, use self.mapped_label_name= instead.', caller
163
+ ActiveGraph.deprecator.warn 'set_mapped_label_name is deprecated, use self.mapped_label_name= instead.', caller
164
164
 
165
165
  self.mapped_label_name = name
166
166
  end
@@ -72,7 +72,7 @@ module ActiveGraph
72
72
  # The relationship identifier most recently used by the QueryProxy chain.
73
73
  attr_reader :rel_var
74
74
  def rel_identity
75
- ActiveSupport::Deprecation.warn 'rel_identity is deprecated and may be removed from future releases, use rel_var instead.', caller
75
+ ActiveGraph.deprecator.warn 'rel_identity is deprecated and may be removed from future releases, use rel_var instead.', caller
76
76
 
77
77
  @rel_var
78
78
  end
@@ -55,7 +55,7 @@ module ActiveGraph::Node
55
55
 
56
56
  # rubocop:disable Naming/PredicateName
57
57
  def has_scope?(name)
58
- ActiveSupport::Deprecation.warn 'has_scope? is deprecated and may be removed from future releases, use scope? instead.', caller
58
+ ActiveGraph.deprecator.warn 'has_scope? is deprecated and may be removed from future releases, use scope? instead.', caller
59
59
 
60
60
  scope?(name)
61
61
  end
@@ -65,6 +65,10 @@ module ActiveGraph
65
65
  end
66
66
  end
67
67
 
68
+ initializer "activegraph.deprecator" do |app|
69
+ app.deprecators[:activegraph] = ActiveGraph.deprecator
70
+ end
71
+
68
72
  def setup!(config = empty_config)
69
73
  config = final_driver_config!(config)
70
74
  scheme = config.delete(:scheme) || 'bolt'
@@ -49,7 +49,7 @@ module ActiveGraph::Relationship
49
49
  private
50
50
 
51
51
  def deprecation_warning!
52
- ActiveSupport::Deprecation.warn 'The ActiveGraph::Relationship::Query module has been deprecated and will be removed in a future version of the gem.', caller
52
+ ActiveGraph.deprecator.warn 'The ActiveGraph::Relationship::Query module has been deprecated and will be removed in a future version of the gem.', caller_locations
53
53
  end
54
54
 
55
55
  def where_query
@@ -276,7 +276,7 @@ module ActiveGraph::Shared
276
276
 
277
277
  def set_timestamps
278
278
  warning = 'This method has been replaced with `inject_timestamps!` and will be removed in a future version'.freeze
279
- ActiveSupport::Deprecation.warn warning, caller
279
+ ActiveGraph.deprecator.warn warning, caller
280
280
  inject_timestamps!
281
281
  end
282
282
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveGraph
2
- VERSION = '12.0.0.beta.4'
2
+ VERSION = '12.0.0.beta.5'
3
3
  end
data/lib/active_graph.rb CHANGED
@@ -27,6 +27,9 @@ 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
29
  module ActiveGraph
30
+ def self.deprecator
31
+ @deprecator ||= ActiveSupport::Deprecation.new("12", "ActiveGraph")
32
+ end
30
33
  end
31
34
  loader.setup
32
35
  # loader.eager_load
metadata CHANGED
@@ -1,36 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0.beta.4
4
+ version: 12.0.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg, Heinrich Klobuczek
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
10
+ date: 2025-01-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
13
+ name: activemodel
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '7'
19
- name: activemodel
18
+ version: '0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '7'
25
+ version: '0'
27
26
  - !ruby/object:Gem::Dependency
27
+ name: i18n
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "!="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.8.8
33
- name: i18n
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
@@ -39,26 +38,26 @@ dependencies:
39
38
  - !ruby/object:Gem::Version
40
39
  version: 1.8.8
41
40
  - !ruby/object:Gem::Dependency
41
+ name: neo4j-ruby-driver
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '5'
47
- name: neo4j-ruby-driver
46
+ version: 5.7.0.alpha.3
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: '5'
53
+ version: 5.7.0.alpha.3
55
54
  - !ruby/object:Gem::Dependency
55
+ name: orm_adapter
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.5.0
61
- name: orm_adapter
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
@@ -67,12 +66,12 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: 0.5.0
69
68
  - !ruby/object:Gem::Dependency
69
+ name: sorted_set
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- name: sorted_set
76
75
  type: :runtime
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
@@ -81,12 +80,12 @@ dependencies:
81
80
  - !ruby/object:Gem::Version
82
81
  version: '0'
83
82
  - !ruby/object:Gem::Dependency
83
+ name: guard
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
- name: guard
90
89
  type: :development
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
@@ -95,12 +94,12 @@ dependencies:
95
94
  - !ruby/object:Gem::Version
96
95
  version: '0'
97
96
  - !ruby/object:Gem::Dependency
97
+ name: guard-rspec
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
- name: guard-rspec
104
103
  type: :development
105
104
  prerelease: false
106
105
  version_requirements: !ruby/object:Gem::Requirement
@@ -109,12 +108,12 @@ dependencies:
109
108
  - !ruby/object:Gem::Version
110
109
  version: '0'
111
110
  - !ruby/object:Gem::Dependency
111
+ name: guard-rubocop
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
- name: guard-rubocop
118
117
  type: :development
119
118
  prerelease: false
120
119
  version_requirements: !ruby/object:Gem::Requirement
@@ -123,12 +122,12 @@ dependencies:
123
122
  - !ruby/object:Gem::Version
124
123
  version: '0'
125
124
  - !ruby/object:Gem::Dependency
125
+ name: neo4j-rake_tasks
126
126
  requirement: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: 0.3.0
131
- name: neo4j-rake_tasks
132
131
  type: :development
133
132
  prerelease: false
134
133
  version_requirements: !ruby/object:Gem::Requirement
@@ -137,12 +136,12 @@ dependencies:
137
136
  - !ruby/object:Gem::Version
138
137
  version: 0.3.0
139
138
  - !ruby/object:Gem::Dependency
139
+ name: os
140
140
  requirement: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
- name: os
146
145
  type: :development
147
146
  prerelease: false
148
147
  version_requirements: !ruby/object:Gem::Requirement
@@ -151,12 +150,12 @@ dependencies:
151
150
  - !ruby/object:Gem::Version
152
151
  version: '0'
153
152
  - !ruby/object:Gem::Dependency
153
+ name: pry
154
154
  requirement: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
- name: pry
160
159
  type: :development
161
160
  prerelease: false
162
161
  version_requirements: !ruby/object:Gem::Requirement
@@ -165,12 +164,12 @@ dependencies:
165
164
  - !ruby/object:Gem::Version
166
165
  version: '0'
167
166
  - !ruby/object:Gem::Dependency
167
+ name: railties
168
168
  requirement: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '7'
173
- name: railties
174
173
  type: :development
175
174
  prerelease: false
176
175
  version_requirements: !ruby/object:Gem::Requirement
@@ -179,12 +178,12 @@ dependencies:
179
178
  - !ruby/object:Gem::Version
180
179
  version: '7'
181
180
  - !ruby/object:Gem::Dependency
181
+ name: rake
182
182
  requirement: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
- name: rake
188
187
  type: :development
189
188
  prerelease: false
190
189
  version_requirements: !ruby/object:Gem::Requirement
@@ -193,12 +192,12 @@ dependencies:
193
192
  - !ruby/object:Gem::Version
194
193
  version: '0'
195
194
  - !ruby/object:Gem::Dependency
195
+ name: rubocop
196
196
  requirement: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
200
  version: 0.56.0
201
- name: rubocop
202
201
  type: :development
203
202
  prerelease: false
204
203
  version_requirements: !ruby/object:Gem::Requirement
@@ -207,12 +206,12 @@ dependencies:
207
206
  - !ruby/object:Gem::Version
208
207
  version: 0.56.0
209
208
  - !ruby/object:Gem::Dependency
209
+ name: yard
210
210
  requirement: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
- name: yard
216
215
  type: :development
217
216
  prerelease: false
218
217
  version_requirements: !ruby/object:Gem::Requirement
@@ -221,12 +220,12 @@ dependencies:
221
220
  - !ruby/object:Gem::Version
222
221
  version: '0'
223
222
  - !ruby/object:Gem::Dependency
223
+ name: dryspec
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - ">="
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
- name: dryspec
230
229
  type: :development
231
230
  prerelease: false
232
231
  version_requirements: !ruby/object:Gem::Requirement
@@ -235,12 +234,12 @@ dependencies:
235
234
  - !ruby/object:Gem::Version
236
235
  version: '0'
237
236
  - !ruby/object:Gem::Dependency
237
+ name: rspec
238
238
  requirement: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - ">="
241
241
  - !ruby/object:Gem::Version
242
242
  version: '3.10'
243
- name: rspec
244
243
  type: :development
245
244
  prerelease: false
246
245
  version_requirements: !ruby/object:Gem::Requirement
@@ -411,7 +410,6 @@ metadata:
411
410
  changelog_uri: https://github.com/neo4jrb/activegraph/blob/master/CHANGELOG.md
412
411
  source_code_uri: https://github.com/neo4jrb/activegraph/
413
412
  bug_tracker_uri: https://github.com/neo4jrb/activegraph/issues
414
- post_install_message:
415
413
  rdoc_options:
416
414
  - "--quiet"
417
415
  - "--title"
@@ -426,15 +424,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
426
424
  requirements:
427
425
  - - ">="
428
426
  - !ruby/object:Gem::Version
429
- version: '2.6'
427
+ version: '3.1'
430
428
  required_rubygems_version: !ruby/object:Gem::Requirement
431
429
  requirements:
432
- - - ">"
430
+ - - ">="
433
431
  - !ruby/object:Gem::Version
434
- version: 1.3.1
432
+ version: '0'
435
433
  requirements: []
436
- rubygems_version: 3.3.26
437
- signing_key:
434
+ rubygems_version: 3.6.2
438
435
  specification_version: 4
439
436
  summary: A graph database for Ruby
440
437
  test_files: []