neo4j 7.2.3 → 8.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -46
  3. data/Gemfile +15 -14
  4. data/README.md +21 -14
  5. data/bin/neo4j-jars +1 -1
  6. data/lib/neo4j.rb +12 -1
  7. data/lib/neo4j/active_base.rb +68 -0
  8. data/lib/neo4j/active_base/session_registry.rb +12 -0
  9. data/lib/neo4j/active_node.rb +13 -21
  10. data/lib/neo4j/active_node/dependent/query_proxy_methods.rb +6 -6
  11. data/lib/neo4j/active_node/enum.rb +3 -6
  12. data/lib/neo4j/active_node/has_n.rb +24 -19
  13. data/lib/neo4j/active_node/has_n/association.rb +6 -2
  14. data/lib/neo4j/active_node/has_n/association/rel_factory.rb +1 -1
  15. data/lib/neo4j/active_node/has_n/association/rel_wrapper.rb +1 -1
  16. data/lib/neo4j/active_node/has_n/association_cypher_methods.rb +1 -1
  17. data/lib/neo4j/active_node/id_property.rb +52 -15
  18. data/lib/neo4j/active_node/labels.rb +32 -10
  19. data/lib/neo4j/active_node/labels/index.rb +5 -55
  20. data/lib/neo4j/active_node/node_list_formatter.rb +13 -0
  21. data/lib/neo4j/active_node/node_wrapper.rb +39 -37
  22. data/lib/neo4j/active_node/persistence.rb +27 -13
  23. data/lib/neo4j/active_node/query/query_proxy.rb +11 -9
  24. data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +4 -4
  25. data/lib/neo4j/active_node/query/query_proxy_enumerable.rb +1 -0
  26. data/lib/neo4j/active_node/query/query_proxy_link.rb +13 -9
  27. data/lib/neo4j/active_node/query/query_proxy_methods.rb +76 -8
  28. data/lib/neo4j/active_node/query/query_proxy_methods_of_mass_updating.rb +1 -1
  29. data/lib/neo4j/active_node/query_methods.rb +3 -3
  30. data/lib/neo4j/active_node/scope.rb +24 -7
  31. data/lib/neo4j/active_rel.rb +21 -3
  32. data/lib/neo4j/active_rel/initialize.rb +2 -2
  33. data/lib/neo4j/active_rel/persistence.rb +32 -6
  34. data/lib/neo4j/active_rel/persistence/query_factory.rb +3 -3
  35. data/lib/neo4j/active_rel/property.rb +9 -9
  36. data/lib/neo4j/active_rel/query.rb +6 -4
  37. data/lib/neo4j/active_rel/rel_wrapper.rb +24 -16
  38. data/lib/neo4j/active_rel/related_node.rb +5 -1
  39. data/lib/neo4j/active_rel/types.rb +2 -2
  40. data/lib/neo4j/config.rb +0 -1
  41. data/lib/neo4j/errors.rb +3 -0
  42. data/lib/neo4j/migration.rb +90 -71
  43. data/lib/neo4j/migrations.rb +10 -0
  44. data/lib/neo4j/migrations/base.rb +44 -0
  45. data/lib/neo4j/migrations/helpers.rb +101 -0
  46. data/lib/neo4j/migrations/helpers/id_property.rb +75 -0
  47. data/lib/neo4j/migrations/helpers/relationships.rb +66 -0
  48. data/lib/neo4j/migrations/helpers/schema.rb +53 -0
  49. data/lib/neo4j/migrations/migration_file.rb +24 -0
  50. data/lib/neo4j/migrations/runner.rb +110 -0
  51. data/lib/neo4j/migrations/schema_migration.rb +9 -0
  52. data/lib/neo4j/model_schema.rb +100 -0
  53. data/lib/neo4j/railtie.rb +29 -110
  54. data/lib/neo4j/schema/operation.rb +24 -13
  55. data/lib/neo4j/session_manager.rb +137 -0
  56. data/lib/neo4j/shared.rb +20 -11
  57. data/lib/neo4j/shared/attributes.rb +10 -16
  58. data/lib/neo4j/shared/callbacks.rb +3 -3
  59. data/lib/neo4j/shared/cypher.rb +1 -1
  60. data/lib/neo4j/shared/declared_properties.rb +1 -1
  61. data/lib/neo4j/shared/declared_property.rb +1 -1
  62. data/lib/neo4j/shared/enum.rb +6 -18
  63. data/lib/neo4j/shared/identity.rb +27 -21
  64. data/lib/neo4j/shared/persistence.rb +26 -17
  65. data/lib/neo4j/shared/property.rb +5 -2
  66. data/lib/neo4j/shared/query_factory.rb +4 -5
  67. data/lib/neo4j/shared/type_converters.rb +8 -9
  68. data/lib/neo4j/shared/validations.rb +1 -5
  69. data/lib/neo4j/tasks/migration.rake +83 -2
  70. data/lib/neo4j/version.rb +1 -1
  71. data/lib/rails/generators/neo4j/migration/migration_generator.rb +14 -0
  72. data/lib/rails/generators/neo4j/migration/templates/migration.erb +9 -0
  73. data/lib/rails/generators/neo4j/model/model_generator.rb +1 -3
  74. data/lib/rails/generators/neo4j_generator.rb +1 -0
  75. data/neo4j.gemspec +3 -3
  76. metadata +58 -65
  77. data/bin/rake +0 -17
  78. data/lib/neo4j/shared/permitted_attributes.rb +0 -28
