neo4j 5.2.15 → 6.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -19
  3. data/Gemfile +1 -1
  4. data/lib/neo4j.rb +4 -1
  5. data/lib/neo4j/active_node.rb +6 -15
  6. data/lib/neo4j/active_node/has_n.rb +52 -21
  7. data/lib/neo4j/active_node/has_n/association.rb +1 -1
  8. data/lib/neo4j/active_node/id_property.rb +1 -1
  9. data/lib/neo4j/active_node/id_property/accessor.rb +1 -1
  10. data/lib/neo4j/active_node/labels.rb +7 -101
  11. data/lib/neo4j/active_node/labels/index.rb +87 -0
  12. data/lib/neo4j/active_node/persistence.rb +3 -2
  13. data/lib/neo4j/active_node/query.rb +1 -1
  14. data/lib/neo4j/active_node/query/query_proxy.rb +7 -9
  15. data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +0 -1
  16. data/lib/neo4j/active_node/query/query_proxy_link.rb +12 -4
  17. data/lib/neo4j/active_node/query/query_proxy_methods.rb +4 -6
  18. data/lib/neo4j/active_node/query/query_proxy_unpersisted.rb +4 -8
  19. data/lib/neo4j/active_node/unpersisted.rb +12 -10
  20. data/lib/neo4j/active_node/validations.rb +2 -2
  21. data/lib/neo4j/active_rel.rb +7 -4
  22. data/lib/neo4j/active_rel/persistence.rb +13 -4
  23. data/lib/neo4j/active_rel/query.rb +8 -0
  24. data/lib/neo4j/active_rel/related_node.rb +1 -27
  25. data/lib/neo4j/errors.rb +2 -0
  26. data/lib/neo4j/schema/operation.rb +91 -0
  27. data/lib/neo4j/shared.rb +3 -3
  28. data/lib/neo4j/shared/callbacks.rb +2 -7
  29. data/lib/neo4j/shared/{declared_property_manager.rb → declared_properties.rb} +34 -2
  30. data/lib/neo4j/shared/declared_property.rb +19 -0
  31. data/lib/neo4j/shared/declared_property/index.rb +37 -0
  32. data/lib/neo4j/shared/initialize.rb +2 -2
  33. data/lib/neo4j/shared/persistence.rb +3 -25
  34. data/lib/neo4j/shared/property.rb +24 -10
  35. data/lib/neo4j/shared/type_converters.rb +131 -6
  36. data/lib/neo4j/tasks/migration.rake +3 -3
  37. data/lib/neo4j/type_converters.rb +1 -1
  38. data/lib/neo4j/version.rb +1 -1
  39. data/neo4j.gemspec +2 -2
  40. metadata +13 -10
@@ -8,9 +8,9 @@ namespace :neo4j do
8
8
  task_name_constant = migration_task.split('_').map(&:capitalize).join('')
9
9
  begin
10
10
  migration_class = "Neo4j::Migration::#{task_name_constant}".constantize
11
- rescue NameError
12
- load File.join(path, 'db', 'neo4j-migrate', "#{migration_task}.rb")
13
- migration_class = "#{task_name_constant}".constantize
11
+ rescue NameError
12
+ load File.join(path, 'db', 'neo4j-migrate', "#{migration_task}.rb")
13
+ migration_class = "#{task_name_constant}".constantize
14
14
  end
15
15
  migration = migration_class.new(path)
16
16
 
@@ -1,6 +1,6 @@
1
1
  module Neo4j
2
2
  module TypeConverters
3
- # This exists for legacy purposes. Some gems (*coughDevisecough*) that the Neo4jrb project does not own
3
+ # This exists for legacy purposes. Some gems that the Neo4jrb project does not own
4
4
  # may contain references to this file. We will remove it once that has been dealt with.
5
5
  include Neo4j::Shared::TypeConverters
6
6
  end
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.15'
2
+ VERSION = '6.0.0.alpha.1'
3
3
  end
data/neo4j.gemspec CHANGED
@@ -30,7 +30,7 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
30
30
  s.add_dependency('activemodel', '~> 4')
31
31
  s.add_dependency('activesupport', '~> 4')
32
32
  s.add_dependency('active_attr', '~> 0.8')
33
- s.add_dependency('neo4j-core', '~> 5.1.10')
33
+ s.add_dependency('neo4j-core', '~> 6.0.0.alpha.1')
34
34
  s.add_dependency('neo4j-community', '~> 2.0') if RUBY_PLATFORM =~ /java/
35
35
  s.add_development_dependency('railties', '~> 4')
36
36
  s.add_development_dependency('pry')
@@ -40,5 +40,5 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
40
40
  s.add_development_dependency('guard')
41
41
  s.add_development_dependency('guard-rubocop')
42
42
  s.add_development_dependency('guard-rspec')
43
- s.add_development_dependency('rubocop', '~> 0.29.1')
43
+ s.add_development_dependency('rubocop', '~> 0.34.0')
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.15
4
+ version: 6.0.0.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-27 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 5.1.10
75
+ version: 6.0.0.alpha.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 5.1.10
82
+ version: 6.0.0.alpha.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: railties
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.29.1
201
+ version: 0.34.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.29.1
208
+ version: 0.34.0
209
209
  description: |
210
210
  A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks heavily inspired by ActiveRecord.
211
211
  email: andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com
@@ -236,6 +236,7 @@ files:
236
236
  - lib/neo4j/active_node/id_property/accessor.rb
237
237
  - lib/neo4j/active_node/initialize.rb
238
238
  - lib/neo4j/active_node/labels.rb
239
+ - lib/neo4j/active_node/labels/index.rb
239
240
  - lib/neo4j/active_node/labels/reloading.rb
240
241
  - lib/neo4j/active_node/node_wrapper.rb
241
242
  - lib/neo4j/active_node/orm_adapter.rb
@@ -271,10 +272,12 @@ files:
271
272
  - lib/neo4j/migration.rb
272
273
  - lib/neo4j/paginated.rb
273
274
  - lib/neo4j/railtie.rb
275
+ - lib/neo4j/schema/operation.rb
274
276
  - lib/neo4j/shared.rb
275
277
  - lib/neo4j/shared/callbacks.rb
278
+ - lib/neo4j/shared/declared_properties.rb
276
279
  - lib/neo4j/shared/declared_property.rb
277
- - lib/neo4j/shared/declared_property_manager.rb
280
+ - lib/neo4j/shared/declared_property/index.rb
278
281
  - lib/neo4j/shared/identity.rb
279
282
  - lib/neo4j/shared/initialize.rb
280
283
  - lib/neo4j/shared/persistence.rb
@@ -318,12 +321,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
318
321
  version: 1.9.3
319
322
  required_rubygems_version: !ruby/object:Gem::Requirement
320
323
  requirements:
321
- - - ">="
324
+ - - ">"
322
325
  - !ruby/object:Gem::Version
323
- version: '0'
326
+ version: 1.3.1
324
327
  requirements: []
325
328
  rubyforge_project: neo4j
326
- rubygems_version: 2.4.5.1
329
+ rubygems_version: 2.4.6
327
330
  signing_key:
328
331
  specification_version: 4
329
332
  summary: A graph database for Ruby