activegraph 10.0.0.pre.alpha.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1989 -0
  3. data/CONTRIBUTORS +12 -0
  4. data/Gemfile +24 -0
  5. data/README.md +107 -0
  6. data/bin/rake +17 -0
  7. data/config/locales/en.yml +5 -0
  8. data/config/neo4j/add_classnames.yml +1 -0
  9. data/config/neo4j/config.yml +38 -0
  10. data/lib/neo4j.rb +116 -0
  11. data/lib/neo4j/active_base.rb +89 -0
  12. data/lib/neo4j/active_node.rb +108 -0
  13. data/lib/neo4j/active_node/callbacks.rb +8 -0
  14. data/lib/neo4j/active_node/dependent.rb +11 -0
  15. data/lib/neo4j/active_node/dependent/association_methods.rb +49 -0
  16. data/lib/neo4j/active_node/dependent/query_proxy_methods.rb +51 -0
  17. data/lib/neo4j/active_node/enum.rb +26 -0
  18. data/lib/neo4j/active_node/has_n.rb +612 -0
  19. data/lib/neo4j/active_node/has_n/association.rb +278 -0
  20. data/lib/neo4j/active_node/has_n/association/rel_factory.rb +61 -0
  21. data/lib/neo4j/active_node/has_n/association/rel_wrapper.rb +23 -0
  22. data/lib/neo4j/active_node/has_n/association_cypher_methods.rb +108 -0
  23. data/lib/neo4j/active_node/id_property.rb +224 -0
  24. data/lib/neo4j/active_node/id_property/accessor.rb +62 -0
  25. data/lib/neo4j/active_node/initialize.rb +21 -0
  26. data/lib/neo4j/active_node/labels.rb +207 -0
  27. data/lib/neo4j/active_node/labels/index.rb +37 -0
  28. data/lib/neo4j/active_node/labels/reloading.rb +21 -0
  29. data/lib/neo4j/active_node/node_list_formatter.rb +13 -0
  30. data/lib/neo4j/active_node/node_wrapper.rb +54 -0
  31. data/lib/neo4j/active_node/orm_adapter.rb +82 -0
  32. data/lib/neo4j/active_node/persistence.rb +187 -0
  33. data/lib/neo4j/active_node/property.rb +60 -0
  34. data/lib/neo4j/active_node/query.rb +76 -0
  35. data/lib/neo4j/active_node/query/query_proxy.rb +374 -0
  36. data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +177 -0
  37. data/lib/neo4j/active_node/query/query_proxy_eager_loading/association_tree.rb +75 -0
  38. data/lib/neo4j/active_node/query/query_proxy_enumerable.rb +110 -0
  39. data/lib/neo4j/active_node/query/query_proxy_find_in_batches.rb +19 -0
  40. data/lib/neo4j/active_node/query/query_proxy_link.rb +139 -0
  41. data/lib/neo4j/active_node/query/query_proxy_methods.rb +302 -0
  42. data/lib/neo4j/active_node/query/query_proxy_methods_of_mass_updating.rb +86 -0
  43. data/lib/neo4j/active_node/query_methods.rb +68 -0
  44. data/lib/neo4j/active_node/reflection.rb +86 -0
  45. data/lib/neo4j/active_node/rels.rb +11 -0
  46. data/lib/neo4j/active_node/scope.rb +166 -0
  47. data/lib/neo4j/active_node/unpersisted.rb +48 -0
  48. data/lib/neo4j/active_node/validations.rb +59 -0
  49. data/lib/neo4j/active_rel.rb +67 -0
  50. data/lib/neo4j/active_rel/callbacks.rb +15 -0
  51. data/lib/neo4j/active_rel/initialize.rb +28 -0
  52. data/lib/neo4j/active_rel/persistence.rb +134 -0
  53. data/lib/neo4j/active_rel/persistence/query_factory.rb +95 -0
  54. data/lib/neo4j/active_rel/property.rb +95 -0
  55. data/lib/neo4j/active_rel/query.rb +101 -0
  56. data/lib/neo4j/active_rel/rel_wrapper.rb +31 -0
  57. data/lib/neo4j/active_rel/related_node.rb +87 -0
  58. data/lib/neo4j/active_rel/types.rb +82 -0
  59. data/lib/neo4j/active_rel/validations.rb +8 -0
  60. data/lib/neo4j/ansi.rb +14 -0
  61. data/lib/neo4j/class_arguments.rb +39 -0
  62. data/lib/neo4j/config.rb +135 -0
  63. data/lib/neo4j/core.rb +14 -0
  64. data/lib/neo4j/core/connection_failed_error.rb +6 -0
  65. data/lib/neo4j/core/cypher_error.rb +37 -0
  66. data/lib/neo4j/core/driver.rb +66 -0
  67. data/lib/neo4j/core/has_uri.rb +63 -0
  68. data/lib/neo4j/core/instrumentable.rb +36 -0
  69. data/lib/neo4j/core/label.rb +158 -0
  70. data/lib/neo4j/core/logging.rb +44 -0
  71. data/lib/neo4j/core/node.rb +23 -0
  72. data/lib/neo4j/core/querable.rb +88 -0
  73. data/lib/neo4j/core/query.rb +487 -0
  74. data/lib/neo4j/core/query_builder.rb +32 -0
  75. data/lib/neo4j/core/query_clauses.rb +727 -0
  76. data/lib/neo4j/core/query_ext.rb +24 -0
  77. data/lib/neo4j/core/query_find_in_batches.rb +49 -0
  78. data/lib/neo4j/core/relationship.rb +13 -0
  79. data/lib/neo4j/core/responses.rb +50 -0
  80. data/lib/neo4j/core/result.rb +33 -0
  81. data/lib/neo4j/core/schema.rb +30 -0
  82. data/lib/neo4j/core/schema_errors.rb +12 -0
  83. data/lib/neo4j/core/wrappable.rb +30 -0
  84. data/lib/neo4j/errors.rb +57 -0
  85. data/lib/neo4j/migration.rb +148 -0
  86. data/lib/neo4j/migrations.rb +27 -0
  87. data/lib/neo4j/migrations/base.rb +77 -0
  88. data/lib/neo4j/migrations/check_pending.rb +20 -0
  89. data/lib/neo4j/migrations/helpers.rb +105 -0
  90. data/lib/neo4j/migrations/helpers/id_property.rb +75 -0
  91. data/lib/neo4j/migrations/helpers/relationships.rb +66 -0
  92. data/lib/neo4j/migrations/helpers/schema.rb +51 -0
  93. data/lib/neo4j/migrations/migration_file.rb +24 -0
  94. data/lib/neo4j/migrations/runner.rb +195 -0
  95. data/lib/neo4j/migrations/schema.rb +44 -0
  96. data/lib/neo4j/migrations/schema_migration.rb +14 -0
  97. data/lib/neo4j/model_schema.rb +139 -0
  98. data/lib/neo4j/paginated.rb +27 -0
  99. data/lib/neo4j/railtie.rb +105 -0
  100. data/lib/neo4j/schema/operation.rb +102 -0
  101. data/lib/neo4j/shared.rb +60 -0
  102. data/lib/neo4j/shared/attributes.rb +216 -0
  103. data/lib/neo4j/shared/callbacks.rb +68 -0
  104. data/lib/neo4j/shared/cypher.rb +37 -0
  105. data/lib/neo4j/shared/declared_properties.rb +204 -0
  106. data/lib/neo4j/shared/declared_property.rb +109 -0
  107. data/lib/neo4j/shared/declared_property/index.rb +37 -0
  108. data/lib/neo4j/shared/enum.rb +167 -0
  109. data/lib/neo4j/shared/filtered_hash.rb +79 -0
  110. data/lib/neo4j/shared/identity.rb +34 -0
  111. data/lib/neo4j/shared/initialize.rb +64 -0
  112. data/lib/neo4j/shared/marshal.rb +23 -0
  113. data/lib/neo4j/shared/mass_assignment.rb +64 -0
  114. data/lib/neo4j/shared/permitted_attributes.rb +28 -0
  115. data/lib/neo4j/shared/persistence.rb +282 -0
  116. data/lib/neo4j/shared/property.rb +240 -0
  117. data/lib/neo4j/shared/query_factory.rb +102 -0
  118. data/lib/neo4j/shared/rel_type_converters.rb +43 -0
  119. data/lib/neo4j/shared/serialized_properties.rb +30 -0
  120. data/lib/neo4j/shared/type_converters.rb +433 -0
  121. data/lib/neo4j/shared/typecasted_attributes.rb +98 -0
  122. data/lib/neo4j/shared/typecaster.rb +53 -0
  123. data/lib/neo4j/shared/validations.rb +44 -0
  124. data/lib/neo4j/tasks/migration.rake +202 -0
  125. data/lib/neo4j/timestamps.rb +11 -0
  126. data/lib/neo4j/timestamps/created.rb +9 -0
  127. data/lib/neo4j/timestamps/updated.rb +9 -0
  128. data/lib/neo4j/transaction.rb +139 -0
  129. data/lib/neo4j/type_converters.rb +7 -0
  130. data/lib/neo4j/undeclared_properties.rb +53 -0
  131. data/lib/neo4j/version.rb +3 -0
  132. data/lib/neo4j/wrapper.rb +4 -0
  133. data/lib/rails/generators/neo4j/migration/migration_generator.rb +14 -0
  134. data/lib/rails/generators/neo4j/migration/templates/migration.erb +9 -0
  135. data/lib/rails/generators/neo4j/model/model_generator.rb +88 -0
  136. data/lib/rails/generators/neo4j/model/templates/migration.erb +9 -0
  137. data/lib/rails/generators/neo4j/model/templates/model.erb +15 -0
  138. data/lib/rails/generators/neo4j/upgrade_v8/templates/migration.erb +17 -0
  139. data/lib/rails/generators/neo4j/upgrade_v8/upgrade_v8_generator.rb +32 -0
  140. data/lib/rails/generators/neo4j_generator.rb +119 -0
  141. data/neo4j.gemspec +51 -0
  142. metadata +421 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '080320681eddb19c4c347525bd2aa1eb29c570084d341c6ec6ee4b66f1ab8480'