@@ -15,11 +15,7 @@ module Neo4j
15
15
  # @option options [true, false] :validate if false no validation will take place
16
16
  # @return [Boolean] true if it saved it successfully
17
17
  def save(options = {})
18
- result = perform_validations(options) ? super : false
19
- if !result
20
- Neo4j::Transaction.current.failure if Neo4j::Transaction.current
21
- end
22
- result
18
+ perform_validations(options) ? super : false
23
19
  end
24
20
 
25
21
  # @return [Boolean] true if valid
@@ -1,8 +1,17 @@
1
+ require 'active_support/concern'
1
2
  require 'neo4j/migration'
2
3
 
4
+ unless Rake::Task.task_defined?('environment')
5
+ desc 'Run a script against the database to perform system-wide changes'
6
+ task :environment do
7
+ require 'neo4j/session_manager'
8
+ Neo4j::SessionManager.setup!
9
+ end
10
+ end
11
+
3
12
  namespace :neo4j do
4
13
  desc 'Run a script against the database to perform system-wide changes'
5
- task :migrate, [:task_name, :subtask] => :environment do |_, args|
14
+ task :legacy_migrate, [:task_name, :subtask] => :environment do |_, args|
6
15
  path = Rake.original_dir
7
16
  migration_task = args[:task_name]
8
17
  task_name_constant = migration_task.split('_').map(&:capitalize).join('')
@@ -10,7 +19,7 @@ namespace :neo4j do
10
19
  migration_class = "Neo4j::Migration::#{task_name_constant}".constantize
11
20
  rescue NameError
12
21
  load File.join(path, 'db', 'neo4j-migrate', "#{migration_task}.rb")
13
- migration_class = "#{task_name_constant}".constantize
22
+ migration_class = task_name_constant.to_s.constantize
14
23
  end
15
24
  migration = migration_class.new(path)
16
25
 
@@ -21,4 +30,76 @@ namespace :neo4j do
21
30
  migration.migrate
22
31
  end
23
32
  end
33
+
34
+ desc 'A shortcut for neo4j::migrate::all'
35
+ task migrate: :environment do
36
+ Rake::Task['neo4j:migrate:all'].invoke
37
+ end
38
+
39
+ namespace :migrate do
40
+ desc 'Run all pending migrations'
41
+ task all: :environment do
42
+ runner = Neo4j::Migrations::Runner.new
43
+ runner.all
44
+ end
45
+
46
+ desc 'Run a migration given its VERSION'
47
+ task up: :environment do
48
+ version = ENV['VERSION'] || fail(ArgumentError, 'VERSION is required')
49
+ runner = Neo4j::Migrations::Runner.new
50
+ runner.up version
51
+ end
52
+
53
+ desc 'Revert a migration given its VERSION'
54
+ task down: :environment do
55
+ version = ENV['VERSION'] || fail(ArgumentError, 'VERSION is required')
56
+ runner = Neo4j::Migrations::Runner.new
57
+ runner.down version
58
+ end
59
+
60
+ desc 'Print a report of migrations status'
61
+ task status: :environment do
62
+ runner = Neo4j::Migrations::Runner.new
63
+ runner.status
64
+ end
65
+ end
66
+
67
+ desc 'Rollbacks migrations given a STEP number'
68
+ task :rollback, :environment do
69
+ steps = (ENV['STEP'] || 1).to_i
70
+ runner = Neo4j::Migrations::Runner.new
71
+ runner.rollback(steps)
72
+ end
73
+
74
+ # Temporary to help people change to 8.0
75
+ desc 'Generates a migration for the specified constraint/index and label/property combination.'
76
+ task :generate_schema_migration, :index_or_constraint, :label, :property_name do |_t, args|
77
+ index_or_constraint, label, property_name = args.values_at(:index_or_constraint, :label, :property_name)
78
+
79
+ if !%w(index constraint).include?(index_or_constraint)
80
+ fail "Invalid schema element type: #{index_or_constraint} (should be either `index` or `constraint`)"
81
+ end
82
+ fail 'Label must be specified' if label.blank?
83
+ fail 'Property name must be specified' if property_name.blank?
84
+
85
+ migration_class_name = "ForceCreate#{label.camelize}#{property_name.camelize}#{index_or_constraint.capitalize}"
86
+
87
+ path = File.join('db/neo4j/migrate', "#{DateTime.now.utc.strftime('%Y%m%d%H%M%S')}_#{migration_class_name.underscore}.rb")
88
+
89
+ content = <<-CONTENT
90
+ class #{migration_class_name} < Neo4j::Migrations::Base
91
+ def up
92
+ add_#{index_or_constraint} #{label.to_sym.inspect}, #{property_name.to_sym.inspect}, force: true
93
+ end
94
+
95
+ def down
96
+ drop_#{index_or_constraint} #{label.to_sym.inspect}, #{property_name.to_sym.inspect}
97
+ end
98
+ end
99
+ CONTENT
100
+
101
+ File.open(path, 'w') { |f| f << content }
102
+
103
+ puts "Generated #{path}"
104
+ end
24
105
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '7.2.3'
2
+ VERSION = '8.0.0.alpha.1'
3
3
  end
@@ -0,0 +1,14 @@
1
+ require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'neo4j.rb')
2
+
3
+ module Neo4j
4
+ module Generators
5
+ class Migration < ::Neo4j::Generators::Base
6
+ def create_migration_file
7
+ real_file_name = "#{Time.zone.now.strftime('%Y%m%d%H%M%S')}_#{file_name.parameterize}"
8
+ @migration_class_name = file_name.camelize
9
+
10
+ template 'migration.erb', File.join('db/neo4j/migrate', real_file_name)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ class <%= @migration_class_name %> < Neo4j::Migrations::Base
2
+ def up
3
+ <%= @content %>
4
+ end
5
+
6
+ def down
7
+ raise Neo4j::IrreversibleMigration
8
+ end
9
+ end
@@ -31,11 +31,9 @@ class Neo4j::Generators::ModelGenerator < Neo4j::Generators::Base #:nodoc:
31
31
  end
32
32
 
33
33
  def has_many_statements
34
- txt = ''
35
- options[:has_many].each do |key|
34
+ options[:has_many].each_with_object('') do |key, txt|
36
35
  txt << has_x('has_many', key)
37
36
  end
38
- txt
39
37
  end
40
38
 
41
39
  def has_one?
@@ -48,6 +48,7 @@ class Neo4j::Generators::ActiveModel < Rails::Generators::ActiveModel #:nodoc:
48
48
  end
49
49
  end
50
50
 
51
+
51
52
  module Rails
52
53
  module Generators
53
54
  class GeneratedAttribute #:nodoc:
@@ -7,7 +7,7 @@ require 'neo4j/version'
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'neo4j'
9
9
  s.version = Neo4j::VERSION
10
- s.required_ruby_version = '>= 1.9.3'
10
+ s.required_ruby_version = '>= 2.1.9'
11
11
 
12
12
  s.authors = 'Andreas Ronge, Brian Underwood, Chris Grigg'
13
13
  s.email = 'andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com'
@@ -29,7 +29,7 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
29
29
  s.add_dependency('orm_adapter', '~> 0.5.0')
30
30
  s.add_dependency('activemodel', '>= 4.0', '< 5.1')
31
31
  s.add_dependency('activesupport', '>= 4.0', '< 5.1')