4
+ data.tar.gz: edcfccffbedcd4c49504fb86241574d26e6c737b0ab12dac30947b99c792c4d1
5
+ SHA512:
6
+ metadata.gz: 61fe3eb22783d399afd333bce3770621758162bbae701f3a6127c594b0268984899594a228c531bff717059390a57412eb92527bdae38312331b6a68a6be1479
7
+ data.tar.gz: dfd1debd983d0e65e223d0a4c15779d39e3be8611aadc975f75298a90063fa735f7be248d79694694b06d8f66b2612f5478420d8d98ef7fd384d056632cadd70
data/CHANGELOG.md ADDED
@@ -0,0 +1,1989 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This file should follow the standards specified on [http://keepachangelog.com/]
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## [9.6.1] 2019-12-18
7
+
8
+ ## Fixed
9
+
10
+ - Fixed duplicate records with with_associations on QueryProxy. (#1576)
11
+
12
+ ## [9.6.0] 2019-09-3
13
+
14
+ ## Added
15
+
16
+ - support for activemodel and activesupport version 6 (thanks @mrhardikjoshi)
17
+
18
+ ## Fixed
19
+
20
+ - fixed cypher generation for `remove_property` (thanks @lshimokawa)
21
+ - cleaned up deprecations, unused files and badges (thanks @olleolleolle)
22
+
23
+ ## [9.5.3] 2019-08-16
24
+
25
+ ## Fixed
26
+
27
+ - Enforces has_one uniqness constraint on relationship with config flag. (#1566)
28
+ - Restricting activemodel and activesupport version to < 6.0.
29
+
30
+ ## [9.5.2] 2019-08-06
31
+
32
+ ## Fixed
33
+
34
+ - Made neo4j_community gem a development dependency rather than a runtime dependency.
35
+
36
+ ## [9.5.1] 2019-07-31
37
+
38
+ ## Fixed
39
+
40
+ - Reverse has_one relationships with ActiveRel (thanks @amitsuryavanshi / #1560)
41
+
42
+ ## [9.5.0] 2019-06-17
43
+
44
+ ## Added
45
+
46
+ - Variable length relatinships in eager laoding (thanks @amitsuryavanshi / #1545)
47
+
48
+ ## Fixed
49
+
50
+ - fixed `wait_for_connection` (thanks @ayghor / see #1540)
51
+ - Reverse has_one relationships (thanks @amitsuryavanshi / #1548)
52
+ - Missing require 'forwardable' (thanks @jschulenklopper / #1535)
53
+
54
+ ## [9.4.0] 2018-12-20
55
+
56
+ ## Added
57
+
58
+ - `verbose_query_logs` configuration option to allow outputting of source location of queries
59
+ - Adaptor classes loaded dynamically on demand
60
+ - Optionally specify the full adaptor class name instead of session type only (supports driver adaptor)
61
+
62
+ ## Fixed
63
+
64
+ - Wrong conflicting node aliases on same `branch` usage (see #1526)
65
+ - Incorrect order when `order` and `with_associations` are used together
66
+ - `ScopeEvalContext` redirects now all method missing calls to QueryProxy or Target
67
+
68
+ ## [9.3.0] 2018-07-12
69
+
70
+ ## Added
71
+
72
+ - Scopes will now automatically show up on instances as well as classes / proxies
73
+
74
+ ## [9.2.4] 2018-05-20
75
+
76
+ ## Fixed
77
+
78
+ - BigDecimal handling on properties (thanks @klobuczek / see #1507)
79
+
80
+ ## [9.2.3] 2018-05-10
81
+
82
+ ## Fixed
83
+
84
+ - Rescue when node labels cause a LoadError in addition to a NameError (thanks @Grafikart / see #1500)
85
+
86
+ ## [9.2.2] 2018-04-19
87
+
88
+ ## Fixed
89
+
90
+ - Introduced a fix to account for the fact that `ActiveModel` now returns a frozen `Hash` for `changed_attributes` (thanks @anamba and subvertallchris / see #1496 and #1499)
91
+
92
+ ## [9.2.1] 2018-04-01
93
+
94
+ ## Fixed
95
+
96
+ - Fixed .first and .last methods for QueryProxyMethods (thanks @kopylovvlad / see #1494)
97
+
98
+ ## [9.2.0] 2018-03-27
99
+
100
+ ## Added
101
+
102
+ - Ability to create association with `labels: false` by default (thanks @thefliik / see #1485)
103
+
104
+ ## [9.1.8] 2018-03-27
105
+
106
+ ## Fixed
107
+
108
+ - Micro-optimizations which help when dealing with a lot of data (thanks @jgaskins / see #1490)
109
+
110
+ ## [9.1.8] 2018-03-27
111
+
112
+ ## Fixed
113
+
114
+ - Micro-optimizations which help when dealing with a lot of data (thanks @jgaskins / see #1490)
115
+
116
+ ## [9.1.7] 2018-03-27
117
+
118
+ ## Fixed
119
+
120
+ - Created helpful error message to AssociationTree (thanks @thefliik / see #1488)
121
+
122
+ ## [9.1.6] 2018-03-27
123
+
124
+ ## Fixed
125
+
126
+ - Adding link to `CHANGELOG.md` as shown on https://olivierlacan.com/posts/changelogs-on-rubygems-org/
127
+
128
+ ## [9.1.5] 2018-03-18
129
+
130
+ ## Fixed
131
+
132
+ - Performance improvement for attributes (thanks @jgaskins / see #1487)
133
+
134
+ ## [9.1.4] 2018-02-20
135
+
136
+ ## Fixed
137
+
138
+ - Fixed issue with `ActiveRel.find` for when the ID isn't there (thanks @lshimokawa / WARNING: Use of `ActiveRel.find` is NOT recommended, see #1482)
139
+
140
+ ## [9.1.3] 2018-02-01
141
+
142
+ ## Fixed
143
+
144
+ - Fixed issue with Rails 5.1 where `neo4j_config.session` refers to the wrong this (thanks @RicardoTrindade / see #1471 and #1475)
145
+
146
+ ## [9.1.2] 2017-12-18
147
+
148
+ ## Fixed
149
+
150
+ - Issue where the order of `ORDER BY` was from `.order` method was not being respected for chains with `with_association` (thanks @klobuczek / see #1454)
151
+
152
+ ## [9.1.1] 2017-12-12
153
+
154
+ ## Fixed
155
+
156
+ - Model.find will, when raising an error about not being able to find the object, now call `inspect` on the ID value to make it clearer what the error is about (thanks @anamba / see #1314)
157
+
158
+ ## [9.1.0] 2017-11-24
159
+
160
+ ## Added
161
+
162
+ - Add `rel_where_not` to allow negative filtering of relationships (thanks @pmaite88 / see #1446)
163
+
164
+ ## [9.0.7] 2017-11-24
165
+
166
+ ## Fixes
167
+
168
+ - Fix "Variable `other_rel` not defined" error when destroying objects with a `dependent: :delete_orphans` associations (thanks @nearapogee, @TyGuy, and @leehericks / see #1395)
169
+
170
+ ## [9.0.6] 2017-11-21
171
+
172
+ ## Fixes
173
+
174
+ - Ensure `RecordNotFound` consistent in providing the model (thanks @leviwilson / see #1442)
175
+
176
+ ## [9.0.5] 2017-10-16
177
+
178
+ ## Fixes
179
+
180
+ - Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
181
+
182
+ ## [9.0.4] 2017-10-15
183
+
184
+ ## Fixes
185
+
186
+ - Change YAML.safe_load call in `neo4j:schema:load` rake task to allow Symbols (thanks @evanob / see #1439)
187
+
188
+ ## [9.0.3] 2017-10-12
189
+
190
+ ### Fixed
191
+
192
+ - Ensure branch method propagates with_association_tree context (brought forward from 8.3.1. Thanks @klobuczek / see #1437)
193
+
194
+ ## [9.0.2] 2017-10-08
195
+
196
+ - Accidental release
197
+
198
+ ## [9.0.1] 2017-09-26
199
+
200
+ ### Fixed
201
+
202
+ - Properties defined on a superclass after the subclass has been defined will now take effect on the subclass (intended to be released in 9.0.0) (thanks @thefliik / see #1428)
203
+
204
+ ## [9.0.0] 2017-09-26
205
+
206
+ ### Changed
207
+
208
+ - By default, `enum` values are now case-insensitive (but there are local and global `_case_sensitive` options [see the docs](http://neo4jrb.readthedocs.io/en/9.0.x/ActiveNode.html#enums)) (thanks @thefliik / see #1419)
209
+
210
+ ## [8.3.4] 2017-10-16
211
+
212
+ ## Fixes
213
+
214
+ - Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
215
+
216
+ ## [8.3.3] 2017-10-15
217
+
218
+ ## Fixes
219
+
220
+ - Change YAML.safe_load call in `neo4j:schema:load` rake task to allow Symbols (thanks @evanob / see #1439)
221
+
222
+ ## [8.3.2] 2017-10-12
223
+
224
+ ## Fixes
225
+
226
+ - Ensure branch method propagates with_association_tree context (thanks @klobuczek / see #1437)
227
+
228
+ ## [8.3.1] 2017-10-08
229
+
230
+ - Accidental release
231
+
232
+ ## [8.3.0] 2017-09-25
233
+
234
+ ### Changed
235
+
236
+ - Allow `chainable: true` option when calling `has_one` associations to start chaining (thanks @thefliik / see #1422)
237
+
238
+ ## [8.2.5] 2017-09-23
239
+
240
+ ### Fixes
241
+
242
+ - Error when using `pluck(:id)` on an association which has an array argument for `model_class` (thanks @thefliik / see #1426)
243
+
244
+ ## [8.2.4] 2017-09-20
245
+
246
+ ### Fixes
247
+
248
+ - Fixes ability to run `rails destroy model` and `rails destroy migration` (thanks @thefliik / see #1420)
249
+
250
+ ## [8.2.3] 2017-09-19
251
+
252
+ ### Fixes
253
+
254
+ - Scopes now work when inherited three or more levels deep (see #1415, #1413, #1412 / thanks @thefliik)
255
+
256
+ ## [8.2.2] 2017-09-18
257
+
258
+ ### Fixes
259
+
260
+ - Allow enums to be created without associated indexes (thanks @thefliik / see #1411)
261
+
262
+ ## [8.2.1] 2017-09-01
263
+
264
+ ### Fixes
265
+
266
+ - Bringing forward changes from 8.1.x
267
+
268
+ ## [8.2.0] 2017-09-01
269
+
270
+ ### Added
271
+
272
+ - Ability to load nested associations with one query using `with_associations` (big thanks to @klobuczek / see #1398)
273
+
274
+ ## [8.1.4] 2017-08-17
275
+
276
+ ### Fixed
277
+
278
+ - Make sure that we handle the state of the SchemaMigration correctly when we get failures in non-transactional migrations (see #1383 / thanks @leviwilson and @ProGM)
279
+
280
+ ## [8.1.4] 2017-08-17
281
+
282
+ ### Fixed
283
+
284
+ - Issue where node Cypher variable could change during a `branch` (see issue #1348 / thanks @klobuczek for the report)
285
+
286
+ ## [8.1.3] 2017-06-29
287
+
288
+ ### Fixed
289
+
290
+ - `ActiveRel` `.first` / `.last` aren't dependable for ordering in Neo4j enterprise, so fixed test (be aware that using `.first` / `.last` are not recommended in `ActiveRel`) (see #1396 / thanks @klobuczek)
291
+ - Labels for models are now returned alphabetically (see #1396 / thanks @klobuczek)
292
+ - JSON serialization is fixed for `String` and objects in general which respond to `to_json` (see #1397 / thanks @leviwilson)
293
+
294
+ ## [8.1.2] 2017-06-20
295
+
296
+ ### Fixed
297
+
298
+ - Populates relationship with with already retrieved node (see #1393 / thanks @klobuczek)
299
+
300
+ ## [8.1.1] 2017-06-15
301
+
302
+ ### Added
303
+
304
+ - Comment to the top of the `schema.yml` file to help explain it's presence
305
+
306
+ ## [8.1.0] 2017-06-07
307
+
308
+ ### Fixed
309
+
310
+ - Issue where `neo4j:schema:load` rake task would set schema migration properties as `version` rather than `migration_id`
311
+
312
+ ## [8.1.0.rc.2] 2017-06-06
313
+
314
+ ### Removed
315
+
316
+ - Support for jRuby 1.7.x
317
+
318
+ ## [8.1.0.rc.1] 2017-05-05
319
+
320
+ ### Added
321
+
322
+ - Created `neo4j:schema:dump` and `neo4j:schema:load` rake tasks to create `schema.yml` files which can be checked into the repository for quick setup of a fresh database
323
+
324
+ ### Changed
325
+
326
+ - Removed `before` and `after` callback options from associations (model callbacks still exist)
327
+
328
+ ## [8.0.18] 2017-06-04
329
+
330
+ ### Fixed
331
+
332
+ - Migration name when generating a model shouldn't be the same as the model (see #1387 / thanks @thefliik and @apotonick)
333
+
334
+ ## [8.0.17] 2017-05-03
335
+
336
+ ### Fixed
337
+
338
+ - Don't lock out Rails 5.1 in `gemspec`
339
+
340
+ ## [8.0.16] 2017-05-01
341
+
342
+ ### Fixed
343
+
344
+ - Don't lock out Rails 5.1 in `gemspec`
345
+
346
+ ## [8.0.15] 2017-04-24
347
+
348
+ ### Fixed
349
+
350
+ - Error message for getting distinct on count was not clear
351
+
352
+ ## [8.0.14] 2017-04-15
353
+
354
+ ### Fixed
355
+
356
+ - Simple change to description in gemspec file to remove "Ruby on Rails" and "Rack" as the gem can be use in any Ruby-based script / application
357
+
358
+ ## [8.0.13] 2017-04-07
359
+
360
+ ### Fixed
361
+
362
+ - Removed `put(s|c)` statements to avoid issues with background jobs (thanks @andyweiss1982 and @sureshblp71)
363
+
364
+ ## [8.0.12] 2017-03-28
365
+
366
+ ### Fixed
367
+
368
+ - Sessions in the `neo4j` gem are automatically set to have `wrap_level: :proc` to ensure that nodes and relationships are wrapped in models (even if you aren't using Rails)
369
+
370
+ ## [8.0.11] 2017-03-23
371
+
372
+ ### Fixed
373
+
374
+ - Fix issue where an association (which hasn't been accessed) is accessed from an ActiveNode callback
375
+
376
+ ## [8.0.9] 2017-03-15
377
+
378
+ ### Fixed
379
+
380
+ - Fix more Ruby 2.4 deprecations re: Integer (see #1363 / thanks @jboler)
381
+
382
+ ## [8.0.9] 2017-03-09
383
+
384
+ ### Fixed
385
+
386
+ - Support `to_ary` on association proxies to help support serializers (thanks @gnapse / see #1362)
387
+
388
+ ## [8.0.8] 2017-02-27
389
+
390
+ ### Fixed
391
+
392
+ - Performance and response consistency improvements to `exists?` methods
393
+
394
+ ## [8.0.7] 2017-02-24
395
+
396
+ ### Fixed
397
+
398
+ - Fix Ruby 2.4 deprecations re: Integer (see #1360 / thanks @jboler)
399
+
400
+ ## [8.0.6] 2017-02-04
401
+
402
+ ### Fixed
403
+
404
+ - Rake tasks broken without Rails (thanks @CoralineAda, @phreakocious, and @Joshfindit, see #1330, #1331, and #1353)
405
+
406
+ ## [8.0.5] 2017-01-05
407
+
408
+ ### Fixed
409
+
410
+ - When invalid session type is given, an exception will be raised to aid debugging (see #1335 / thanks @Joshfindit)
411
+
412
+ ## [8.0.4] 2017-01-03
413
+
414
+ ### Fixed
415
+
416
+ - Fixed/refactored `wait_for_connection`
417
+
418
+ ## [8.0.3] 2017-01-03
419
+
420
+ ### Fixed
421
+
422
+ - Fixed/refactored `wait_for_connection`
423
+
424
+ ## [8.0.2] 2016-12-22
425
+
426
+ ### Fixed
427
+
428
+ - Camelization of class names for migrations should now match the snake case of the migration file name (see #1329)
429
+
430
+ ## [8.0.1] 2016-12-20
431
+
432
+ ### Fixed
433
+
434
+ - Use UTC timezone for timestamps on migration files
435
+
436
+ ## [8.0.0] 2016-12-14
437
+
438
+ NO CHANGES FROM 8.0.0.rc.4
439
+
440
+ ## [8.0.0.rc.4] 2016-10-12
441
+
442
+ ### Changed
443
+
444
+ - `find_or_create_by` on an association does not look for nodes which aren't related to the node in question (thanks for the report @efatsi / see #1240)
445
+
446
+ ### Fixed
447
+
448
+ - Inconsistent `drop_constraint` and `drop_index` behavior: they were accepting `force` option (like `add_*` methods)
449
+ - `PendingMigrationError` not showing pending migrations versions
450
+ - Fixed `silenced: true` for `Neo4j::Migration::Runner` option, not working properly
451
+ - Removed "strange" inheritance between Neo4j::Migrations::Base and the legacy Neo4j::Migration class
452
+ - Avoid creating the `SchemaMigration` model constraint when it already exists
453
+
454
+ ## [8.0.0.rc.3] 2016-10-12
455
+
456
+ # Added
457
+
458
+ - `distinct` method for QueryProxy (thanks @ProGM / see #1305)
459
+ - Added `update_node_property` / `update_node_properties` (aliased as `update_column` / `update_columns`)
460
+
461
+ ## [8.0.0.rc.2] 2016-10-07
462
+
463
+ ### Fixed
464
+
465
+ - Pending migration check was failing when there are no migrations
466
+
467
+ ## [8.0.0.rc.1] 2016-10-04
468
+
469
+ ### Changed
470
+
471
+ - Pending migrations check, now using a Rack Middleware instead of failing on startup (thanks @ProGM / see #1300)
472
+
473
+ ### Added
474
+
475
+ - Add support for undeclared properties on specific models (see #1294 / thanks @klobuczek)
476
+ - Add `update_node_property` and `update_node_properties` methods, aliased as `update_column` and `update_columns`, to persist changes without triggering validations, callbacks, timestamps, etc,...
477
+
478
+ ## [8.0.0.alpha.12] 2016-09-29
479
+
480
+ ### Fixed
481
+
482
+ - Allow multiple arguments to scopes (see #1297 / thanks @klobuczek)
483
+ - Fixed validations with unpersisted nodes (see #1293 / thanks @klobuczek & @ProGM)
484
+ - Fixed various association bugs (see #1293 / thanks @klobuczek & @ProGM)
485
+ - Fix `as` losing the current query chain scope (see #1298 and #1278 / thanks @ProGM & @ernestoe)
486
+
487
+ ## [8.0.0.alpha.11] 2016-09-27
488
+
489
+ ### Fixed
490
+ - Don't fire database when accessing to unpersisted model associations (thanks @klobuczek & @ProGM see #1273)
491
+ - `size` and `length` methods not taking account of `@deferred_objects` (see #1293)
492
+ - `update` was not rolling-back association changes when validations fail
493
+ - Broken Rails `neo4j:migrate_v8` generator
494
+
495
+ ### Changed
496
+ - `count` method in associations, now always fire the database like AR does
497
+ - Neo4j now passes all association validations specs, taken from AR (thanks @klobuczek)
498
+
499
+ ## [8.0.0.alpha.10] 2016-09-16
500
+
501
+ ### Fixed
502
+ - Remove blank objects from association results to be compatible with `ActiveRecord` (see #1276 / thanks klobuczek)
503
+ - Allow https scheme in the NEO4J_URL (see #1287 / thanks jacob-ewald)
504
+
505
+ ## [8.0.0.alpha.9] 2016-09-14
506
+
507
+ ### Fixed
508
+
509
+ - String / symbol issue for session types in railtie
510
+ - Put in fix for allowing models to reload for wrapping nodes / relationshps
511
+
512
+ ## [8.0.0.alpha.8] 2016-09-14
513
+
514
+ ### Fixed
515
+
516
+ - Issues with railtie
517
+
518
+ ## [8.0.0.alpha.7] 2016-09-13
519
+
520
+ ### Changed
521
+
522
+ - Multiple sessions in Rails config no longer supported
523
+
524
+ ## [8.0.0.alpha.6] 2016-09-12
525
+
526
+ ### Fixed
527
+
528
+ - Instead of using `session_type`, `session_url`, `session_path`, and `session_options` in config `session.type`, `session.url`, `session.path`, and `session.options` should now be used.
529
+ - Issue where `session_url` (now `session.url`) was not working
530
+ - Broken sessions when threading
531
+
532
+ ## [8.0.0.alpha.5] 2016-09-08
533
+
534
+ ### Fixed
535
+
536
+ - Various issues with not be able to run migrations when migration were pending (see 22b7e6aaadd46c11d421b4dac8d3fb15f663a4c4)
537
+
538
+ ## [8.0.0.alpha.4] 2016-09-08
539
+
540
+ ### Added
541
+
542
+ - A `Neo4j::Migrations.maintain_test_schema!` method, to keep the test database up to date with schema changes. (see #1277)
543
+ - A `Neo4j::Migrations.check_for_pending_migrations!` method, that fails when there are pending migration. In Rails, it's executed automatically on startup. (see #1277)
544
+ - Support for [`ForbiddenAttributesProtection` API](http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html) from ActiveRecord. (thanks ProGM, see #1245)
545
+
546
+ ### Changed
547
+
548
+ - `ActiveNode#destroy` and `ActiveRel#destroy` now return the object in question rather than `true` to be compatible with `ActiveRecord` (see #1254)
549
+
550
+ ### Fixed
551
+
552
+ - Bugs with using `neo_id` as `ActiveNode` `id_property` (thanks klobuczek / see #1274)
553
+
554
+ ## [8.0.0.alpha.3]
555
+
556
+ ### Skipped
557
+
558
+ ## [8.0.0.alpha.2] 2016-08-05
559
+
560
+ ### Changed
561
+
562
+ - Improve migration output format / show execution time in migrations
563
+
564
+ ### Fixed
565
+
566
+ - Caching of model index and constraint checks
567
+ - Error when running schema migrations. Migrations now give a warning and instructions if a migration fails and cannot be recovered
568
+ - Error when running rake tasks to generate "force" creations of indexes / constraints and there is no migration directory
569
+ - `WARNING` is no longer displayed for constraints defined from `id_property` (either one which is implict or explict)
570
+
571
+ ## [8.0.0.alpha.1] 2016-08-02
572
+
573
+ ### Changed
574
+
575
+ - Improved `QueryProxy` and `AssociationProxy` `#inspect` method to show a result preview (thanks ProGM / see #1228 #1232)
576
+ - Renamed the old migration task to `neo4j:legacy_migrate`
577
+ - Renamed the ENV variable to silence migrations output from `silenced` to `MIGRATIONS_SILENCED`
578
+ - Changed the behavior with transactions when a validation fails. This is a potentially breaking change, since now calling `save` would not fail the current transaction, as expected. (thanks ProGM / see #1156)
579
+ - Invalid options to the `property` method now raise an exception (see #1169)
580
+ - Label #indexes/#constraints return array without needing to access [:property_keys]
581
+ - `server_db` server type is no longer supported. Use `http` instead to connect to Neo4j via the HTTP JSON API
582
+
583
+ ### Added
584
+
585
+ - Allow to pass a Proc for a default property value (thanks @knapo / see #1250)
586
+ - Adding a new ActiveRecord-like migration framework (thanks ProGM / see #1197)
587
+ - Adding a set of rake tasks to manage migrations (thanks ProGM / see #1197)
588
+ - Implemented autoloading for new and legacy migration modules (there's no need to `require` them anymore)
589
+ - Adding explicit identity method for use in Query strings (thanks brucek / see #1159)
590
+ - New adaptor-based API has been created for connecting to Neo4j (See the [upgrade guide](TODO!!!!)). Changes include:
591
+ - The old APIs are deprecated and will be removed later.
592
+ - In the new API, there is no such thing as a "current" session. Users of `neo4j-core` must create and maintain references themselves to their sessions
593
+ - New `Neo4j::Core::Node` and `Neo4j::Core::Relationshp` classes have been created to provide consistent results between adaptors. `Neo4j::Core::Path` has also been added
594
+ - New API is centered around Cypher. No special methods are defined to, for example, load/create/etc... nodes/relationships
595
+ - There is now a new API for making multiple queries in the same HTTP request
596
+ - It is now possible to subscribe separately to events for querying in different adaptors and for HTTP requests (see [the docs](TODO!!!!))
597
+ - Schema queries (changes to indexes/constraints) happen in a separate thread for performance and reduce the complexity of the code
598
+ - New session API does not include replacement for on_next_session_available
599
+ - Adding a migration helper to mass relabel migrations (thanks @JustinAiken / see #1166 #1239)
600
+ - Added support for `find_or_initialize_by` and `first_or_initialize` methods from ActiveRecord (thanks ProGM / see #1164)
601
+ - Support for using Neo4j-provided IDs (`neo_id`) instead of UUID or another Ruby-provided ID. (Huge thanks to @klobuczek, see #1174)
602
+
603
+ ### Fixed
604
+
605
+ - Made some memory optimizations (thanks ProGM / see #1221)
606
+
607
+ ## [7.2.3] - 09-28-2016
608
+
609
+ ### Fixed
610
+
611
+ - `as` resetting scope of the current query chain (see #1298)
612
+
613
+ ## [7.2.2] - 09-22-2016
614
+
615
+ ### Fixed
616
+
617
+ - `where` clause with question mark parameter and array values only using the first element (see #1247 #1290)
618
+
619
+ ## [7.2.1] - 09-19-2016
620
+
621
+ ### Fixed
622
+
623
+ - During ActiveRel create, node and rel property values formatted like Cypher props (`{val}`) were interpreted as props, causing errors.
624
+
625
+ ## [7.2.0] - 08-23-2016
626
+
627
+ ### Added
628
+
629
+ - Backporting #1245 to 7.x versions. It implements the [`ForbiddenAttributesProtection` API](http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html) from ActiveRecord.
630
+
631
+ ## [7.1.4] - 09-20-2016
632
+
633
+ ### Fixed
634
+
635
+ - `where` clause with question mark parameter and array values only using the first element (see #1247 #1290)
636
+
637
+ ## [7.1.3] - 08-18-2016
638
+
639
+ ### Changed
640
+
641
+ - Default value for `enum` is `nil` instead of the first value. This is a **BREAKING** change but is being released as a patch because the original behavior was considered a bug. See [this pull request](https://github.com/neo4jrb/neo4j/pull/1270) (thanks to ProGM and andyweiss1982)
642
+
643
+ ## [7.1.2] - 08-01-2016
644
+
645
+ ### Fixed
646
+
647
+ - Fixed issue where the label wrapping cache would get stuck
648
+
649
+ ## [7.1.1] - 07-22-2016
650
+
651
+ ### Fixed
652
+
653
+ - `AssociationProxy` changed so that `pluck` can be used in rails/acivesupport 5 (thanks ProGM / see #1243)
654
+
655
+ ## [7.1.0] - 07-14-2016
656
+
657
+ ### Changed
658
+
659
+ - Gemspec dependency requirements were modified where ActiveModel, ActiveSupport, and Railties are concerned. The gem now requires >= 4.0, < 5.1.
660
+ - `ActiveModel::Serializers::Xml` is only included if supported if available.
661
+
662
+ ## [7.0.16] - 09-20-2016
663
+
664
+ ### Fixed
665
+
666
+ - `where` clause with question mark parameter and array values only using the first element (see #1247 #1290)
667
+
668
+ ## [7.0.15] - 08-18-2016
669
+
670
+ ### Changed
671
+
672
+ - Default value for `enum` is `nil` instead of the first value. This is a **BREAKING** change but is being released as a patch because the original behavior was considered a bug. See [this pull request](https://github.com/neo4jrb/neo4j/pull/1270) (thanks to ProGM and andyweiss1982)
673
+
674
+ ## [7.0.14] - 07-10-2016
675
+
676
+ ### Fixed
677
+
678
+ - Bug in setting `NEO4J_TYPE` (thanks bloomdido / see #1235)
679
+
680
+ ## [7.0.12] - 06-27-2016
681
+
682
+ ### Fixed
683
+
684
+ - Bug where models weren't being loaded correctly by label (thanks bloomdido / see #1220)
685
+
686
+ ## [7.0.11] - 06-09-2016
687
+
688
+ ### Fixed
689
+
690
+ - Fix dipendence from JSON when using outside of rails (thanks ProGM)
691
+
692
+ ## [7.0.10] - 06-07-2016
693
+
694
+ ### Fixed
695
+
696
+ - Calling `.create` on associations shouldn't involve extra queries (thanks for the report from rahulmeena13 / see #1216)
697
+
698
+ ## [7.0.9] - 05-30-2016
699
+
700
+ ### Fixed
701
+
702
+ - Fix to parens in Cypher query for `with_associations` for Neo4j 3.0 (thanks ProGM / see #1211)
703
+
704
+ ## [7.0.8] - 05-27-2016
705
+
706
+ ### Fixed
707
+
708
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
709
+
710
+ ## [7.0.7] - 05-26-2016
711
+
712
+ ### Fixed
713
+
714
+ - Allow models to use their superclass' scopes (forward-ported from 6.1.11 / thanks to veetow for the heads-up / see #1205)
715
+
716
+ ## [7.0.6] - 05-11-2016
717
+
718
+ ### Added
719
+
720
+ - Explination about why you can't have an index and a constraint at the same time
721
+
722
+ ## [7.0.5] - 05-06-2016
723
+
724
+ ### Fixed
725
+
726
+ - Added parens to delete_all query to support new required syntax in Neo4j 3.0
727
+
728
+ ## [7.0.4] - 05-06-2016
729
+
730
+ ### Fixed
731
+
732
+ - A bug/inconsistency between ActiveNode's class method `create` and instance `save` led to faulty validation of associations in some cases.
733
+
734
+ ## [7.0.3] - 04-28-2016
735
+
736
+ ### Fixed
737
+
738
+ - Added parens to queries to support new required syntax in Neo4j 3.0
739
+
740
+ ## [7.0.2] - 04-10-2016
741
+
742
+ ### Fixed
743
+
744
+ - Multiparameter Attributes for properties of type `Time` were failing due to a hack that should have been removed with `ActiveAttr`'s removal
745
+ - Rel creation factory was not using backticks around rel type during create action.
746
+
747
+ ## [7.0.1] - 03-22-2016
748
+
749
+ ### Fixed
750
+
751
+ - Conversion of string values from form inputs (thanks to jbhannah / see #1163)
752
+
753
+ ## [7.0.0] - 03-18-2016
754
+
755
+ No changes from `rc.7`
756
+
757
+ ## [7.0.0.rc.7] - 03-16-2016
758
+
759
+ ### Changed
760
+
761
+ - `with_associations` now generates separate `OPTIONAL MATCH` clauses, separated by `WITH` clauses and is preceeded by a `WITH` clause.
762
+
763
+ ## [7.0.0.rc.6] - 03-16-2016
764
+
765
+ ### Fixed
766
+
767
+ - Question mark methods (`node.foo?`) broke when ActiveAttr was removed
768
+
769
+ ## [7.0.0.rc.5] - 03-14-2016
770
+
771
+ ### Fixed
772
+
773
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
774
+
775
+ ## [7.0.0.rc.4] - 03-11-2016
776
+
777
+ ### Fixed
778
+
779
+ - Catching errors for 404s in Rails (thanks ProGm, see #1153)
780
+
781
+ ## [7.0.0.rc.3] - 03-08-2016
782
+
783
+ ### Fixed
784
+
785
+ - Allow for array values when querying for enums (i.e. `where(enum_field: [:value1, :value2])`) (see #1150)
786
+
787
+ ## [7.0.0.rc.2] - 03-08-2016
788
+
789
+ ### Fixed
790
+
791
+ - Issue where creating relationships via `has_one` association created two relationships (forward ported from 6.0.7 / 6.1.9)
792
+
793
+ ## [7.0.0.rc.1] - 03-08-2016
794
+
795
+ ### Changed
796
+
797
+ - All explicit dependencies on `ActiveAttr` code that was not removed outright can now be found in the `Neo4j::Shared` namespace.
798
+ - All type conversion uses Neo4j.rb-owned converters in the `Neo4j::Shared::TypeConverters` namespace. This is of particular importance where `Boolean` is concerned. Where explicitly using `ActiveAttr::Typecasting::Boolean`, use `Neo4j::Shared::Boolean`.
799
+ - `Neo4j::Shared::TypeConverters.converters` was replaced with `Neo4j::Shared::TypeConverters::CONVERTERS`.
800
+ - Error classes refactor: All errors now inherits from `Neo4j::Error`. All specific `InvalidParameterError` were replaced with a more generic `Neo4j::InvalidParameterError`.
801
+ - When calling `Node.find(...)` with missing ids, `Neo4j::RecordNotFound` now returns a better error message and some informations about the query.
802
+
803
+ #### Internal
804
+
805
+ - Ran transpec and fixed error warning (thanks brucek / #1132)
806
+
807
+ ### Added
808
+
809
+ - A number of modules and unit tests were moved directly from the ActiveAttr gem, which is no longer being maintained.
810
+ - `ActiveNode` models now respond to `update_all` (thanks ProGM / #1113)
811
+ - Association chains now respond to `update_all` and `update_all_rels` (thanks ProGM / #1113)
812
+ - Rails will now rescue all `Neo4j::RecordNotFound` errors with a 404 status code by default
813
+ - A clone of [ActiveRecord::Enum](http://edgeapi.rubyonrails.org/classes/ActiveRecord/Enum.html) API. See docs for details. (thanks ProGM / #1129)
814
+ - Added #branch method to `QueryProxy` to allow for easy branching of matches in association chains (thanks ProGM / #1147 / #1143)
815
+ - The `.match` method on ActiveNode model class has changed to allow a second argument which takes `on_create`, `on_match`, and `set` keys. These allow you to define attribute values for the Cypher `MERGE` in the different cases (thanks leviwilson / see #1123)
816
+
817
+ ### Removed
818
+
819
+ - All external [ActiveAttr](https://github.com/cgriego/active_attr) dependencies.
820
+ - All `call` class methods from Type Converters. Use `to_ruby` instead.
821
+ - `Neo4j::ActiveNode::Labels::InvalidQueryError`, since it's unused.
822
+
823
+ ## [6.1.12] - 05-27-2016
824
+
825
+ ### Fixed
826
+
827
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
828
+
829
+ ## [6.1.11] - 05-25-2016
830
+
831
+ ### Fixed
832
+
833
+ - Allow models to use their superclass' scopes (thanks to veetow for the heads-up / see #1205)
834
+
835
+ ## [6.1.10] - 03-14-2016
836
+
837
+ ### Fixed
838
+
839
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
840
+
841
+ ## [6.1.9] - 2016-03-08
842
+
843
+ ### Fixed
844
+
845
+ - Issue where creating relationships via `has_one` association created two relationships (forward ported from 6.0.7)
846
+
847
+ ## [6.1.8] - 2016-03-02
848
+
849
+ ### Fixed
850
+
851
+ - The `@attributes` hash of the first node of each class returned from the database would have have the wrong id property key. This did not appear to cause any problems accessing the value and would be normal for subsequent saves of the affected node as well as all other nodes.
852
+
853
+ ## [6.1.7] - 2016-02-16
854
+
855
+ ### Fixed
856
+
857
+ - Bug related to creating subclassed nodes alongside rels in ActiveRel. (#1135. Thanks, brucek!)
858
+
859
+ ## [6.1.6] - 2016-02-03
860
+
861
+ ### Added
862
+
863
+ - `wait_for_connection` configuration variable allows you to tell the gem to wait for up to 60 seconds for Neo4j to be available. This is useful in environments such as Docker Compose
864
+
865
+ ## [6.1.5] - 2016-01-28
866
+
867
+ ### Fixed
868
+
869
+ - Calls to `.find`/`.find_by_id`/`.find_by_ids` now respect scopes and associations
870
+
871
+ ## [6.1.4] - 2016-01-26
872
+
873
+ ### Fixed
874
+
875
+ - Model generators now respect module namespaces (thanks to michaeldelorenzo in #1119)
876
+
877
+ ## [6.1.3] - 2016-01-20
878
+
879
+ ### Fixed
880
+
881
+ - Issue where `ActiveRel.create` would not work with `RelatedNode` (`rel.from_node`) instances (Thanks, djvs #1107)
882
+
883
+ ## [6.1.2] - 2016-01-19
884
+
885
+ ### Fixed
886
+
887
+ - Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
888
+
889
+ ## [6.1.1] - 2016-01-01
890
+
891
+ ### Fixed
892
+
893
+ - Fixed version requirement for `neo4j-core` in gemspec
894
+
895
+ ## [6.1.0] - 2016-01-01
896
+
897
+ ### Changed
898
+
899
+ - When a `model_class` is specified on an association which is not an ActiveNode model, an error is raised
900
+ - The `model_class` option on associations can no longer be a `Class` constant (should be a String, Symbol, nil, false, or an Array of Symbols/Strings)
901
+ - The `rel_class` option on associations can no longer be a `Class` constant (should be a String, Symbol, or nil)
902
+ - The `from_class` and `to_class` arguments can no longer be a `Class` constant (should be a String, Symbol, :any, or false)
903
+ - ActiveNode and ActiveRel models can now be marshaled (thanks to jhoffner for the suggestion in #1093)
904
+
905
+ ### Fixed
906
+
907
+ - Inheritance of properties in ActiveRel is fixed (see #1080)
908
+
909
+ ### Added
910
+
911
+ - `config/neo4j.yml` now renders with an ERB step (thanks to mrstif via #1060)
912
+ - `#increment`, `#increment!` and `#concurrent_increment!` methods added to instances of ActiveNode and ActiveRel (thanks to ProGM in #1074)
913
+
914
+ ## [6.0.9] - 05-27-2016
915
+
916
+ ### Fixed
917
+
918
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
919
+
920
+ ## [6.0.8] - 03-14-2016
921
+
922
+ ### Fixed
923
+
924
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
925
+
926
+ ## [6.0.7] - 03-08-2016
927
+
928
+ ### Fixed
929
+
930
+ - Issue where creating relationships via `has_one` association created two relationships
931
+
932
+ ## [6.0.6] - 01-20-2016
933
+
934
+ ### Fixed
935
+
936
+ - Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
937
+
938
+ ## [6.0.5] - 12-29-2015
939
+
940
+ ### Fixed
941
+
942
+ - If a property and a scope have the same name, a "Stack level too deep" error occurs. Fixed by removing the instance method which scopes define. Could break something, but I very much doubt anybody is using this, and if they are it's likely a bug (#1088)
943
+
944
+ ## [6.0.4] - 12-23-2015
945
+
946
+ ### Fixed
947
+
948
+ - When a `model_class` is specified on an association which is not an ActiveNode model, an error is raised
949
+
950
+ ## [6.0.3] - 12-18-2015
951
+
952
+ ### Fixed
953
+
954
+ - Fixed issue where find_or_create was prioritizing property`s default value rather than what was being passed in (Thanks to brucek via #1071)
955
+
956
+ ## [6.0.2] - 12-16-2015
957
+
958
+ ### Fixed
959
+
960
+ - Fixed issue where association setting can't be set on initialize via #new (#1065)
961
+
962
+ ## [6.0.1] - 11-27-2015
963
+
964
+ ### Fixed
965
+
966
+ - `#with_associations` should use multiple `OPTIONAL MATCH` clauses instead of one so that matches are independent (behavior changed in Neo4j 2.3.0) (forward ported from 5.2.15)
967
+
968
+ ## [6.0.0] - 11-24-2015
969
+
970
+ ### Fixed
971
+
972
+ - Refactor unpersisted association logic to store objects directly on the object rather than the association proxy since different association proxies may be created at different times (see #1043)
973
+
974
+ ## [6.0.0.rc.4] - 11-19-2015
975
+
976
+ ### Fixed
977
+
978
+ - Following a '#with' with a '#count' no longer causes issues with variables specified twice
979
+
980
+ ## [6.0.0.rc.3] - 11-18-2015
981
+
982
+ ### Fixed
983
+
984
+ - Removed extra `MATCH` which occurs from `proxy_as` calls
985
+
986
+ ## [6.0.0.rc.2] - 11-17-2015
987
+
988
+ ### Changed
989
+
990
+ - `QueryProxy#<<` and `#create`, when `rel_class` option is set, will use `RelClass.create!` instead of `create` to alert the user of failed rel creations.
991
+
992
+ ## [6.0.0.rc.1] - 11-13-2015
993
+
994
+ This release contains no changes since the last alpha. Below are all modifications introduced in alpha releases.
995
+
996
+ ### Changed
997
+
998
+ - `_classname` property has been completely removed, officially dropping support for Neo4j < 2.1.5.
999
+ - `ActiveRel#creates_unique` and the `:unique` Association option take arguments to control how the query is built. See https://github.com/neo4jrb/neo4j/pull/1038.
1000
+ - `#<<` and `#create` methods on associations now create with the `rel_class` when available so that validations/callbacks/defaults are all used as expected
1001
+ - Allow calling of `#method=` methods via model `new` method `Hash` argument
1002
+ - Remove uniqueness validation for `id_property` because we already have Neo4j constraints
1003
+ - Improved eager loading when no with_associations is specified (see #905)
1004
+ - Change size and length so that they match expected Ruby / ActiveRecord behavior (see http://stackoverflow.com/questions/6083219/activerecord-size-vs-count and #875)
1005
+ - Refactoring around indexing and constraints in `Neo4j::ActiveNode`. The public interfaces are unchanged.
1006
+ - `Neo4j::Shared::DeclaredPropertyManager` was renamed `Neo4j::Shared::DeclaredProperties`. All methods referencing the old name were updated to reflect this.
1007
+ - Methods that were using `Neo4j::Session#on_session_available` were updated to reflect the upstream change to `on_next_session_available`.
1008
+ - `rel_where` will now use ActiveRel classes for type conversion, when possible.
1009
+ - Converters will look for a `converted?` method to determine whether an object is of the appropriate type for the database. This allows converters to be responsible for multiple types, if required.
1010
+ - Removed the ability to set both an exact index and unique constraint on the same property in a model. Unique constraints also provide exact indexes.
1011
+ - Deprecated all methods in ActiveRel's Query module except for those that allow finding by id.
1012
+ - Return `true` on successful `#save!` calls (Thanks to jmdeldin)
1013
+
1014
+ ### Added
1015
+
1016
+ - Optional three-argument signature for `ActiveRel#create` and `#create!`, just like `initialize`.
1017
+ - Alternate `ActiveRel` init syntax: `RelClass.new(from_node, to_node, args)`. This is optional, so giving a single hash with props with or without nodes is still possible.
1018
+ - `ActiveRel` `create` actions can now handle unpersisted nodes.
1019
+ - `rel_order` method for association chaining
1020
+ - Support `config/neo4j.yaml`
1021
+ - Look for ENV variables for Neo4j URL / path for Rails apps
1022
+ - New classes for schema operations, predictably called `Neo4j::Schema::Operation` and subclasses `UniqueConstraintOperation` and `ExactIndexOperation`. These provide methods to aid in the additional, removal, and presence checking of indexes and constraints.
1023
+ - A few methods were added to `Neo4j::Shared::DeclaredProperties` to make it easier to work with. In particular, `[key]` acts as a shortcut for `DeclaredProperties#registered_properties`.
1024
+ - Type Converters were added for String, Integer, Fixnum, BigDecimal, and Boolean to provide type conversion for these objects in QueryProxy.
1025
+ - Support for Array arguments to ActiveRel's `from_class` and `to_class`.
1026
+
1027
+ ### Fixed
1028
+
1029
+ - Regression RE: properties being overwritten with their defaults on save in alpha.10.
1030
+ - Long properties in `ActiveNode`/`ActiveRel` `#inspect` are truncated
1031
+ - Property defaults are set initially when an instance of a model is loaded, then checked again before save to ensure `valid?` works.
1032
+ - `QueryProxy` was not converting Boolean properties correctly
1033
+ - Certain actions that were intended as once-in-the-app's-lifetime events, notably schema operations, will only occur immediately upon the first session's establishment.
1034
+ - Context now set for Model.all QueryProxy so that logs can reflect that it wasn't just a raw Cypher query
1035
+
1036
+ ### Removed
1037
+
1038
+ - Railtie was removing username/password and putting them into the session options. This has been unneccessary in `neo4j-core` for a while now
1039
+
1040
+ ## [6.0.0.alpha.12] - 11-5-2015
1041
+
1042
+ ### Changed
1043
+ - `_classname` property has been completely removed, officially dropping support for Neo4j < 2.1.5.
1044
+ - `ActiveRel#creates_unique` and the `:unique` Association option take arguments to control how the query is built. See https://github.com/neo4jrb/neo4j/pull/1038.
1045
+
1046
+ ### Added
1047
+ - Optional three-argument signature for `ActiveRel#create` and `#create!`, just like `initialize`.
1048
+
1049
+ ## [6.0.0.alpha.11] - 11-3-2015
1050
+
1051
+ ### Fixed
1052
+ - Regression RE: properties being overwritten with their defaults on save in alpha.10.
1053
+
1054
+ ### Changed
1055
+ - `#<<` and `#create` methods on associations now create with the `rel_class` when available so that validations/callbacks/defaults are all used as expected
1056
+ - Allow calling of `#method=` methods via model `new` method `Hash` argument
1057
+
1058
+ ### Added
1059
+ - Alternate `ActiveRel` init syntax: `RelClass.new(from_node, to_node, args)`. This is optional, so giving a single hash with props with or without nodes is still possible.
1060
+
1061
+ ## [6.0.0.alpha.10] - 11-2-2015
1062
+
1063
+ ### Fixed
1064
+ - Long properties in `ActiveNode`/`ActiveRel` `#inspect` are truncated
1065
+ - Property defaults are set initially when an instance of a model is loaded, then checked again before save to ensure `valid?` works.
1066
+
1067
+ ### Added
1068
+ - `ActiveRel` `create` actions can now handle unpersisted nodes.
1069
+
1070
+ ## [6.0.0.alpha.9] - 10-27-2015
1071
+
1072
+ ### Fixed
1073
+ - `uninitialized constant Neo4j::Core::CypherSession` error
1074
+
1075
+ ## [6.0.0.alpha.8] - 10-19-2015
1076
+
1077
+ ### Added
1078
+
1079
+ - `rel_order` method for association chaining
1080
+
1081
+ ## [6.0.0.alpha.7] - 10-19-2015
1082
+
1083
+ ### Changed
1084
+
1085
+ - Remove uniqueness validation for `id_property` because we already have Neo4j constraints
1086
+
1087
+ ### Added
1088
+
1089
+ - Support `config/neo4j.yaml`
1090
+
1091
+ ## [6.0.0.alpha.6] - 10-18-2015
1092
+
1093
+ ### Changed
1094
+
1095
+ - Improved eager loading when no with_associations is specified (see #905)
1096
+
1097
+ ## [6.0.0.alpha.5] - 10-18-2015
1098
+
1099
+ ### Changed
1100
+
1101
+ - Change size and length so that they match expected Ruby / ActiveRecord behavior (see http://stackoverflow.com/questions/6083219/activerecord-size-vs-count and #875)
1102
+
1103
+ ## [6.0.0.alpha.4] - 10-17-2015
1104
+
1105
+ ### Fixed
1106
+
1107
+ - `QueryProxy` was not converting Boolean properties correctly
1108
+
1109
+ ## [6.0.0.alpha.3] - 10-14-2015
1110
+
1111
+ ### Removed
1112
+
1113
+ - Railtie was removing username/password and putting them into the session options. This has been unneccessary in `neo4j-core` for a while now
1114
+
1115
+ ## [6.0.0.alpha.2] - 10-14-2015
1116
+
1117
+ ### Added
1118
+
1119
+ - Look for ENV variables for Neo4j URL / path for Rails apps
1120
+
1121
+ ## [6.0.0.alpha.1] - 10-12-2015
1122
+
1123
+ ### Changed
1124
+
1125
+ - Refactoring around indexing and constraints in `Neo4j::ActiveNode`. The public interfaces are unchanged.
1126
+ - `Neo4j::Shared::DeclaredPropertyManager` was renamed `Neo4j::Shared::DeclaredProperties`. All methods referencing the old name were updated to reflect this.
1127
+ - Methods that were using `Neo4j::Session#on_session_available` were updated to reflect the upstream change to `on_next_session_available`.
1128
+ - `rel_where` will now use ActiveRel classes for type conversion, when possible.
1129
+ - Converters will look for a `converted?` method to determine whether an object is of the appropriate type for the database. This allows converters to be responsible for multiple types, if required.
1130
+ - Removed the ability to set both an exact index and unique constraint on the same property in a model. Unique constraints also provide exact indexes.
1131
+ - Deprecated all methods in ActiveRel's Query module except for those that allow finding by id.
1132
+ - Return `true` on successful `#save!` calls (Thanks to jmdeldin)
1133
+
1134
+ ### Added
1135
+
1136
+ - New classes for schema operations, predictably called `Neo4j::Schema::Operation` and subclasses `UniqueConstraintOperation` and `ExactIndexOperation`. These provide methods to aid in the additional, removal, and presence checking of indexes and constraints.
1137
+ - A few methods were added to `Neo4j::Shared::DeclaredProperties` to make it easier to work with. In particular, `[key]` acts as a shortcut for `DeclaredProperties#registered_properties`.
1138
+ - Type Converters were added for String, Integer, Fixnum, BigDecimal, and Boolean to provide type conversion for these objects in QueryProxy.
1139
+ - Support for Array arguments to ActiveRel's `from_class` and `to_class`.
1140
+
1141
+ ### Fixed
1142
+
1143
+ - Certain actions that were intended as once-in-the-app's-lifetime events, notably schema operations, will only occur immediately upon the first session's establishment.
1144
+ - Context now set for Model.all QueryProxy so that logs can reflect that it wasn't just a raw Cypher query
1145
+
1146
+ ## [5.2.15] - 11-27-2015
1147
+
1148
+ ### Fixed
1149
+
1150
+ - `#with_associations` should use multiple `OPTIONAL MATCH` clauses instead of one so that matches are independent (behavior changed in Neo4j 2.3.0)
1151
+
1152
+ ## [5.2.13] - 10-26-2015
1153
+
1154
+ ### Fixed
1155
+ - Fixed `#after_initialize` and `#after_find` callbacks.
1156
+ - The `#touch` method should to raise errors when unsuccessful and avoid `#attributes` for performance.
1157
+
1158
+ ## [5.2.12] - 10-25-2015
1159
+
1160
+ ### Fixed
1161
+ - Fix the `#touch` method for `ActiveNode` and `ActiveRel`
1162
+
1163
+ ## [5.2.11] - 10-18-2015
1164
+
1165
+ ### Fixed
1166
+ - Unable to give additional options as first argument to chained QueryProxy method
1167
+
1168
+ ## [5.2.10] - 10-14-2015
1169
+
1170
+ ### Fixed
1171
+ - `has_one` does not define `_id` methods if they are already defined. Also use `method_defined?` instead of `respond_to?` since it is at the class level
1172
+
1173
+ ## [5.2.9] - 09-30-2015
1174
+
1175
+ ### Fixed
1176
+ - Better error message for `ActiveRel` creation when from_node|to_node is not persisted
1177
+
1178
+ ## [5.2.8] - 09-30-2015
1179
+
1180
+ ### Fixed
1181
+ - Support `references` in model/scaffold generators
1182
+
1183
+ ## [5.2.7] - 09-25-2015
1184
+
1185
+ ### Fixed
1186
+ - Allow for association `model_class` to be prepended with double colons
1187
+
1188
+ ## [5.2.6] - 09-16-2015
1189
+
1190
+ ### Fixed
1191
+
1192
+ - Fixed issue where caching an association causes further queries on the association to return the cached result
1193
+
1194
+ ## [5.2.5] - 09-11-2015
1195
+
1196
+ ### Fixed
1197
+
1198
+ - Regression in last release caused properties to revert to default on update if not present in the properties for update
1199
+
1200
+ ## [5.2.4] - 09-11-2015
1201
+
1202
+ ### Fixed
1203
+ - Use `debug` log level for query logging
1204
+ - `updated_at` properties were not being added up `update` events, only updated.
1205
+ - Default values of Boolean properties were not being set when `default: false`
1206
+ - `props_for_update` was using String keys instead of Symbols, like `props_for_update`
1207
+ - `props_for_create` and `props_for_update` were not adding default property values to the hash.
1208
+ - ActiveNode's `merge` and `find_or_create` methods were not setting default values of declared properties when `ON CREATE` was triggered. The code now uses `props_for_create`.
1209
+
1210
+ ## [5.2.3] - 09-07-2015
1211
+
1212
+ Added bugfixes from 5.1.4 and 5.1.5 that were missed in earlier 5.2.x releases:
1213
+ - `AssociationProxy` now responds to `serializable_hash` so that `include` can be used in `render json` in Rails controllers
1214
+ - Fixed errors when trying to call `#{association}_ids=` on an unpersisted node with UUIDs or an array thereof.
1215
+ - Removed extra Cypher query to replace relationships when working with unpersisted nodes and association=.
1216
+ - Bug related to Rails reloading an app and returning nodes without first reinitializing models, resulting in CypherNodes.
1217
+
1218
+ ## [5.2.2] - 09-06-2015
1219
+
1220
+ ### Fixed
1221
+ - Fixed setting of association(_id|_ids) on .create
1222
+
1223
+ ## [5.2.1] - 09-04-2015
1224
+
1225
+ ### Fixed
1226
+ - Now possible to configure `record_timestamps` with rails `config`
1227
+
1228
+ ## [5.2.0] - 08-30-2015
1229
+
1230
+ ### Added
1231
+ - `props_for_persistence`, `props_for_create`, `props_for_update` instance methods for all nodes and rels. Each returns a hash with properties appropriate for sending to the database in a Cypher query to create or update an object.
1232
+ - Added `record_timestamps` configuration do default all `ActiveNode` and `ActiveRel` models to have `created_at` and `updated_at` timestamps (from #939, thanks @rebecca-eakins)
1233
+ - Added `timestamp_type` configuration to specify how timestamps should be stored (from #939, thanks @rebecca-eakins)
1234
+
1235
+ ### Changed
1236
+ - Methods related to basic node and rel persistence (`save`, `create_model`, `_create_node`, others) were refactored to make the processes simpler, clearer, and slightly faster.
1237
+ - Unit test directory structure was rearranged to mirror the `lib` directory.
1238
+
1239
+ ## [5.1.3] - 08-23-2015
1240
+
1241
+ ### Fixed
1242
+ - `has_one` associations are now properly cached (like `has_many` associations)
1243
+ - `QueryProxy` now responds to `#to_ary`. Fixes integration with ActiveModelSerializer gem
1244
+
1245
+
1246
+ ## [5.1.2] - 08-20-2015
1247
+
1248
+ ### Fixed
1249
+ - When association has `model_class` and `type: false` the association doesn't work (see: https://github.com/neo4jrb/neo4j/pull/930)
1250
+
1251
+ ## [5.1.1] - 08-19-2015
1252
+
1253
+ ### Fixed
1254
+ - Fixed a bug where the `Neo4j::Timestamps` mixin was not able to be included
1255
+
1256
+ ## [5.1.0.rc.3] - 08-17-2015
1257
+
1258
+ ### Fixed
1259
+ - Associations defined in ActiveNode models will delegate `unique?` to the model set in `rel_class`. This makes it easier for the rel class to act as the single source of truth for relationship behavior.
1260
+
1261
+ ### Added
1262
+ - ActiveRel: `#{related_node}_neo_id` instance methods to match CypherRelationship. Works with start/from and end/to.
1263
+ - ActiveRel: `type` now has a new alias, `rel_type`. You might recognize this from the `(Cypher|Embedded)Relationship` class and ActiveNode association option.
1264
+ - Contributing to the gem? Rejoice, for it now supports [Dotenv](https://github.com/bkeepers/dotenv).
1265
+
1266
+ ## [5.1.0.rc.2] - 08-16-2015
1267
+
1268
+ ### Added
1269
+ - Ability to use `#where_not` method on `ActiveNode` / `QueryProxy`
1270
+
1271
+ ## [5.1.0.rc.1] - 08-14-2015
1272
+
1273
+ ### Fixed
1274
+ - Added a `before_remove_const` method to clear cached models when Rails `reload!` is called. 5.0.1 included a workaround but this appears to cut to the core of the issue. See https://github.com/neo4jrb/neo4j/pull/855.
1275
+ - To prevent errors, changing an index to constraint or constraint to index will drop the existing index/constraint before adding the new.
1276
+ - Fixed `AssociationProxy#method_missing` so it properly raises errors.
1277
+
1278
+ ### Added
1279
+ - Added ability to view `model_class` from `Association` class for `rails_admin` Neo4j adapter
1280
+ - QueryProxy `where` will now look for declared properties matching hash keys. When found, it will send the value through that property's type converter if the type matches the property's unconverted state.
1281
+ - Improved handling of unpersisted nodes with associations. You can now use `<<` to create associations between unpersisted nodes. A `save` will cascade through unpersisted objects, creating nodes and rels along the way. See https://github.com/neo4jrb/neo4j/pull/871
1282
+ - Support formatted cypher queries for easy reading by humans via the `pretty_logged_cypher_queries` configuration variable
1283
+ - Ability to query for just IDs on associations
1284
+ - On `QueryProxy` objects you can now use an `:id` key in `where` and `find_by` methods to refer to the property from `id_property` (`uuid` by default)
1285
+ - Added `ActiveRel.creates_unique` and deprecated `ActiveRel.creates_unique_rel`
1286
+ - Added #inspect method to ActiveRel to show Cypher-style representation of from node, to node, and relationship type
1287
+ - Added `Neo4j::Timestamps`, `Neo4j::Timestamps::Created`, and `Neo4j::Timestamps::Updated` mixins to add timestamp properties to `ActiveNode` or `ActiveRel` classes
1288
+
1289
+ ### Changed
1290
+
1291
+ - Methods related to ActiveNode's IdProperty module were refactored to improve performance and simplify the API. Existing `default_properties` methods were reworked to reflect their use as-implemented: storage for a single default property, not multiple.
1292
+ - Implementation adjustments that improve node and rel initialization speed, particularly when loading large numbers of objects from the database.
1293
+
1294
+ ## [5.0.15] - 08-12-2015
1295
+
1296
+ ### Fixed
1297
+
1298
+ - `reload!` within Rails apps will work correctly. An earlier release included a workaround but this uses ActiveModel's system for clearing caches to provide a more thorough resolution.
1299
+
1300
+ ## [5.0.14] - 08-09-2015
1301
+
1302
+ ### Fixed
1303
+
1304
+ - Calling `all` on a QueryProxy chain would cause the currently set node identity within Cypher to be lost.
1305
+
1306
+ ## [5.0.13] - 08-07-2015
1307
+
1308
+ ### Fixed
1309
+ - Backport AssociationProxy#method_missing fix to raise errors on invalid methods
1310
+ - Fix the count issue on depth two associations (#881)
1311
+
1312
+ ## [5.0.12] - ?
1313
+
1314
+ ### Fixed
1315
+ - Break between associations so that potential `where` clauses get applied to the correct `(OPTIONAL )MATCH` clause
1316
+
1317
+ ### Fixed
1318
+ - Delegate `first` and `last` from `AssociationProxy` to `QueryProxy`
1319
+ - Fix `order` behavior for `first` and `last` in `QueryProxy`
1320
+
1321
+ ## [5.0.11] - ?
1322
+
1323
+ ### Fixed
1324
+ - Delegate `first` and `last` from `AssociationProxy` to `QueryProxy`
1325
+ - Fix `order` behavior for `first` and `last` in `QueryProxy`
1326
+
1327
+ ## [5.0.10] - 2015-07-31
1328
+
1329
+ ### Fixed
1330
+ - Fix what should have been a very obvious bug in `_active_record_destroyed_behavior` behavior
1331
+ - Add eager loading to QueryProxy so that it works in all expected places
1332
+
1333
+ ## [5.0.9] - 2015-07-29
1334
+
1335
+ ### Fixed
1336
+ - "NameError: uninitialized constant Class::Date" (https://github.com/neo4jrb/neo4j/issues/852)
1337
+
1338
+ ## [5.0.8] - 2015-07-26
1339
+
1340
+ ### Changed
1341
+ - Copied QueryClauseMethods doc from master
1342
+
1343
+ ## [5.0.7] - 2015-07-26
1344
+
1345
+ ### Changed
1346
+ - Copied `docs` folder from master because a lot of work had gone into the docs since 5.0.0 was released
1347
+
1348
+ ## [5.0.6] - 2015-07-22
1349
+
1350
+ ### Fixed
1351
+ - Fix query logging so that by default it only outputs to the user in the console and development server. Logger can be changed with `neo4j.config.logger` configuration option
1352
+
1353
+ ## [5.0.5] - 2015-07-19
1354
+
1355
+ ### Added
1356
+ - Added `log_cypher_queries` configuration option so that queries aren't on by default but that they can be controlled
1357
+
1358
+ ## [5.0.4] - 2015-07-17
1359
+
1360
+ ### Fixed
1361
+ - Fixed bug which caused `QueryProxy` context to repeat (showed up in query logging)
1362
+
1363
+ ## [5.0.3] - 2015-07-14
1364
+
1365
+ ### Changed
1366
+ - Moved `#with_associations` method from `AssociationProxy` to `QueryProxy` so that all `QueryProxy` chains can benefit from it.
1367
+ - Added `_active_record_destroyed_behavior` semi-hidden configuration variable so that behavior for `ActiveNode#destroyed?` and `ActiveRel#destroyed?` can be changed to upcoming 6.0.0 behavior (matching ActiveRecord) where the database is not accessed.
1368
+
1369
+ ## [5.0.2] - 2015-06-30
1370
+
1371
+ ### Fixed
1372
+ - Fix error when calling `#empty?` or `#blank?` on a query chain with on `order` specified
1373
+ - Make `#find_each` and `#find_in_batches` return the actual objects rather than the result objects
1374
+ - Query logging on console should be to STDOUT with `puts`. Using `Rails.logger` outputs to the file in the `log` directory
1375
+ - Modified queryproxy include? to accept a uuid instead of full node
1376
+
1377
+ ## [5.0.1] - 2015-06-23
1378
+
1379
+ ### Fixed
1380
+ - Longstanding bug that would prevent association changes (`<<` and ActiveRel.create) in Rails after `reload!` had been called, see https://github.com/neo4jrb/neo4j/pull/839
1381
+ - ActiveNode#inspect wasn't displaying the id_property
1382
+ - Default property values and magic typecasting not being inherited correctly
1383
+
1384
+ ### Changed
1385
+ - In the absense of a `model_class` key, associations defined in ActiveNode models will use `from_/to_class` defined in `rel_class` to find destination. (Huge thanks to @olance, #838)
1386
+ - ActiveRel's DSL was made a bit friendlier by making the `type`, `from_class` and `to_class` methods return their set values when called without arguments.
1387
+ - Reworked ActiveRel's wrapper to behave more like ActiveNode's, removing some duplicate methods and moving others to Neo4j::Shared, resulting in a big performance boost when returning large numbers of rels.
1388
+ - Updated gemspec to require neo4j-core 5.0.1+
1389
+
1390
+ ### Added
1391
+ - ActiveRel was given `find_or_create_by`, usable across single associations.
1392
+
1393
+ ## [5.0.0] - 2015-06-18
1394
+
1395
+ ### Fixed
1396
+ - Prevented `to_key` from requiring an extra DB query. (See https://github.com/neo4jrb/neo4j/pull/827)
1397
+
1398
+ ### Added
1399
+ - QueryProxy associations accept `labels: false` option to prevent generated Cypher from using labels.
1400
+
1401
+ ### Changed
1402
+ - Properties explicitly set to type `Time` will no longer be converted to `DateTime`.
1403
+
1404
+ ## [5.0.0.rc.3] - 2015-06-07
1405
+
1406
+ ### Fixed
1407
+ - Associations now allow `unique` option. Error handling is generalized to make this testable (Thanks to @olance, see #824)
1408
+
1409
+ ## [5.0.0.rc.2] - 2015-05-20
1410
+
1411
+ ### Changed
1412
+ - Set Ruby version requirement back to 1.9.3 because of problems with JRuby
1413
+
1414
+ ## [5.0.0.rc.1] - 2015-05-20
1415
+
1416
+ ### Changed
1417
+ - Ruby 2.0.0 now required (>= 2.2.1 is recommended)
1418
+ - All `ActiveNode` associations now require either a `type`, `origin`, or `rel_class` option. Only one is allowed
1419
+ - Defining associations will fail if unknown options are used (#796)
1420
+ - `Model#find` fails if no node found (`Model#find_by` available when `nil` result desired) (#799)
1421
+ - `#find_or_create` and `#merge` model class methods have been added
1422
+ - Ensuring that all model callbacks are happening within transactions
1423
+ - Major refactoring using `rubocop` with a lot of focus on speed improvements
1424
+ - Specifically when loading many nodes at once we've measured 3x speed improvements
1425
+
1426
+ ### Fixed
1427
+ - `#find` on `QueryProxy` objects now does a model `find` rather than an `Enumerable` find
1428
+ - Subclassed model classes now both create and query against it's ancestor's labels in addition to it's own (#690)
1429
+ - `#first` and `#last` now work property when precedend by an `#order` in a `QueryProxy` chain (#720)
1430
+ - `#count` when called after `#limit` will be performed within the bounds of limit specified
1431
+
1432
+ ### Added
1433
+ - Eager Loading is now supported! See: [http://neo4jrb.readthedocs.org/en/latest/ActiveNode.html#eager-loading]
1434
+ - Associations now return `AssociationProxy` objects (which are `Enumerable`) which have convenient `#inspect` methods for cleaner viewing in the Ruby console
1435
+ - `model_class` key on associations now supports an Array (#589)
1436
+ - When using `all` inside of a class method an argument for the node name can now be passed in (#737)
1437
+ - Query(Proxy) syntax of `where("foo = ?", val)` and `where("foo = {bar}", bar: val)` now supported (#675)
1438
+ - `module_handling` config option now available to control how class module namespaces translate to Neo4j labels (#753) (See: [http://neo4jrb.readthedocs.org/en/latest/Configuration.html])
1439
+ - `#id_property` method has new `constraints` option to disable automatic uuid constraint (#738/#736)
1440
+
1441
+ (There are probably other changes too!)
1442
+
1443
+ **Changes above this point should conform to [http://keepachangelog.com/]**
1444
+
1445
+ ## [4.1.2]
1446
+ - Fixes two bugs related to inheritance: one regarding ActiveRel classes and relationship types, the other regarding ActiveNode primary_key properties not being set when a model is loaded prior to Neo4j session.
1447
+
1448
+ ## [4.1.1]
1449
+ - Switches use of Fixnum to Integer to improve 32-bit support
1450
+
1451
+ ## [4.1.0]
1452
+ This release includes many performance fixes and new features. The most notable:
1453
+ - Huge stylist cleanup/refactoring by Brian on the entire gem by Brian armed with Rubocop. See http://neo4jrb.io/blog/2014/12/29/stay-out-of-trouble.html.
1454
+ - Every node create, update, and destroy is now wrapped in a transaction. See http://neo4jrb.io/blog/2015/01/06/transactions_everywhere.html.
1455
+ - New `dependent` options for associations: `:delete`, `:destroy`, `:delete_orphans`, `:destroy_orphans`. See http://neo4jrb.io/blog/2015/01/07/association_dependent_options.html.
1456
+ - New `unique: true` option for associations, `creates_unique_rel` class method for ActiveRel. Both of these will result in relationship creation Cypher using "CREATE UNIQUE" instead of "CREATE".
1457
+ - Fixed an n+1 query issue during node creation and update.
1458
+ - Dieter simplified some code related to frozen attributes. See https://github.com/neo4jrb/neo4j/pull/655.
1459
+ We now have a new website online at http://neo4jrb.io! Keep an eye on it for news and blogs related to this and other projects.
1460
+
1461
+ ## [4.0.0]
1462
+ - Change neo4j-core dependency from 3.1.0 to 4.0.0.
1463
+
1464
+ ## [4.0.0.rc.4]
1465
+ - _classname property is disabled by default for ActiveRel! It had been disabled for ActiveNode, this just evens the score.
1466
+ - Fixes a bug to create better `result` labels in Cypher.
1467
+ - Made the `delete_all` and `destroy_all` ActiveNode class methods consistent with their ActiveRecord counterparts. `destroy_all` previously performed its deletes in Cypher but it should have been returning nodes to Ruby and calling `destroy`. `delete_all` didn't exist at all.
1468
+
1469
+ ## [4.0.0.rc.3]
1470
+ Released minutes after rc.2 to catch one late addition!
1471
+ - Adds serialization support for QueryProxy.
1472
+
1473
+ ## [4.0.0.rc.2]
1474
+ This release builds on features introduced in the first RC. We are releasing this as another RC because the API may be tweaked before release.
1475
+ - New `proxy_as` for Core::Query to build QueryProxy chains onto Core::Query objects!
1476
+ - Using `proxy_as`, new `optional` method in QueryProxy to use the `OPTIONAL MATCH` Cypher function.
1477
+ - `match_to` and methods that depend on it now support arrays of nodes or IDs.
1478
+ - New `rels_to`/`all_rels_to` methods.
1479
+ - New `delete` and `destroy` methods in QueryProxy to easily remove relationships.
1480
+ - Serialized objects will include IDs by default.
1481
+
1482
+ ## [4.0.0.rc.1]
1483
+ This release introduces API changes that may be considered breaking under certain conditions. See See https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v4-Introduction.
1484
+ Please use https://github.com/neo4jrb/neo4j/issues for support regarding this update! You can also reach us on Twitter: @neo4jrb (Brian) and @subvertallmedia (Chris).
1485
+ - Default behavior changed: relationship types default to all caps, no prepending of "#". This behavior can be changed.
1486
+ - ActiveRel models no longer require explicit calling of `type`. When missing, the model will infer a type using the class name following the same rules used to determine automatic relationship types from ActiveNode models.
1487
+ - _classname properties will not be added automatically if you are using a version Neo4j >= 2.1.5. Instead, models are found using labels or relationship type. This is a potentially breaking change, particularly where ActiveRel is concerned. See the link at the beginning of this message for the steps required to work around this.
1488
+ - Query scopes are now chainable! Call `all` at the start of your scope or method to take advantage of this.
1489
+ - Changes required for Neo4j 2.2.
1490
+ - Support for custom typecasters.
1491
+ - New method `rel_where`, expanded behavior of `match_to` and `first_rel_to`
1492
+ - Implemented ActiveSupport load hooks.
1493
+ - Assorted performance improvements and refactoring.
1494
+
1495
+ ## [3.0.4]
1496
+ - Gemspec requires the latest neo4j-core.
1497
+ - Fixed a pagination bug — thanks, @chrisgogreen!
1498
+ - New QueryProxy methods `match_to` and `first_rel_to` are pretty cool.
1499
+ - include_root_in_json is now configurable through config.neo4j.include_root_in_json or Neo4j::Config[:include_root_in_json]. Also cool.
1500
+ - There's a new `delete_all` method for QueryProxy, too.
1501
+ - @codebeige removed the `include?` class method, which was smart.
1502
+ - Did I mention we won an award from Neo Tech? Check it out. https://github.com/neo4jrb/neo4j#welcome-to-neo4jrb
1503
+
1504
+ ## [3.0.3]
1505
+ - Gemspec has been updated to require neo4j-core 3.0.5
1506
+ - Added `find_in_batches`
1507
+ - Pagination has been updated to allow better ordering. Relaunch of neo4j-will_paginate as neo4j-will_paginate_redux is imminent!
1508
+ - Everything is better: `create`'s handling of blocks, better behavior from `count`, better ActiveRel from_class/to_class checks, better handling of rel_class strings, and more
1509
+ - Added a new find_or_create_by class method
1510
+
1511
+ Big thanks to new contributors Miha Rekar and Michael Perez! Also check out or Github issues, where we're discussing changes for 3.1.0. https://github.com/neo4jrb/neo4j/issues
1512
+
1513
+ ## [3.0.2]
1514
+ - "Model#all" now evaluates lazily, models no longer include Enumerable
1515
+ - Faster, more efficient uniqueness validations
1516
+ - Adjusted many common queries to use params, will improve performance
1517
+ - ActiveRel fixes: create uses Core Query instead of Core's `rels` method, `{ classname: #{_classname} }` no longer inserted into every query, find related node IDs without loading the nodes
1518
+ - Allow inheritance when checking model class on a relation (Andrew Jones)
1519
+ - Provided migrations will use Rake.original_dir instead of Rails.env to provide better compatibility with frameworks other than Rails
1520
+ - rel_class option in ActiveNode models will now accept string of a model name
1521
+ - Additional bug fixes
1522
+
1523
+ ## [3.0.1]
1524
+ - Removed reference to neo4j-core from Gemfile and set neo4j.gemspec to use neo4j-core ~>3.0.0
1525
+
1526
+ ## [3.0.0]
1527
+ No change from rc 4
1528
+
1529
+ ## [3.0.0.rc.4]
1530
+ - UUIDs are now automatically specified on models as neo IDs won't be reliable
1531
+ in future versions of neo4j
1532
+ - Migrations now supported (including built-in migrations to migrate UUIDs and
1533
+ insert the _classname property which is used for performance)
1534
+ - Association reflection
1535
+ - Model.find supports ids/node objects as well as arrays of id/node objects
1536
+ - rake tasks now get automatically included into rails app
1537
+
1538
+
1539
+ ## [3.0.0.rc.3]
1540
+ - thread safety improvements
1541
+ - scope and general refactoring
1542
+ - Added ability to create relationships on init (persisted on save)
1543
+
1544
+ ## [3.0.0.rc.2]
1545
+ - Use newer neo4j-core release
1546
+
1547
+ ## [3.0.0.rc.1]
1548
+ - Support for count, size, length, empty, blank? for has_many relationship
1549
+ - Support for rails logger of cypher queries in development
1550
+ - Support for distinct count
1551
+ - Optimized methods: https://github.com/andreasronge/neo4j/wiki/Optimized-Methods
1552
+ - Queries should respect mapped label names (#421)
1553
+ - Warn if no session is available
1554
+ - Fix broken == and equality (#424)
1555
+
1556
+ ## [3.0.0.alpha.11]
1557
+ - Bug fixes
1558
+
1559
+ ## [3.0.0.alpha.10]
1560
+ - ActiveRel support, see Wiki pages (chris #393)
1561
+
1562
+ ## [3.0.0.alpha.9]
1563
+ - Complete rewrite of the query api, see wiki page (#406, chris, brian)
1564
+ - Performance improvements (#382,#400, #402, chris)
1565
+ - idproperty - user defined primary keys (#396,#389)
1566
+ - Reimplementation of Neo4j::Config
1567
+ - Serialization of node properties (#381)
1568
+ - Better first,last syntax (#379)
1569
+
1570
+ ## [3.0.0.alpha.8]
1571
+ - Integration with new Query API from neo4j-core including:
1572
+ - - .query_as and #query_as methods to get queries from models (#366)
1573
+ - - .qq method for QuickQuery syntax ( https://github.com/andreasronge/neo4j/wiki/Neo4j-v3#quickquery-work-in-progress / #366)
1574
+ - Before and after callbacks on associations (#373)
1575
+ - .find / .all / .count changed to be more like ActiveRecord
1576
+ - .first / .last methods (#378)
1577
+ - .find_by / .find_by! (#375)
1578
+
1579
+ ## [3.0.0.alpha.7]
1580
+ - Bug fix uniqueness-validator (#356 from JohnKellyFerguson)
1581
+ - Many improvements, like update_attributes and validation while impl orm_adapter, Brian Underwood
1582
+ - Impl orm_adapter API for neo4j so it can be used from for example devise, Brian Underwood (#355)
1583
+ - Fix of inheritance of Neo4j::ActiveNode (#307)
1584
+ - Expose add_label, and remove_label (#335)
1585
+ - Fixed auto loading of classes bug, (#349)
1586
+ - Bumped neo4j-core, 3.0.0.alpha.16
1587
+
1588
+ ## [3.0.0.alpha.6]
1589
+ - Support for Heroku URLs, see wiki https://github.com/andreasronge/neo4j/wiki/Neo4j-v3 (#334)
1590
+
1591
+ ## [3.0.0.alpha.5]
1592
+ - Added allow session options via 'config.neo4j.session_options' so it can run on heroku (#333)
1593
+ - Relaxed Dependencies for Rails 4.1 (#332)
1594
+ - Using neo4j-core version 3.0.0.alpha.12
1595
+
1596
+ ## [3.0.0.alpha.4]
1597
+ - Implemented validates_uniqueness_of (#311)
1598
+ - Using neo4j-core version 3.0.0.alpha.11
1599
+
1600
+ ## [3.0.0.alpha.3]
1601
+ - Support for rails scaffolds
1602
+ - Support for created_at and updated_at (#305)
1603
+ - Support for ability to select a session to use per model (#299)
1604
+ - BugFix: updating a model should not clear out old properties (#296)
1605
+
1606
+ ## [3.0.0.alpha.2]
1607
+ - Support for both embedded (only JRuby) and server API (runs on MRI Ruby !)
1608
+ - Simple Rails app now work
1609
+ - Support for has_n and has_one method
1610
+ - ActiveModel support, callback, validation
1611
+ - Declared properties (via active_attr gem)
1612
+
1613
+ ## [2.3.0 / 2013-07-18]
1614
+ - Fix Issue with HA console when ruby-debug is loaded (#261, thekendalmiller)
1615
+ - Use 1.9 Neo4j
1616
+
1617
+ ## [2.2.4 / 2013-05-19]
1618
+ - get_or_create should return wrapped ruby nodes, alex-klepa, #241, #246
1619
+ - Make sure freeze does not have side effects, #235
1620
+ - Fix for carrierwave-neo4j (attribute_defaults), #235
1621
+
1622
+ ## [2.2.3 / 2012-12-28]
1623
+ - Support for HA cluster with neo4j 1.9.X, #228, #99, #223
1624
+ - Make sure the Identity map is cleared after an exception, #214
1625
+ - Relationship other_node should return wrapped node, #226
1626
+ - Automatically convert DateTimes to UTC, (neo4j-wrapper #7)
1627
+ - get_or_create should return a wrapped node (neo4j-wrapper #8)
1628
+ - Make it work with Neo4j 1.7.1 (neo4j-core, #19)
1629
+
1630
+ ## [2.2.2 - skipped]
1631
+
1632
+ ## [2.2.1 / 2012-12-18]
1633
+ - Fix for JRuby 1.7.1 and Equal #225
1634
+ - Fix for create nodes and relationship using Cypher (neo4j-core #17)
1635
+
1636
+ ## [2.2.0 / 2012-10-02]
1637
+ - Using neo4j-cypher gem (1.0.0)
1638
+ - Fix of neo4j-core configuration issue using boolean values #218
1639
+ - Fixed RSpec issue on JRuby 1.7.x #217
1640
+ - Aliased has_many to has_n, #183
1641
+
1642
+ ## [2.2.0.rc1 / 2012-09-21]
1643
+ - Use neo4j-core and neo4j-wrapper version 2.2.0.rc1
1644
+ - Use the neo4j-cypher gem
1645
+ - Better support for Orm Adapter, #212
1646
+ - Use Cypher query when finder method does not have a lucene index, #210
1647
+
1648
+ ## [2.0.1 / 2012-06-06]
1649
+ - Use neo4j-core and neo4j-wrapper version 2.0.1
1650
+
1651
+ ## [2.0.0 / 2012-05-07]
1652
+ (same as rc2)
1653
+
1654
+ ## [2.0.0.rc2 / 2012-05-04]
1655
+ - Enable Identity Map by default
1656
+ - Added versioning for Neo4j::Core
1657
+
1658
+ ## [2.0.0.rc1 / 2012-05-03]
1659
+ - Fix of rake task to upgrade to 2.0
1660
+ - Various Cypher DSL improvements, core(#3,#4,#5), #196
1661
+ - Added Neo4j::VERSION
1662
+
1663
+ ## [2.0.0.alpha.9 / 2012-04-27]
1664
+ - Fix for rails scaffold generator
1665
+
1666
+ ## [2.0.0.alpha.8 / 2012-04-27]
1667
+ - Fix for "relationship to :all assigned twice for single instance" #178
1668
+ - Fix for callback fire more then once (=> performance increase) #172
1669
+ - Support for lucene search on array properties, #118
1670
+ - Support for creating unique entities (get_or_create) #143
1671
+ - Support for specifying has_n/has_one relationship with Strings instead of Class #160
1672
+ - Support for serializer of hash and arrays on properties #185
1673
+ - Fix for Neo4j::Rails::Relationship default property, #195
1674
+ - Added support for pagination, see the neo4j-will_paginate gem
1675
+ - Fixed Rails generators
1676
+ - Added Cypher DSL support for is_a?
1677
+ - Fix for "write_attribute persistes, contrary to AR convention" closes #182
1678
+
1679
+ ## [2.0.0.alpha.7 / 2012-04-19]
1680
+ - fix for Neo4j::Config bug - did not work from rails to set the db location, closes #191
1681
+ - has_n and has_one method generate class method returning the name of the relationship as a Symbol, closes #170
1682
+ - Raise exception if trying to index boolean property, closes #180
1683
+ - Made start_node= and end_node= protected closes 186
1684
+ - Support for things like @dungeon.monsters.dangerous { |m| m[:weapon?] == 'sword' } closes #181
1685
+
1686
+ ## [2.0.0.alpha.6 / 2012-04-15]
1687
+ - Complete rewrite and smaller change of API + lots of refactoring and better RSpecs
1688
+ - Moved code to the neo4j-core and neo4j-wrapper gems
1689
+ - Changed API - index properties using the Neo4j::Rails::Model (property :name, :index => :exact)
1690
+ - Changed API - rel_type always returns a Symbol
1691
+ - Changed API - #rels and #rel first parameter is always :outgoing, :incoming or :both
1692
+ - Cypher DSL support, see neo4j-core
1693
+ - Made the Lucene indexing more flexible
1694
+ - Renamed size methods to count since it does simply count all the relationships (e.g. Person.all.count)
1695
+ - Modularization - e.g. make it possible to create your own wrapper
1696
+ - Added builder method for has_one relationships (just like ActiveRecord build_best_friend)
1697
+
1698
+ ## [2.0.0.alpha.5 / 2012-03-27]
1699
+ - Fix for HA/cluster bug [#173]
1700
+ - Upgrade to neo4j-community jars 1.7.0.alpha.1
1701
+ - Fix for rails 3.2 [#131]
1702
+ - Fix for BatchInserter bug, [#139]
1703
+ - Added rake task for upgrading [#116]
1704
+ - Added scripts for upgrading database [#116]
1705
+
1706
+ ## [2.0.0.alpha.4 / 2012-01-17]
1707
+ - Fix node and rel enumerable for JRuby 1.9, Dmytrii Nagirniak
1708
+ - Remove the will_paginate and move it to a separate gem Dmytrii Nagirniak, [#129][#132]
1709
+ - Use type converter to determine how to handle multi-param attributes, Dmyitrii Nagirniak [#97]
1710
+ - Set default storage_path in Rails to db [#96]
1711
+ - Fix numeric Converter with nils and Float converter, Dmytrii Nagirniak
1712
+ - Fix Neo4j::Rails::Model.find incorrect behavior with negative numbers, Dmytrii Nagirniak [#101]
1713
+ - Allow to use symbols in batch inserter [#104]
1714
+ - Split neo4j-jars gem into three jars, community,advanced&enterprise
1715
+
1716
+ == 2.0.0.alpha.1 / 2012-01-11
1717
+ - Split JARS into a separate gem (neo4j-jars) [#115]
1718
+ - Changed prefix of relationships so that it allows having incoming relationships from different classes with different relationship names. Migration is needed to update an already existing database - see issue #116. [#117]
1719
+ - Fix for undefined method 'add_unpersited_outgoing_rel' [#111]
1720
+ - Fix for Rails models named Property [#108] (Vivek Prahlad)
1721
+
1722
+
1723
+ == 1.3.1 / 2011-12-14
1724
+ - Make all relationships visible in Rails callback (rspecs #87, Dmytrii Nagirniak) [#211]
1725
+ - Enable travis to build JRuby 1.9 (pull #87, Dmytrii Nagirniak) [#214]
1726
+ - Support for composite lucene queries with OR and NOT (pull #89, Deepak N)
1727
+ - Enforce the correct converter on a property type when the type is given (pull #86, Dmytrii Nagirniak)
1728
+ - Development: make it easier to run RSpecs and guard (pull #85, Dmytrii Nagirniak)
1729
+ - Added ability to disable observer (pull #84, Dmytrii Nagirniak)
1730
+ - Fixing multiple assignment of has_one assocaition (pull #83 Deepak N)
1731
+ - Accept association_id for has_one assocations (pull #82, Deepak N)
1732
+ - Upgrade to 1.6.M01 Neo4j java jars [#209]
1733
+ - Defer warning message 'Unknown outgoing relationship' (pull #81, Vivek Prahlad)
1734
+ - Added string converter, e.g. property :name, :type => String (pull #80, Dmytrii Nagirniak)
1735
+ - Added symbol converter e.g. property :status, :type => Symbol (pull #79, Dmytrii Nagirniak) [#205]
1736
+
1737
+ == 1.3.0 / 2011-12-06
1738
+ - Added neo4j-upgrade script to rename lucene index files and upgrade to 1.5 [#197]
1739
+ - Expose Neo4j::NodeMixin#index_types returning available indices (useful for Cypher queries) [#194]
1740
+ - The to_other method is now available also in the Neo4j::Rails API [#193]
1741
+ - Expose rel_type method for Neo4j::Rails::Relationship [#196]
1742
+ - Support for breadth and depth first traversals [#198]
1743
+ - Support for cypher query [#197]
1744
+ - Fix for rule node concurrency issue (pull #78, Vivek Prahlad)
1745
+ - Bugfix for the uniqueness validation for properties with quotes (pull #76, Vivek Prahlad)
1746
+ - More performance tweaks (pull #75, #77, Vivek Prahlad)
1747
+ - Fixing add_index for properties other than type string (pull #74, Deepak N)
1748
+ - Significant performance boost for creating large numbers of models in a transaction (pull #73, Vivek Prahlad)
1749
+ - Upgrade to neo4j 1.5 jars (pull #72, Vivek Prahlad)
1750
+ - Fix for assigning nil values to incoming has_one relation (pull #70, Deepak N)
1751
+ - Support for revert and fixes for Neo4j::Rails::Versioning (pull #71, Vivek Prahlad)
1752
+
1753
+ == 1.2.6 / 2011-11-02
1754
+ - Generators can now generate relationships as well [#195]
1755
+ - Better will_paginate support for Neo4j::Rails::Model [#194]
1756
+ - Fixing updated_at to be set only if model has changed (pull #68, Deepak N)
1757
+ - Bringing back changes removed during identiy map to fix bug [#190] (Deepak N)
1758
+ - Fixing updated_at to be set only if model has changed, using callbacks instead of overriding method for stamping time (Deepak N)
1759
+ - Added versioning support (pull #67) (Vivek Prahlad)
1760
+
1761
+ == 1.2.5 / 2011-10-21
1762
+ - Faster traversals by avoiding loading Ruby wrappers (new method 'raw' on traversals) [#189]
1763
+ - Support for IdentityMap [#188]
1764
+ - Improved performance in event handler (Vivek Prahlad)
1765
+ - Fixing issue with validates_presence_of validation (Vivek Prahlad)
1766
+ - Implemented compositions support on Neo4j::Rails::Relationship (Kalyan Akella)
1767
+ - Added after_initialize callback (Deepak N)
1768
+ - Fixed performance issues on node deleted (Vivek Prahlad)
1769
+ - Fixed a performance issue in the index_registry (Vivek Prahlad)
1770
+ - Fixed uniqueness validation for :case_sensitive => false (Vivek Prahlad)
1771
+ - Fixed update_attributes deleting relations when model is invalid (Deepak N)
1772
+ - Fixed timestamp rails generator (Marcio Toshio)
1773
+
1774
+ == 1.2.4 / 2011-10-07
1775
+ - Support for traversing with Neo4j::Node#eval_paths and setting uniqueness on traversals [#187]
1776
+ - Removed unnecessary node creation on database start up (class nodes attached to reference node) (Vivek Prahlad)
1777
+ - Safer multitenancy - automatically reset the reference node in thread local context after each request using rack middleware
1778
+ - Bugfixes for multitenancy (Deepak N and Vivek Prahlad)
1779
+
1780
+ == 1.2.3 / 2011-10-01
1781
+ - Multitenancy support by namespaced-indices & changeable reference node (Vivek Prahlad, pull 41)
1782
+ - Added a Neo4j::Rails::Model#columns which returns all defined properties [#186]
1783
+ - Fixed validation associated entities, parent model should be invalid if its nested model(s) is invalid (Vivek Prahlad)
1784
+ - Fixed property validation to read value before conversion as per active model conventions (Deepak N)
1785
+ - Fixed property_before_type_cast for loaded models (Deepak N)
1786
+ - Better support for nested models via ActionView field_for [#185]
1787
+ - BUG: fix for null pointer issue after delete_all on Neo4j::Rails::Model#has_n relationships (Vivek Prahlad)
1788
+ - BUG: init_on_create was not called when creating a new relationship via the << operator [#183]
1789
+
1790
+ == 1.2.2 / 2011-09-15
1791
+ - Added compositions support for rails mode (Deepak N)
1792
+ - Added support for nested transactions at the Rails model level (Vivek Prahlad)
1793
+ - Fixing issue where save for invalid entities puts them into an inconsistent state (Vivek Prahlad)
1794
+ - Fix for issue with save when validation fails (Vivek Prahlad)
1795
+ - Fix for accepts_nested_attributes_for when the associated entities are created before a new node (Vivek Prahlad)
1796
+ - Fix to allow has_one relationships to handle nil assignments in models (Vivek Prahlad)
1797
+ - Observers support for neo4j rails model using active model (Deepak N)
1798
+ - Override ActiveModel i18n_scope for neo4j (Deepak N)
1799
+ - Added finders similar to active record and mongoid (Deepak N)
1800
+ - Added find!, find_or_create_by and find_or_initialize_by methods, similar to active record finders (Deepak N)
1801
+
1802
+ == 1.2.1 / 2011-08-29
1803
+ - Fixed failing RSpecs for devise-neo4j gem - column_names method on neo4j orm adapter throws NoMethodError (thanks Deepak N)
1804
+
1805
+ == 1.2.0 / 2011-08-16
1806
+ - Upgrade to java library neo4j 1.4.1, see http://neo4j.rubyforge.org/guides/configuration.html
1807
+
1808
+ == 1.1.4 / 2011-08-10
1809
+ - Fixed dependency to will_paginate, locked to 3.0.pre4 (newly released 3.0.0 does not work yet with neo4j.rb)
1810
+
1811
+ == 1.1.3 / 2011-08-09
1812
+ - real recursive rule to the top class, subclasses with rules did not work (Frédéric Vanclef)
1813
+ - BUG: not able to create array properties on relationships (Pere Urbon)
1814
+ - BUG: lucene did not work if starting up neo4j in read only mode (like rails console when the rails is already running)
1815
+
1816
+ == 1.1.2 / 2011-06-08
1817
+ - Added configuration option 'enable_rules' to disable the _all relationships and custom rules [#176]
1818
+ - Added a #node method on the Neo4j::Node and Neo4j::NodeMixin. Works like the #rel method but returns the node instead. [#174]
1819
+ - Simplify creating relationship between two existing nodes [#175]
1820
+
1821
+ == 1.1.1 / 2011-05-26
1822
+ - Made neo4j compatible with rails 3.1.0.rc1 [#170]
1823
+ - Fix for neo4j-devise [#171]
1824
+ - BUG: Neo4j::GraphAlgo shortest path does raise exception if two nodes are not connected [#172]
1825
+
1826
+ == 1.1.0 / 2011-05-13
1827
+ - Support for embedding neo4j.rb by providing an already running db instance (#168)
1828
+ - Neo4j::Rails::Relationships should be ActiveModel compliant (#156)
1829
+ - Support for incoming relationships in Neo4j::Rails::Model (#157)
1830
+ - to_json method for models no tags √ resolved (#154)
1831
+ - Implement hash so that it will work with Sets (#160)
1832
+ - Modified the traverser to allow iterating over paths not just over end_nodes (#161)
1833
+ - Create method should take a block to initialize itself (#162)
1834
+ - Upgrade to 1.3 neo4j java library (#164)
1835
+ - Default `nodes' invocation for Algo path finders (#165)
1836
+ - Property and index class methods modified to take arbitrary number of symbols optionally followed by options hash (#166)
1837
+ - BUG: Setting property :system on Neo4j::Rails::Model should work (#163)
1838
+ - BUG: update_attributes should convert values according to Type (#155)
1839
+ - BUG: Neo4j::RelationshipMixin#relationship_type broken #(169)
1840
+ - BUG: Relationship.load(nil) == Relationship.load(0) (#167)
1841
+ - BUG: Full text search returns nil in rails model (#153)
1842
+
1843
+ ## [1.0.0 / 2011-03-02]
1844
+ - Complete rewrite of everything.
1845
+ - Replaced the lucene module with using the java neo4j-lucene integration instead
1846
+ - Lots of improvements of the API
1847
+ - Better ActiveModel/Rails integration
1848
+
1849
+ ## [0.4.4 / 2010-08-01]
1850
+ - Fixed bug on traversing when using the RelationshipMixin (#121)
1851
+ - BatchInserter and JRuby 1.6 - Fix iteration error with trying to modify in-place hash
1852
+
1853
+ ## [0.4.3 / 2010-04-10]
1854
+ - Fixed .gitignore - make sure that we do not include unnecessarily files like neo4j databases. Release 0.4.2 contained test data.
1855
+ - Added synchronize around Index.new so that two thread can't modify the same index at the same time.
1856
+
1857
+ ## [0.4.2 / 2010-04-08]
1858
+ - No index on properties for the initialize method bug (#116)
1859
+ - Tidy up Thread Synchronization in Lucene wrapper - lucene indexing performance improvement (#117)
1860
+ - Permission bug loading neo4j jar file (#118)
1861
+ - Spike: Make NodeMixin ActiveModel complient - experimental (#115)
1862
+
1863
+ ## [0.4.1 / 2010-03-11]
1864
+ - Migrations (#108)
1865
+ - BatchInserter (#111)
1866
+ - Neo4j::Relationship.new should take a hash of properties (#110)
1867
+ - Upgrade to neo4j-1.0 (#114)
1868
+ - Bigfix: has_one should replace old relationship (#106)
1869
+ - Bugfix: custom accessors for NodeMixin#update (#113)
1870
+ - Bugfix: Indexed properties problem on extented ruby classes critical "properties indexer" (#112)
1871
+
1872
+ ## [0.4.0 / 2010-02-06]
1873
+ - Performance improvements and Refactoring: Use and Extend Neo4j Java Classes (#97)
1874
+ - Support for Index and Declaration of Properties on Relationships (#91)
1875
+ - Upgrade to neo4j-1.0 rc (#100)
1876
+ - All internal properties should be prefix with a '_',0.4.0 (#105)
1877
+ - Generate relationship accessor methods for declared has_n and has_one relationships (#104)
1878
+ - New way of creating relationship - Neo4j::Relationship.new (#103)
1879
+ - Neo4j#init_node method should take one or more args (#98)
1880
+ - Namespaced relationships: has_one...from using the wrong has_n...to(#92)
1881
+ - Neo4j::NodeMixin and Neo4j::Node should allow a hash for initialization (#99)
1882
+
1883
+ ## [0.3.3 / 2009-11-25]
1884
+ - Support for a counter property on has_lists (#75)
1885
+ - Support for Cascade delete. On has_n, had_one and has_list (#81)
1886
+ - NodeMixin#all should work with inheritance - Child classes should have a relationship of their own. (#64)
1887
+ - Support for other lucene analyzer then StandardAnalyzer (#87)
1888
+ - NodeMixin initialize should accept block like docs (#82)
1889
+ - Add incoming relationship should work as expected: n1.relationships.incoming(:foo) << n2 (#80)
1890
+ - Delete node from a has_list relationship should work as expected (#79)
1891
+ - Improve stacktraces (#94)
1892
+ - Removed sideeffect of rspecs (#90)
1893
+ - Add debug method on NodeMixin to print it self (#88)
1894
+ - Removed to_a method (#73)
1895
+ - Upgrade to neo4j-1.0b10 (#95)
1896
+ - Upgrade to lucene 2.9.0 (#83)
1897
+ - Refactoring: RSpecs (#74)
1898
+ - Refactoring: aggregate each, renamed to property aggregator (#72)
1899
+ - BugFix: neo4j gem cannot be built from the source (#86)
1900
+ - BugFix: Neo4j::relationship should not raise Exception if there are no relationships (#78)
1901
+
1902
+ ## [0.3.2 / 2009-09-17]
1903
+ - Added support for aggregating nodes (#65)
1904
+ - Wrapped Neo4j GraphAlgo AllSimplePath (#70)
1905
+ - Added traversal with traversal position (#71)
1906
+ - Removed DynamicAccessors mixin, replaced by [] operator (#67)
1907
+ - Impl Neo4j.all_nodes (#69)
1908
+ - Upgrated Neo4j jar file to 1.0-b9
1909
+ - The Neo4j#relationship method now allows a filter parameter (#66)
1910
+ - Neo4j.rb now can read database not created by Neo4j.rb - does not require classname property (#63)
1911
+ - REST - added an "all" value for the depth traversal query parameter (#62)
1912
+ - REST - Performance improvments using the Rest Mixin (#60)
1913
+
1914
+ ## [0.3.1 / 2009-07-25]
1915
+ - Feature, extension - find path between given pair of nodes (#58)
1916
+ - Fix a messy exception on GET /nodes/UnknownClassName (#57)
1917
+ - Bug - exception on GET /nodes/classname/rel if rel is a has_one relationship (#56)
1918
+ - Bug: GET /nodes/classname missing out nodes with no properties (#55)
1919
+ - Bug: Lucene sorting caused exception if there were no documents (#54)
1920
+ - Bug: reindexer fails to connect nodes to the IndexNode (#53)
1921
+
1922
+ ## [0.3.0 / 2009-06-25]
1923
+ - Neo4j should track node changes
1924
+ - RESTful support for lucene queries, sorting and paging
1925
+ - RESTful support for Relationships
1926
+ - RESTful support for Node and properties
1927
+ - Experimental support for Master-Slave Replication via REST
1928
+ - RESTful Node representation should contain hyperlinks to relationships
1929
+ - Added some handy method like first and empty? on relationships
1930
+ - Use new neo4j: neo-1.0-b8
1931
+ - Add an event handler for create/delete nodes start/stop neo, update property/relationship
1932
+ - The NodeMixin should behave like a hash, added [] and []= methods
1933
+ - Support list topology - has_list and belongs_to_list Neo4j::NodeMixin Classmethods
1934
+ - Should be possible to add relationships without declaring them (Neo4j#relationships.outgoing(:friends) << node)
1935
+ - Neo4j extensions file structure, should be easy to create your own extensions
1936
+ - Rename relation to relationship (Neo4j::Relations => Neo4j::Relationships, DynamicRelation => Relationship) [data incompatible change]
1937
+ - Auto Transaction is now optional
1938
+ - Setting Float properties fails under JRuby1.2.0
1939
+ - Bug: Indexing relationships does not work
1940
+ - Make the ReferenceNode include Neo4j::NodeMixin
1941
+ - Added handy Neo4j class that simply includes the Neo4j::NodeMixin
1942
+ - Neo4j::IndexNode now holds references to all nodes (Neo4j.ref_node -> Neo4j::IndexNode -> ...)
1943
+
1944
+
1945
+ ## [0.2.1 / 2009-03-15]
1946
+ - Refactoring of lucene indexing of the node space (28)
1947
+ - Fixed bug on Neo4j::Nodemixin#property? (#22)
1948
+
1949
+
1950
+ ## [0.2.0 / 2009-01-20]
1951
+ - Impl. Neo4j::Node#traverse - enables traversal and filtering using TraversalPosition info (#17,#19)
1952
+ - Impl. traversal to any depth (#15)
1953
+ - Impl. traversal several relationships type at the same time (#16)
1954
+ - Fixed a Lucene timezone bug (#20)
1955
+ - Lots of refactoring of the neo4j.rb traversal code and RSpecs
1956
+
1957
+ ## [0.1.0 / 2008-12-18]
1958
+ - Property can now be of any type (and not only String, Fixnum, Float)
1959
+ - Indexing and Query with Date and DateTime
1960
+ - YARD documentation
1961
+ - Properties can be removed
1962
+ - A property can be set to nil (it will then be removed).
1963
+
1964
+ ## [0.0.7 / 2008-12-10]
1965
+ - Added method to_param and methods on the value object needed for Ruby on Rails
1966
+ - Impl. update from a value object/hash for a node
1967
+ - Impl. generation of value object classes/instances from a node.
1968
+ - Refactoring the Transaction handling (reuse PlaceboTransaction instances if possible)
1969
+ - Removed the need to start and stop neo. It will be done automatically when needed.
1970
+
1971
+
1972
+ ## [0.0.6 / 2008-12-03]
1973
+ - Removed the configuration from the Neo4j.start method. Now exist in Neo4j::Config and Lucene::Config.
1974
+ - Implemented sort_by method.
1975
+ - Lazy loading of search result. Execute the query and load the nodes only if needed.
1976
+ - Added support to use lucene query language, example: Person.find("name:foo AND age:42")
1977
+ - All test now uses RAM based lucene indexes.
1978
+
1979
+ ## [0.0.5 / 2008-11-17]
1980
+ - Supports keeping lucene index in memory instead of on disk
1981
+ - Added support for lucene full text search
1982
+ - Fixed so neo4j runs on JRuby 1.1.5
1983
+ - Implemented support for reindex all instances of a node class. This is needed if the lucene index is kept in memory or if the index is changed.
1984
+ - Added ReferenceNode. All nodes now have a relationship from this reference node.
1985
+ - Lots of refactoring
1986
+ - Added the IMDB example. It shows how to create a neo database, lucene queries and node traversals.
1987
+
1988
+ ## [0.0.4 / 2008-10-23]
1989
+ - First release to rubyforge