32
- s.add_dependency('neo4j-core', '>= 6.0.0', '< 7.0.0')
32
+ s.add_dependency('neo4j-core', '>= 7.0.0.alpha.1')
33
33
  s.add_dependency('neo4j-community', '~> 2.0') if RUBY_PLATFORM =~ /java/
34
34
  s.add_development_dependency('railties', '>= 4.0', '< 5.1')
35
35
  s.add_development_dependency('pry')
@@ -39,5 +39,5 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
39
39
  s.add_development_dependency('guard')
40
40
  s.add_development_dependency('guard-rubocop')
41
41
  s.add_development_dependency('guard-rspec')
42
- s.add_development_dependency('rubocop', '~> 0.34.0')
42
+ s.add_development_dependency('rubocop', '~> 0.39.0')
43
43
  end
metadata CHANGED
@@ -1,30 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.3
4
+ version: 8.0.0.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-28 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: orm_adapter
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: 0.5.0
19
- name: orm_adapter
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
+ name: activemodel
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ">="
@@ -33,9 +34,8 @@ dependencies:
33
34
  - - "<"
34
35
  - !ruby/object:Gem::Version
35
36
  version: '5.1'
36
- name: activemodel
37
- prerelease: false
38
37
  type: :runtime
38
+ prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
@@ -45,6 +45,7 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '5.1'
47
47
  - !ruby/object:Gem::Dependency
48
+ name: activesupport
48
49
  requirement: !ruby/object:Gem::Requirement
49
50
  requirements:
50
51
  - - ">="
@@ -53,9 +54,8 @@ dependencies:
53
54
  - - "<"
54
55
  - !ruby/object:Gem::Version
55
56
  version: '5.1'
56
- name: activesupport
57
- prerelease: false
58
57
  type: :runtime
58
+ prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
@@ -65,40 +65,21 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: '5.1'
67
67
  - !ruby/object:Gem::Dependency
68
+ name: neo4j-core
68
69
  requirement: !ruby/object:Gem::Requirement
69
70
  requirements:
70
71
  - - ">="
71
72
  - !ruby/object:Gem::Version
72
- version: 6.0.0
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: 7.0.0
76
- name: neo4j-core
77
- prerelease: false
73
+ version: 7.0.0.alpha.1
78
74
  type: :runtime
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 6.0.0
84
- - - "<"
85
- - !ruby/object:Gem::Version
86
- version: 7.0.0
87
- - !ruby/object:Gem::Dependency
88
- requirement: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - "~>"
91
- - !ruby/object:Gem::Version
92
- version: '2.0'
93
- name: neo4j-community
94
75
  prerelease: false
95
- type: :runtime
96
76
  version_requirements: !ruby/object:Gem::Requirement
97
77
  requirements:
98
- - - "~>"
78
+ - - ">="
99
79
  - !ruby/object:Gem::Version
100
- version: '2.0'
80
+ version: 7.0.0.alpha.1
101
81
  - !ruby/object:Gem::Dependency
82
+ name: railties
102
83
  requirement: !ruby/object:Gem::Requirement
103
84
  requirements:
104
85
  - - ">="
@@ -107,9 +88,8 @@ dependencies:
107
88
  - - "<"
108
89
  - !ruby/object:Gem::Version
109
90
  version: '5.1'
110
- name: railties
111
- prerelease: false
112
91
  type: :development
92
+ prerelease: false
113
93
  version_requirements: !ruby/object:Gem::Requirement
114
94
  requirements:
115
95
  - - ">="
@@ -119,121 +99,119 @@ dependencies:
119
99
  - !ruby/object:Gem::Version
120
100
  version: '5.1'
121
101
  - !ruby/object:Gem::Dependency
102
+ name: pry
122
103
  requirement: !ruby/object:Gem::Requirement
123
104
  requirements:
124
105
  - - ">="
125
106
  - !ruby/object:Gem::Version
126
107
  version: '0'
127
- name: pry
128
- prerelease: false
129
108
  type: :development
109
+ prerelease: false
130
110
  version_requirements: !ruby/object:Gem::Requirement
131
111
  requirements:
132
112
  - - ">="
133
113
  - !ruby/object:Gem::Version
134
114
  version: '0'
135
115
  - !ruby/object:Gem::Dependency
116
+ name: os
136
117
  requirement: !ruby/object:Gem::Requirement
137
118
  requirements:
138
119
  - - ">="
139
120
  - !ruby/object:Gem::Version
140
121
  version: '0'
141
- name: os
142
- prerelease: false
143
122
  type: :development
123
+ prerelease: false
144
124
  version_requirements: !ruby/object:Gem::Requirement
145
125
  requirements:
146
126
  - - ">="
147
127
  - !ruby/object:Gem::Version
148
128
  version: '0'
149
129
  - !ruby/object:Gem::Dependency
130
+ name: rake
150
131
  requirement: !ruby/object:Gem::Requirement
151
132
  requirements:
152
133
  - - ">="
153
134
  - !ruby/object:Gem::Version
154
135
  version: '0'
155
- name: rake
156
- prerelease: false
157
136
  type: :development
137
+ prerelease: false
158
138
  version_requirements: !ruby/object:Gem::Requirement
159
139
  requirements:
160
140
  - - ">="
161
141
  - !ruby/object:Gem::Version
162
142
  version: '0'
163
143
  - !ruby/object:Gem::Dependency
144
+ name: yard
164
145
  requirement: !ruby/object:Gem::Requirement
165
146
  requirements:
166
147
  - - ">="
167
148
  - !ruby/object:Gem::Version
168
149
  version: '0'
169
- name: yard
170
- prerelease: false
171
150
  type: :development
151
+ prerelease: false
172
152
  version_requirements: !ruby/object:Gem::Requirement
173
153
  requirements:
174
154
  - - ">="
175
155
  - !ruby/object:Gem::Version
176
156
  version: '0'
177
157
  - !ruby/object:Gem::Dependency
158
+ name: guard
178
159
  requirement: !ruby/object:Gem::Requirement
179
160
  requirements:
180
161
  - - ">="
181
162
  - !ruby/object:Gem::Version
182
163
  version: '0'
183
- name: guard
184
- prerelease: false
185
164
  type: :development
165
+ prerelease: false
186
166
  version_requirements: !ruby/object:Gem::Requirement
187
167
  requirements:
188
168
  - - ">="
189
169
  - !ruby/object:Gem::Version
190
170
  version: '0'
191
171
  - !ruby/object:Gem::Dependency
172
+ name: guard-rubocop
192
173
  requirement: !ruby/object:Gem::Requirement
193
174
  requirements:
194
175
  - - ">="
195
176
  - !ruby/object:Gem::Version
196
177
  version: '0'
197
- name: guard-rubocop
198
- prerelease: false
199
178
  type: :development
179
+ prerelease: false
200
180
  version_requirements: !ruby/object:Gem::Requirement
201
181
  requirements:
202
182
  - - ">="
203
183
  - !ruby/object:Gem::Version
204
184
  version: '0'
205
185
  - !ruby/object:Gem::Dependency
186
+ name: guard-rspec
206
187
  requirement: !ruby/object:Gem::Requirement
207
188
  requirements:
208
189
  - - ">="
209
190
  - !ruby/object:Gem::Version
210
191
  version: '0'
211
- name: guard-rspec
212
- prerelease: false
213
192
  type: :development
193
+ prerelease: false
214
194
  version_requirements: !ruby/object:Gem::Requirement
215
195
  requirements:
216
196
  - - ">="
217
197
  - !ruby/object:Gem::Version
218
198
  version: '0'
219
199
  - !ruby/object:Gem::Dependency
200
+ name: rubocop
220
201
  requirement: !ruby/object:Gem::Requirement
221
202
  requirements:
222
203
  - - "~>"
223
204
  - !ruby/object:Gem::Version
224
- version: 0.34.0
225
- name: rubocop
226
- prerelease: false
205
+ version: 0.39.0
227
206
  type: :development
207
+ prerelease: false
228
208
  version_requirements: !ruby/object:Gem::Requirement
229
209
  requirements:
230
210
  - - "~>"
231
211
  - !ruby/object:Gem::Version
232
- version: 0.34.0
233
- description: 'A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack
234
- frameworks heavily inspired by ActiveRecord.
235
-
236
- '
212
+ version: 0.39.0
213
+ description: |
214
+ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks heavily inspired by ActiveRecord.
237
215
  email: andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com
238
216
  executables:
239
217
  - neo4j-jars
@@ -246,11 +224,12 @@ files:
246
224
  - Gemfile
247
225
  - README.md
248
226
  - bin/neo4j-jars
249
- - bin/rake
250
227
  - config/locales/en.yml
251
228
  - config/neo4j/add_classnames.yml
252
229
  - config/neo4j/config.yml
253
230
  - lib/neo4j.rb
231
+ - lib/neo4j/active_base.rb
232
+ - lib/neo4j/active_base/session_registry.rb
254
233
  - lib/neo4j/active_node.rb
255
234
  - lib/neo4j/active_node/callbacks.rb
256
235
  - lib/neo4j/active_node/dependent.rb
@@ -268,6 +247,7 @@ files:
268
247
  - lib/neo4j/active_node/labels.rb
269
248
  - lib/neo4j/active_node/labels/index.rb
270
249
  - lib/neo4j/active_node/labels/reloading.rb
250
+ - lib/neo4j/active_node/node_list_formatter.rb
271
251
  - lib/neo4j/active_node/node_wrapper.rb
272
252
  - lib/neo4j/active_node/orm_adapter.rb
273
253
  - lib/neo4j/active_node/persistence.rb
@@ -302,9 +282,20 @@ files:
302
282
  - lib/neo4j/core/query.rb
303
283
  - lib/neo4j/errors.rb
304
284
  - lib/neo4j/migration.rb
285
+ - lib/neo4j/migrations.rb
286
+ - lib/neo4j/migrations/base.rb
287
+ - lib/neo4j/migrations/helpers.rb
288
+ - lib/neo4j/migrations/helpers/id_property.rb
289
+ - lib/neo4j/migrations/helpers/relationships.rb
290
+ - lib/neo4j/migrations/helpers/schema.rb
291
+ - lib/neo4j/migrations/migration_file.rb
292
+ - lib/neo4j/migrations/runner.rb
293
+ - lib/neo4j/migrations/schema_migration.rb
294
+ - lib/neo4j/model_schema.rb
305
295
  - lib/neo4j/paginated.rb
306
296
  - lib/neo4j/railtie.rb
307
297
  - lib/neo4j/schema/operation.rb
298
+ - lib/neo4j/session_manager.rb
308
299
  - lib/neo4j/shared.rb
309
300
  - lib/neo4j/shared/attributes.rb
310
301
  - lib/neo4j/shared/callbacks.rb
@@ -318,7 +309,6 @@ files:
318
309
  - lib/neo4j/shared/initialize.rb
319
310
  - lib/neo4j/shared/marshal.rb
320
311
  - lib/neo4j/shared/mass_assignment.rb
321
- - lib/neo4j/shared/permitted_attributes.rb
322
312
  - lib/neo4j/shared/persistence.rb
323
313
  - lib/neo4j/shared/property.rb
324
314
  - lib/neo4j/shared/query_factory.rb
@@ -335,6 +325,8 @@ files:
335
325
  - lib/neo4j/type_converters.rb
336
326
  - lib/neo4j/version.rb
337
327
  - lib/neo4j/wrapper.rb
328
+ - lib/rails/generators/neo4j/migration/migration_generator.rb
329
+ - lib/rails/generators/neo4j/migration/templates/migration.erb
338
330
  - lib/rails/generators/neo4j/model/model_generator.rb
339
331
  - lib/rails/generators/neo4j/model/templates/model.erb
340
332
  - lib/rails/generators/neo4j_generator.rb
@@ -343,7 +335,7 @@ homepage: https://github.com/neo4jrb/neo4j/
343
335
  licenses:
344
336
  - MIT
345
337
  metadata: {}
346
- post_install_message:
338
+ post_install_message:
347
339
  rdoc_options:
348
340
  - "--quiet"
349
341
  - "--title"
@@ -358,16 +350,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
358
350
  requirements:
359
351
  - - ">="
360
352
  - !ruby/object:Gem::Version
361
- version: 1.9.3
353
+ version: 2.1.9
362
354
  required_rubygems_version: !ruby/object:Gem::Requirement
363
355
  requirements:
364
- - - ">="
356
+ - - ">"
365
357
  - !ruby/object:Gem::Version
366
- version: '0'
358
+ version: 1.3.1
367
359
  requirements: []
368
360
  rubyforge_project: neo4j
369
- rubygems_version: 2.4.8
370
- signing_key:
361
+ rubygems_version: 2.4.5.1
362
+ signing_key:
371
363
  specification_version: 4
372
364
  summary: A graph database for Ruby
373
365
  test_files: []
366
+ has_rdoc: true