neo4j_legacy 7.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1357 -0
  3. data/CONTRIBUTORS +8 -0
  4. data/Gemfile +38 -0
  5. data/README.md +103 -0
  6. data/bin/neo4j-jars +33 -0
  7. data/bin/rake +17 -0
  8. data/config/locales/en.yml +5 -0
  9. data/config/neo4j/add_classnames.yml +1 -0
  10. data/config/neo4j/config.yml +35 -0
  11. data/lib/active_support/per_thread_registry.rb +1 -0
  12. data/lib/backports/action_controller/metal/strong_parameters.rb +672 -0
  13. data/lib/backports/active_model/forbidden_attributes_protection.rb +30 -0
  14. data/lib/backports/active_support/concern.rb +13 -0
  15. data/lib/backports/active_support/core_ext/module/attribute_accessors.rb +10 -0
  16. data/lib/backports/active_support/logger.rb +99 -0
  17. data/lib/backports/active_support/logger_silence.rb +27 -0
  18. data/lib/backports/active_support/logger_thread_safe_level.rb +32 -0
  19. data/lib/backports/active_support/per_thread_registry.rb +60 -0
  20. data/lib/backports.rb +4 -0
  21. data/lib/neo4j/active_node/callbacks.rb +8 -0
  22. data/lib/neo4j/active_node/dependent/association_methods.rb +48 -0
  23. data/lib/neo4j/active_node/dependent/query_proxy_methods.rb +50 -0
  24. data/lib/neo4j/active_node/dependent.rb +11 -0
  25. data/lib/neo4j/active_node/enum.rb +29 -0
  26. data/lib/neo4j/active_node/has_n/association/rel_factory.rb +61 -0
  27. data/lib/neo4j/active_node/has_n/association/rel_wrapper.rb +23 -0
  28. data/lib/neo4j/active_node/has_n/association.rb +280 -0
  29. data/lib/neo4j/active_node/has_n/association_cypher_methods.rb +108 -0
  30. data/lib/neo4j/active_node/has_n.rb +532 -0
  31. data/lib/neo4j/active_node/id_property/accessor.rb +62 -0
  32. data/lib/neo4j/active_node/id_property.rb +187 -0
  33. data/lib/neo4j/active_node/initialize.rb +21 -0
  34. data/lib/neo4j/active_node/labels/index.rb +87 -0
  35. data/lib/neo4j/active_node/labels/reloading.rb +21 -0
  36. data/lib/neo4j/active_node/labels.rb +198 -0
  37. data/lib/neo4j/active_node/node_wrapper.rb +52 -0
  38. data/lib/neo4j/active_node/orm_adapter.rb +82 -0
  39. data/lib/neo4j/active_node/persistence.rb +175 -0
  40. data/lib/neo4j/active_node/property.rb +60 -0
  41. data/lib/neo4j/active_node/query/query_proxy.rb +361 -0
  42. data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +61 -0
  43. data/lib/neo4j/active_node/query/query_proxy_enumerable.rb +90 -0
  44. data/lib/neo4j/active_node/query/query_proxy_find_in_batches.rb +19 -0
  45. data/lib/neo4j/active_node/query/query_proxy_link.rb +117 -0
  46. data/lib/neo4j/active_node/query/query_proxy_methods.rb +210 -0
  47. data/lib/neo4j/active_node/query/query_proxy_methods_of_mass_updating.rb +83 -0
  48. data/lib/neo4j/active_node/query.rb +76 -0
  49. data/lib/neo4j/active_node/query_methods.rb +65 -0
  50. data/lib/neo4j/active_node/reflection.rb +86 -0
  51. data/lib/neo4j/active_node/rels.rb +11 -0
  52. data/lib/neo4j/active_node/scope.rb +146 -0
  53. data/lib/neo4j/active_node/unpersisted.rb +48 -0
  54. data/lib/neo4j/active_node/validations.rb +59 -0
  55. data/lib/neo4j/active_node.rb +105 -0
  56. data/lib/neo4j/active_rel/callbacks.rb +15 -0
  57. data/lib/neo4j/active_rel/initialize.rb +28 -0
  58. data/lib/neo4j/active_rel/persistence/query_factory.rb +95 -0
  59. data/lib/neo4j/active_rel/persistence.rb +114 -0
  60. data/lib/neo4j/active_rel/property.rb +95 -0
  61. data/lib/neo4j/active_rel/query.rb +95 -0
  62. data/lib/neo4j/active_rel/rel_wrapper.rb +22 -0
  63. data/lib/neo4j/active_rel/related_node.rb +83 -0
  64. data/lib/neo4j/active_rel/types.rb +82 -0
  65. data/lib/neo4j/active_rel/validations.rb +8 -0
  66. data/lib/neo4j/active_rel.rb +67 -0
  67. data/lib/neo4j/class_arguments.rb +39 -0
  68. data/lib/neo4j/config.rb +124 -0
  69. data/lib/neo4j/core/query.rb +22 -0
  70. data/lib/neo4j/errors.rb +28 -0
  71. data/lib/neo4j/migration.rb +127 -0
  72. data/lib/neo4j/paginated.rb +27 -0
  73. data/lib/neo4j/railtie.rb +169 -0
  74. data/lib/neo4j/schema/operation.rb +91 -0
  75. data/lib/neo4j/shared/attributes.rb +220 -0
  76. data/lib/neo4j/shared/callbacks.rb +64 -0
  77. data/lib/neo4j/shared/cypher.rb +37 -0
  78. data/lib/neo4j/shared/declared_properties.rb +204 -0
  79. data/lib/neo4j/shared/declared_property/index.rb +37 -0
  80. data/lib/neo4j/shared/declared_property.rb +118 -0
  81. data/lib/neo4j/shared/enum.rb +148 -0
  82. data/lib/neo4j/shared/filtered_hash.rb +79 -0
  83. data/lib/neo4j/shared/identity.rb +28 -0
  84. data/lib/neo4j/shared/initialize.rb +28 -0
  85. data/lib/neo4j/shared/marshal.rb +23 -0
  86. data/lib/neo4j/shared/mass_assignment.rb +58 -0
  87. data/lib/neo4j/shared/permitted_attributes.rb +28 -0
  88. data/lib/neo4j/shared/persistence.rb +231 -0
  89. data/lib/neo4j/shared/property.rb +220 -0
  90. data/lib/neo4j/shared/query_factory.rb +101 -0
  91. data/lib/neo4j/shared/rel_type_converters.rb +43 -0
  92. data/lib/neo4j/shared/serialized_properties.rb +30 -0
  93. data/lib/neo4j/shared/type_converters.rb +418 -0
  94. data/lib/neo4j/shared/typecasted_attributes.rb +98 -0
  95. data/lib/neo4j/shared/typecaster.rb +53 -0
  96. data/lib/neo4j/shared/validations.rb +48 -0
  97. data/lib/neo4j/shared.rb +51 -0
  98. data/lib/neo4j/tasks/migration.rake +24 -0
  99. data/lib/neo4j/timestamps/created.rb +9 -0
  100. data/lib/neo4j/timestamps/updated.rb +9 -0
  101. data/lib/neo4j/timestamps.rb +11 -0
  102. data/lib/neo4j/type_converters.rb +7 -0
  103. data/lib/neo4j/version.rb +3 -0
  104. data/lib/neo4j/wrapper.rb +4 -0
  105. data/lib/neo4j.rb +96 -0
  106. data/lib/rails/generators/neo4j/model/model_generator.rb +86 -0
  107. data/lib/rails/generators/neo4j/model/templates/model.erb +15 -0
  108. data/lib/rails/generators/neo4j_generator.rb +67 -0
  109. data/neo4j.gemspec +43 -0
  110. metadata +389 -0
data/CHANGELOG.md ADDED
@@ -0,0 +1,1357 @@
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
+ ## [7.2.0] - 08-23-2016
7
+
8
+ ### Added
9
+
10
+ - Backporting #1245 to 7.x versions. It implements the [`ForbiddenAttributesProtection` API](http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html) from ActiveRecord.
11
+
12
+ ## [7.1.3] - 08-18-2016
13
+
14
+ ### Changed
15
+
16
+ - 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)
17
+
18
+ ## [7.1.2] - 08-01-2016
19
+
20
+ ### Fixed
21
+
22
+ - Fixed issue where the label wrapping cache would get stuck
23
+
24
+ ## [7.1.1] - 07-22-2016
25
+
26
+ ### Fixed
27
+
28
+ - `AssociationProxy` changed so that `pluck` can be used in rails/acivesupport 5 (thanks ProGM / see #1243)
29
+
30
+ ## [7.1.0] - 07-14-2016
31
+
32
+ ### Changed
33
+
34
+ - Gemspec dependency requirements were modified where ActiveModel, ActiveSupport, and Railties are concerned. The gem now requires >= 4.0, < 5.1.
35
+ - `ActiveModel::Serializers::Xml` is only included if supported if available.
36
+
37
+ ## [7.0.15] - 08-18-2016
38
+
39
+ ### Changed
40
+
41
+ - 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)
42
+
43
+ ## [7.0.14] - 07-10-2016
44
+
45
+ ### Fixed
46
+
47
+ - Bug in setting `NEO4J_TYPE` (thanks bloomdido / see #1235)
48
+
49
+ ## [7.0.12] - 06-27-2016
50
+
51
+ ### Fixed
52
+
53
+ - Bug where models weren't being loaded correctly by label (thanks bloomdido / see #1220)
54
+
55
+ ## [7.0.11] - 06-09-2016
56
+
57
+ ### Fixed
58
+
59
+ - Fix dipendence from JSON when using outside of rails (thanks ProGM)
60
+
61
+ ## [7.0.10] - 06-07-2016
62
+
63
+ ### Fixed
64
+
65
+ - Calling `.create` on associations shouldn't involve extra queries (thanks for the report from rahulmeena13 / see #1216)
66
+
67
+ ## [7.0.9] - 05-30-2016
68
+
69
+ ### Fixed
70
+
71
+ - Fix to parens in Cypher query for `with_associations` for Neo4j 3.0 (thanks ProGM / see #1211)
72
+
73
+ ## [7.0.8] - 05-27-2016
74
+
75
+ ### Fixed
76
+
77
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
78
+
79
+ ## [7.0.7] - 05-26-2016
80
+
81
+ ### Fixed
82
+
83
+ - Allow models to use their superclass' scopes (forward-ported from 6.1.11 / thanks to veetow for the heads-up / see #1205)
84
+
85
+ ## [7.0.6] - 05-11-2016
86
+
87
+ ### Added
88
+
89
+ - Explination about why you can't have an index and a constraint at the same time
90
+
91
+ ## [7.0.5] - 05-06-2016
92
+
93
+ ### Fixed
94
+
95
+ - Added parens to delete_all query to support new required syntax in Neo4j 3.0
96
+
97
+ ## [7.0.4] - 05-06-2016
98
+
99
+ ### Fixed
100
+
101
+ - A bug/inconsistency between ActiveNode's class method `create` and instance `save` led to faulty validation of associations in some cases.
102
+
103
+ ## [7.0.3] - 04-28-2016
104
+
105
+ ### Fixed
106
+
107
+ - Added parens to queries to support new required syntax in Neo4j 3.0
108
+
109
+ ## [7.0.2] - 04-10-2016
110
+
111
+ ### Fixed
112
+
113
+ - Multiparameter Attributes for properties of type `Time` were failing due to a hack that should have been removed with `ActiveAttr`'s removal
114
+ - Rel creation factory was not using backticks around rel type during create action.
115
+
116
+ ## [7.0.1] - 03-22-2016
117
+
118
+ ### Fixed
119
+
120
+ - Conversion of string values from form inputs (thanks to jbhannah / see #1163)
121
+
122
+ ## [7.0.0] - 03-18-2016
123
+
124
+ No changes from `rc.7`
125
+
126
+ ## [7.0.0.rc.7] - 03-16-2016
127
+ /
128
+ ### Changed
129
+
130
+ - `with_associations` now generates separate `OPTIONAL MATCH` clauses, separated by `WITH` clauses and is preceeded by a `WITH` clause.
131
+
132
+ ## [7.0.0.rc.6] - 03-16-2016
133
+
134
+ ### Fixed
135
+
136
+ - Question mark methods (`node.foo?`) broke when ActiveAttr was removed
137
+
138
+ ## [7.0.0.rc.5] - 03-14-2016
139
+
140
+ ### Fixed
141
+
142
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
143
+
144
+ ## [7.0.0.rc.4] - 03-11-2016
145
+
146
+ ### Fixed
147
+
148
+ - Catching errors for 404s in Rails (thanks ProGm, see #1153)
149
+
150
+ ## [7.0.0.rc.3] - 03-08-2016
151
+
152
+ ### Fixed
153
+
154
+ - Allow for array values when querying for enums (i.e. `where(enum_field: [:value1, :value2])`) (see #1150)
155
+
156
+ ## [7.0.0.rc.2] - 03-08-2016
157
+
158
+ ### Fixed
159
+
160
+ - Issue where creating relationships via `has_one` association created two relationships (forward ported from 6.0.7 / 6.1.9)
161
+
162
+ ## [7.0.0.rc.1] - 03-08-2016
163
+
164
+ ### Changed
165
+
166
+ - All explicit dependencies on `ActiveAttr` code that was not removed outright can now be found in the `Neo4j::Shared` namespace.
167
+ - 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`.
168
+ - `Neo4j::Shared::TypeConverters.converters` was replaced with `Neo4j::Shared::TypeConverters::CONVERTERS`.
169
+ - Error classes refactor: All errors now inherits from `Neo4j::Error`. All specific `InvalidParameterError` were replaced with a more generic `Neo4j::InvalidParameterError`.
170
+ - When calling `Node.find(...)` with missing ids, `Neo4j::RecordNotFound` now returns a better error message and some informations about the query.
171
+
172
+ #### Internal
173
+
174
+ - Ran transpec and fixed error warning (thanks brucek / #1132)
175
+
176
+ ### Added
177
+
178
+ - A number of modules and unit tests were moved directly from the ActiveAttr gem, which is no longer being maintained.
179
+ - `ActiveNode` models now respond to `update_all` (thanks ProGM / #1113)
180
+ - Association chains now respond to `update_all` and `update_all_rels` (thanks ProGM / #1113)
181
+ - Rails will now rescue all `Neo4j::RecordNotFound` errors with a 404 status code by default
182
+ - A clone of [ActiveRecord::Enum](http://edgeapi.rubyonrails.org/classes/ActiveRecord/Enum.html) API. See docs for details. (thanks ProGM / #1129)
183
+ - Added #branch method to `QueryProxy` to allow for easy branching of matches in association chains (thanks ProGM / #1147 / #1143)
184
+
185
+ ### Removed
186
+
187
+ - All external [ActiveAttr](https://github.com/cgriego/active_attr) dependencies.
188
+ - All `call` class methods from Type Converters. Use `to_ruby` instead.
189
+ - `Neo4j::ActiveNode::Labels::InvalidQueryError`, since it's unused.
190
+
191
+ ## [6.1.12] - 05-27-2016
192
+
193
+ ### Fixed
194
+
195
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
196
+
197
+ ## [6.1.11] - 05-25-2016
198
+
199
+ ### Fixed
200
+
201
+ - Allow models to use their superclass' scopes (thanks to veetow for the heads-up / see #1205)
202
+
203
+ ## [6.1.10] - 03-14-2016
204
+
205
+ ### Fixed
206
+
207
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
208
+
209
+ ## [6.1.9] - 2016-03-08
210
+
211
+ ### Fixed
212
+
213
+ - Issue where creating relationships via `has_one` association created two relationships (forward ported from 6.0.7)
214
+
215
+ ## [6.1.8] - 2016-03-02
216
+
217
+ ### Fixed
218
+
219
+ - 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.
220
+
221
+ ## [6.1.7] - 2016-02-16
222
+
223
+ ### Fixed
224
+
225
+ - Bug related to creating subclassed nodes alongside rels in ActiveRel. (#1135. Thanks, brucek!)
226
+
227
+ ## [6.1.6] - 2016-02-03
228
+
229
+ ### Added
230
+
231
+ - `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
232
+
233
+ ## [6.1.5] - 2016-01-28
234
+
235
+ ### Fixed
236
+
237
+ - Calls to `.find`/`.find_by_id`/`.find_by_ids` now respect scopes and associations
238
+
239
+ ## [6.1.4] - 2016-01-26
240
+
241
+ ### Fixed
242
+
243
+ - Model generators now respect module namespaces (thanks to michaeldelorenzo in #1119)
244
+
245
+ ## [6.1.3] - 2016-01-20
246
+
247
+ ### Fixed
248
+
249
+ - Issue where `ActiveRel.create` would not work with `RelatedNode` (`rel.from_node`) instances (Thanks, djvs #1107)
250
+
251
+ ## [6.1.2] - 2016-01-19
252
+
253
+ ### Fixed
254
+
255
+ - Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
256
+
257
+ ## [6.1.1] - 2016-01-01
258
+
259
+ ### Fixed
260
+
261
+ - Fixed version requirement for `neo4j-core` in gemspec
262
+
263
+ ## [6.1.0] - 2016-01-01
264
+
265
+ ### Changed
266
+
267
+ - When a `model_class` is specified on an association which is not an ActiveNode model, an error is raised
268
+ - 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)
269
+ - The `rel_class` option on associations can no longer be a `Class` constant (should be a String, Symbol, or nil)
270
+ - The `from_class` and `to_class` arguments can no longer be a `Class` constant (should be a String, Symbol, :any, or false)
271
+ - ActiveNode and ActiveRel models can now be marshaled (thanks to jhoffner for the suggestion in #1093)
272
+
273
+ ### Fixed
274
+
275
+ - Inheritance of properties in ActiveRel is fixed (see #1080)
276
+
277
+ ### Added
278
+
279
+ - `config/neo4j.yml` now renders with an ERB step (thanks to mrstif via #1060)
280
+ - `#increment`, `#increment!` and `#concurrent_increment!` methods added to instances of ActiveNode and ActiveRel (thanks to ProGM in #1074)
281
+
282
+ ## [6.0.9] - 05-27-2016
283
+
284
+ ### Fixed
285
+
286
+ - Fix to `find_in_batches` (thanks to ProGM / see #1208)
287
+
288
+ ## [6.0.8] - 03-14-2016
289
+
290
+ ### Fixed
291
+
292
+ - Fixed issue where backticks weren't being added to where clauses for `with_associations`
293
+
294
+ ## [6.0.7] - 03-08-2016
295
+
296
+ ### Fixed
297
+
298
+ - Issue where creating relationships via `has_one` association created two relationships
299
+
300
+ ## [6.0.6] - 01-20-2016
301
+
302
+ ### Fixed
303
+
304
+ - Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
305
+
306
+ ## [6.0.5] - 12-29-2015
307
+
308
+ ### Fixed
309
+
310
+ - 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)
311
+
312
+ ## [6.0.4] - 12-23-2015
313
+
314
+ ### Fixed
315
+
316
+ - When a `model_class` is specified on an association which is not an ActiveNode model, an error is raised
317
+
318
+ ## [6.0.3] - 12-18-2015
319
+
320
+ ### Fixed
321
+
322
+ - Fixed issue where find_or_create was prioritizing property`s default value rather than what was being passed in (Thanks to brucek via #1071)
323
+
324
+ ## [6.0.2] - 12-16-2015
325
+
326
+ ### Fixed
327
+
328
+ - Fixed issue where association setting can't be set on initialize via #new (#1065)
329
+
330
+ ## [6.0.1] - 11-27-2015
331
+
332
+ ### Fixed
333
+
334
+ - `#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)
335
+
336
+ ## [6.0.0] - 11-24-2015
337
+
338
+ ### Fixed
339
+
340
+ - 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)
341
+
342
+ ## [6.0.0.rc.4] - 11-19-2015
343
+
344
+ ### Fixed
345
+
346
+ - Following a '#with' with a '#count' no longer causes issues with variables specified twice
347
+
348
+ ## [6.0.0.rc.3] - 11-18-2015
349
+
350
+ ### Fixed
351
+
352
+ - Removed extra `MATCH` which occurs from `proxy_as` calls
353
+
354
+ ## [6.0.0.rc.2] - 11-17-2015
355
+
356
+ ### Changed
357
+
358
+ - `QueryProxy#<<` and `#create`, when `rel_class` option is set, will use `RelClass.create!` instead of `create` to alert the user of failed rel creations.
359
+
360
+ ## [6.0.0.rc.1] - 11-13-2015
361
+
362
+ This release contains no changes since the last alpha. Below are all modifications introduced in alpha releases.
363
+
364
+ ### Changed
365
+
366
+ - `_classname` property has been completely removed, officially dropping support for Neo4j < 2.1.5.
367
+ - `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.
368
+ - `#<<` and `#create` methods on associations now create with the `rel_class` when available so that validations/callbacks/defaults are all used as expected
369
+ - Allow calling of `#method=` methods via model `new` method `Hash` argument
370
+ - Remove uniqueness validation for `id_property` because we already have Neo4j constraints
371
+ - Improved eager loading when no with_associations is specified (see #905)
372
+ - Change size and length so that they match expected Ruby / ActiveRecord behavior (see http://stackoverflow.com/questions/6083219/activerecord-size-vs-count and #875)
373
+ - Refactoring around indexing and constraints in `Neo4j::ActiveNode`. The public interfaces are unchanged.
374
+ - `Neo4j::Shared::DeclaredPropertyManager` was renamed `Neo4j::Shared::DeclaredProperties`. All methods referencing the old name were updated to reflect this.
375
+ - Methods that were using `Neo4j::Session#on_session_available` were updated to reflect the upstream change to `on_next_session_available`.
376
+ - `rel_where` will now use ActiveRel classes for type conversion, when possible.
377
+ - 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.
378
+ - 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.
379
+ - Deprecated all methods in ActiveRel's Query module except for those that allow finding by id.
380
+ - Return `true` on successful `#save!` calls (Thanks to jmdeldin)
381
+
382
+ ### Added
383
+
384
+ - Optional three-argument signature for `ActiveRel#create` and `#create!`, just like `initialize`.
385
+ - 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.
386
+ - `ActiveRel` `create` actions can now handle unpersisted nodes.
387
+ - `rel_order` method for association chaining
388
+ - Support `config/neo4j.yaml`
389
+ - Look for ENV variables for Neo4j URL / path for Rails apps
390
+ - 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.
391
+ - 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`.
392
+ - Type Converters were added for String, Integer, Fixnum, BigDecimal, and Boolean to provide type conversion for these objects in QueryProxy.
393
+ - Support for Array arguments to ActiveRel's `from_class` and `to_class`.
394
+
395
+ ### Fixed
396
+
397
+ - Regression RE: properties being overwritten with their defaults on save in alpha.10.
398
+ - Long properties in `ActiveNode`/`ActiveRel` `#inspect` are truncated
399
+ - Property defaults are set initially when an instance of a model is loaded, then checked again before save to ensure `valid?` works.
400
+ - `QueryProxy` was not converting Boolean properties correctly
401
+ - 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.
402
+ - Context now set for Model.all QueryProxy so that logs can reflect that it wasn't just a raw Cypher query
403
+
404
+ ### Removed
405
+
406
+ - Railtie was removing username/password and putting them into the session options. This has been unneccessary in `neo4j-core` for a while now
407
+
408
+ ## [6.0.0.alpha.12] - 11-5-2015
409
+
410
+ ### Changed
411
+ - `_classname` property has been completely removed, officially dropping support for Neo4j < 2.1.5.
412
+ - `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.
413
+
414
+ ### Added
415
+ - Optional three-argument signature for `ActiveRel#create` and `#create!`, just like `initialize`.
416
+
417
+ ## [6.0.0.alpha.11] - 11-3-2015
418
+
419
+ ### Fixed
420
+ - Regression RE: properties being overwritten with their defaults on save in alpha.10.
421
+
422
+ ### Changed
423
+ - `#<<` and `#create` methods on associations now create with the `rel_class` when available so that validations/callbacks/defaults are all used as expected
424
+ - Allow calling of `#method=` methods via model `new` method `Hash` argument
425
+
426
+ ### Added
427
+ - 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.
428
+
429
+ ## [6.0.0.alpha.10] - 11-2-2015
430
+
431
+ ### Fixed
432
+ - Long properties in `ActiveNode`/`ActiveRel` `#inspect` are truncated
433
+ - Property defaults are set initially when an instance of a model is loaded, then checked again before save to ensure `valid?` works.
434
+
435
+ ### Added
436
+ - `ActiveRel` `create` actions can now handle unpersisted nodes.
437
+
438
+ ## [6.0.0.alpha.9] - 10-27-2015
439
+
440
+ ### Fixed
441
+ - `uninitialized constant Neo4j::Core::CypherSession` error
442
+
443
+ ## [6.0.0.alpha.8] - 10-19-2015
444
+
445
+ ### Added
446
+
447
+ - `rel_order` method for association chaining
448
+
449
+ ## [6.0.0.alpha.7] - 10-19-2015
450
+
451
+ ### Changed
452
+
453
+ - Remove uniqueness validation for `id_property` because we already have Neo4j constraints
454
+
455
+ ### Added
456
+
457
+ - Support `config/neo4j.yaml`
458
+
459
+ ## [6.0.0.alpha.6] - 10-18-2015
460
+
461
+ ### Changed
462
+
463
+ - Improved eager loading when no with_associations is specified (see #905)
464
+
465
+ ## [6.0.0.alpha.5] - 10-18-2015
466
+
467
+ ### Changed
468
+
469
+ - Change size and length so that they match expected Ruby / ActiveRecord behavior (see http://stackoverflow.com/questions/6083219/activerecord-size-vs-count and #875)
470
+
471
+ ## [6.0.0.alpha.4] - 10-17-2015
472
+
473
+ ### Fixed
474
+
475
+ - `QueryProxy` was not converting Boolean properties correctly
476
+
477
+ ## [6.0.0.alpha.3] - 10-14-2015
478
+
479
+ ### Removed
480
+
481
+ - Railtie was removing username/password and putting them into the session options. This has been unneccessary in `neo4j-core` for a while now
482
+
483
+ ## [6.0.0.alpha.2] - 10-14-2015
484
+
485
+ ### Added
486
+
487
+ - Look for ENV variables for Neo4j URL / path for Rails apps
488
+
489
+ ## [6.0.0.alpha.1] - 10-12-2015
490
+
491
+ ### Changed
492
+
493
+ - Refactoring around indexing and constraints in `Neo4j::ActiveNode`. The public interfaces are unchanged.
494
+ - `Neo4j::Shared::DeclaredPropertyManager` was renamed `Neo4j::Shared::DeclaredProperties`. All methods referencing the old name were updated to reflect this.
495
+ - Methods that were using `Neo4j::Session#on_session_available` were updated to reflect the upstream change to `on_next_session_available`.
496
+ - `rel_where` will now use ActiveRel classes for type conversion, when possible.
497
+ - 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.
498
+ - 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.
499
+ - Deprecated all methods in ActiveRel's Query module except for those that allow finding by id.
500
+ - Return `true` on successful `#save!` calls (Thanks to jmdeldin)
501
+
502
+ ### Added
503
+
504
+ - 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.
505
+ - 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`.
506
+ - Type Converters were added for String, Integer, Fixnum, BigDecimal, and Boolean to provide type conversion for these objects in QueryProxy.
507
+ - Support for Array arguments to ActiveRel's `from_class` and `to_class`.
508
+
509
+ ### Fixed
510
+
511
+ - 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.
512
+ - Context now set for Model.all QueryProxy so that logs can reflect that it wasn't just a raw Cypher query
513
+
514
+ ## [5.2.15] - 11-27-2015
515
+
516
+ ### Fixed
517
+
518
+ - `#with_associations` should use multiple `OPTIONAL MATCH` clauses instead of one so that matches are independent (behavior changed in Neo4j 2.3.0)
519
+
520
+ ## [5.2.13] - 10-26-2015
521
+
522
+ ### Fixed
523
+ - Fixed `#after_initialize` and `#after_find` callbacks.
524
+ - The `#touch` method should to raise errors when unsuccessful and avoid `#attributes` for performance.
525
+
526
+ ## [5.2.12] - 10-25-2015
527
+
528
+ ### Fixed
529
+ - Fix the `#touch` method for `ActiveNode` and `ActiveRel`
530
+
531
+ ## [5.2.11] - 10-18-2015
532
+
533
+ ### Fixed
534
+ - Unable to give additional options as first argument to chained QueryProxy method
535
+
536
+ ## [5.2.10] - 10-14-2015
537
+
538
+ ### Fixed
539
+ - `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
540
+
541
+ ## [5.2.9] - 09-30-2015
542
+
543
+ ### Fixed
544
+ - Better error message for `ActiveRel` creation when from_node|to_node is not persisted
545
+
546
+ ## [5.2.8] - 09-30-2015
547
+
548
+ ### Fixed
549
+ - Support `references` in model/scaffold generators
550
+
551
+ ## [5.2.7] - 09-25-2015
552
+
553
+ ### Fixed
554
+ - Allow for association `model_class` to be prepended with double colons
555
+
556
+ ## [5.2.6] - 09-16-2015
557
+
558
+ ### Fixed
559
+
560
+ - Fixed issue where caching an association causes further queries on the association to return the cached result
561
+
562
+ ## [5.2.5] - 09-11-2015
563
+
564
+ ### Fixed
565
+
566
+ - Regression in last release caused properties to revert to default on update if not present in the properties for update
567
+
568
+ ## [5.2.4] - 09-11-2015
569
+
570
+ ### Fixed
571
+ - Use `debug` log level for query logging
572
+ - `updated_at` properties were not being added up `update` events, only updated.
573
+ - Default values of Boolean properties were not being set when `default: false`
574
+ - `props_for_update` was using String keys instead of Symbols, like `props_for_update`
575
+ - `props_for_create` and `props_for_update` were not adding default property values to the hash.
576
+ - 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`.
577
+
578
+ ## [5.2.3] - 09-07-2015
579
+
580
+ Added bugfixes from 5.1.4 and 5.1.5 that were missed in earlier 5.2.x releases:
581
+ - `AssociationProxy` now responds to `serializable_hash` so that `include` can be used in `render json` in Rails controllers
582
+ - Fixed errors when trying to call `#{association}_ids=` on an unpersisted node with UUIDs or an array thereof.
583
+ - Removed extra Cypher query to replace relationships when working with unpersisted nodes and association=.
584
+ - Bug related to Rails reloading an app and returning nodes without first reinitializing models, resulting in CypherNodes.
585
+
586
+ ## [5.2.2] - 09-06-2015
587
+
588
+ ### Fixed
589
+ - Fixed setting of association(_id|_ids) on .create
590
+
591
+ ## [5.2.1] - 09-04-2015
592
+
593
+ ### Fixed
594
+ - Now possible to configure `record_timestamps` with rails `config`
595
+
596
+ ## [5.2.0] - 08-30-2015
597
+
598
+ ### Added
599
+ - `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.
600
+ - Added `record_timestamps` configuration do default all `ActiveNode` and `ActiveRel` models to have `created_at` and `updated_at` timestamps (from #939, thanks @rebecca-eakins)
601
+ - Added `timestamp_type` configuration to specify how timestamps should be stored (from #939, thanks @rebecca-eakins)
602
+
603
+ ### Changed
604
+ - 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.
605
+ - Unit test directory structure was rearranged to mirror the `lib` directory.
606
+
607
+ ## [5.1.3] - 08-23-2015
608
+
609
+ ### Fixed
610
+ - `has_one` associations are now properly cached (like `has_many` associations)
611
+ - `QueryProxy` now responds to `#to_ary`. Fixes integration with ActiveModelSerializer gem
612
+
613
+
614
+ ## [5.1.2] - 08-20-2015
615
+
616
+ ### Fixed
617
+ - When association has `model_class` and `type: false` the association doesn't work (see: https://github.com/neo4jrb/neo4j/pull/930)
618
+
619
+ ## [5.1.1] - 08-19-2015
620
+
621
+ ### Fixed
622
+ - Fixed a bug where the `Neo4j::Timestamps` mixin was not able to be included
623
+
624
+ ## [5.1.0.rc.3] - 08-17-2015
625
+
626
+ ### Fixed
627
+ - 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.
628
+
629
+ ### Added
630
+ - ActiveRel: `#{related_node}_neo_id` instance methods to match CypherRelationship. Works with start/from and end/to.
631
+ - ActiveRel: `type` now has a new alias, `rel_type`. You might recognize this from the `(Cypher|Embedded)Relationship` class and ActiveNode association option.
632
+ - Contributing to the gem? Rejoice, for it now supports [Dotenv](https://github.com/bkeepers/dotenv).
633
+
634
+ ## [5.1.0.rc.2] - 08-16-2015
635
+
636
+ ### Added
637
+ - Ability to use `#where_not` method on `ActiveNode` / `QueryProxy`
638
+
639
+ ## [5.1.0.rc.1] - 08-14-2015
640
+
641
+ ### Fixed
642
+ - 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.
643
+ - To prevent errors, changing an index to constraint or constraint to index will drop the existing index/constraint before adding the new.
644
+ - Fixed `AssociationProxy#method_missing` so it properly raises errors.
645
+
646
+ ### Added
647
+ - Added ability to view `model_class` from `Association` class for `rails_admin` Neo4j adapter
648
+ - 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.
649
+ - 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
650
+ - Support formatted cypher queries for easy reading by humans via the `pretty_logged_cypher_queries` configuration variable
651
+ - Ability to query for just IDs on associations
652
+ - 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)
653
+ - Added `ActiveRel.creates_unique` and deprecated `ActiveRel.creates_unique_rel`
654
+ - Added #inspect method to ActiveRel to show Cypher-style representation of from node, to node, and relationship type
655
+ - Added `Neo4j::Timestamps`, `Neo4j::Timestamps::Created`, and `Neo4j::Timestamps::Updated` mixins to add timestamp properties to `ActiveNode` or `ActiveRel` classes
656
+
657
+ ### Changed
658
+
659
+ - 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.
660
+ - Implementation adjustments that improve node and rel initialization speed, particularly when loading large numbers of objects from the database.
661
+
662
+ ## [5.0.15] - 08-12-2015
663
+
664
+ ### Fixed
665
+
666
+ - `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.
667
+
668
+ ## [5.0.14] - 08-09-2015
669
+
670
+ ### Fixed
671
+
672
+ - Calling `all` on a QueryProxy chain would cause the currently set node identity within Cypher to be lost.
673
+
674
+ ## [5.0.13] - 08-07-2015
675
+
676
+ ### Fixed
677
+ - Backport AssociationProxy#method_missing fix to raise errors on invalid methods
678
+ - Fix the count issue on depth two associations (#881)
679
+
680
+ ## [5.0.12] - ?
681
+
682
+ ### Fixed
683
+ - Break between associations so that potential `where` clauses get applied to the correct `(OPTIONAL )MATCH` clause
684
+
685
+ ### Fixed
686
+ - Delegate `first` and `last` from `AssociationProxy` to `QueryProxy`
687
+ - Fix `order` behavior for `first` and `last` in `QueryProxy`
688
+
689
+ ## [5.0.11] - ?
690
+
691
+ ### Fixed
692
+ - Delegate `first` and `last` from `AssociationProxy` to `QueryProxy`
693
+ - Fix `order` behavior for `first` and `last` in `QueryProxy`
694
+
695
+ ## [5.0.10] - 2015-07-31
696
+
697
+ ### Fixed
698
+ - Fix what should have been a very obvious bug in `_active_record_destroyed_behavior` behavior
699
+ - Add eager loading to QueryProxy so that it works in all expected places
700
+
701
+ ## [5.0.9] - 2015-07-29
702
+
703
+ ### Fixed
704
+ - "NameError: uninitialized constant Class::Date" (https://github.com/neo4jrb/neo4j/issues/852)
705
+
706
+ ## [5.0.8] - 2015-07-26
707
+
708
+ ### Changed
709
+ - Copied QueryClauseMethods doc from master
710
+
711
+ ## [5.0.7] - 2015-07-26
712
+
713
+ ### Changed
714
+ - Copied `docs` folder from master because a lot of work had gone into the docs since 5.0.0 was released
715
+
716
+ ## [5.0.6] - 2015-07-22
717
+
718
+ ### Fixed
719
+ - 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
720
+
721
+ ## [5.0.5] - 2015-07-19
722
+
723
+ ### Added
724
+ - Added `log_cypher_queries` configuration option so that queries aren't on by default but that they can be controlled
725
+
726
+ ## [5.0.4] - 2015-07-17
727
+
728
+ ### Fixed
729
+ - Fixed bug which caused `QueryProxy` context to repeat (showed up in query logging)
730
+
731
+ ## [5.0.3] - 2015-07-14
732
+
733
+ ### Changed
734
+ - Moved `#with_associations` method from `AssociationProxy` to `QueryProxy` so that all `QueryProxy` chains can benefit from it.
735
+ - 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.
736
+
737
+ ## [5.0.2] - 2015-06-30
738
+
739
+ ### Fixed
740
+ - Fix error when calling `#empty?` or `#blank?` on a query chain with on `order` specified
741
+ - Make `#find_each` and `#find_in_batches` return the actual objects rather than the result objects
742
+ - Query logging on console should be to STDOUT with `puts`. Using `Rails.logger` outputs to the file in the `log` directory
743
+ - Modified queryproxy include? to accept a uuid instead of full node
744
+
745
+ ## [5.0.1] - 2015-06-23
746
+
747
+ ### Fixed
748
+ - 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
749
+ - ActiveNode#inspect wasn't displaying the id_property
750
+ - Default property values and magic typecasting not being inherited correctly
751
+
752
+ ### Changed
753
+ - 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)
754
+ - 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.
755
+ - 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.
756
+ - Updated gemspec to require neo4j-core 5.0.1+
757
+
758
+ ### Added
759
+ - ActiveRel was given `find_or_create_by`, usable across single associations.
760
+
761
+ ## [5.0.0] - 2015-06-18
762
+
763
+ ### Fixed
764
+ - Prevented `to_key` from requiring an extra DB query. (See https://github.com/neo4jrb/neo4j/pull/827)
765
+
766
+ ### Added
767
+ - QueryProxy associations accept `labels: false` option to prevent generated Cypher from using labels.
768
+
769
+ ### Changed
770
+ - Properties explicitly set to type `Time` will no longer be converted to `DateTime`.
771
+
772
+ ## [5.0.0.rc.3] - 2015-06-07
773
+
774
+ ### Fixed
775
+ - Associations now allow `unique` option. Error handling is generalized to make this testable (Thanks to @olance, see #824)
776
+
777
+ ## [5.0.0.rc.2] - 2015-05-20
778
+
779
+ ### Changed
780
+ - Set Ruby version requirement back to 1.9.3 because of problems with JRuby
781
+
782
+ ## [5.0.0.rc.1] - 2015-05-20
783
+
784
+ ### Changed
785
+ - Ruby 2.0.0 now required (>= 2.2.1 is recommended)
786
+ - All `ActiveNode` associations now require either a `type`, `origin`, or `rel_class` option. Only one is allowed
787
+ - Defining associations will fail if unknown options are used (#796)
788
+ - `Model#find` fails if no node found (`Model#find_by` available when `nil` result desired) (#799)
789
+ - `#find_or_create` and `#merge` model class methods have been added
790
+ - Ensuring that all model callbacks are happening within transactions
791
+ - Major refactoring using `rubocop` with a lot of focus on speed improvements
792
+ - Specifically when loading many nodes at once we've measured 3x speed improvements
793
+
794
+ ### Fixed
795
+ - `#find` on `QueryProxy` objects now does a model `find` rather than an `Enumerable` find
796
+ - Subclassed model classes now both create and query against it's ancestor's labels in addition to it's own (#690)
797
+ - `#first` and `#last` now work property when precedend by an `#order` in a `QueryProxy` chain (#720)
798
+ - `#count` when called after `#limit` will be performed within the bounds of limit specified
799
+
800
+ ### Added
801
+ - Eager Loading is now supported! See: [http://neo4jrb.readthedocs.org/en/latest/ActiveNode.html#eager-loading]
802
+ - Associations now return `AssociationProxy` objects (which are `Enumerable`) which have convenient `#inspect` methods for cleaner viewing in the Ruby console
803
+ - `model_class` key on associations now supports an Array (#589)
804
+ - When using `all` inside of a class method an argument for the node name can now be passed in (#737)
805
+ - Query(Proxy) syntax of `where("foo = ?", val)` and `where("foo = {bar}", bar: val)` now supported (#675)
806
+ - `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])
807
+ - `#id_property` method has new `constraints` option to disable automatic uuid constraint (#738/#736)
808
+
809
+ (There are probably other changes too!)
810
+
811
+ **Changes above this point should conform to [http://keepachangelog.com/]**
812
+
813
+ ## [4.1.2]
814
+ - 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.
815
+
816
+ ## [4.1.1]
817
+ - Switches use of Fixnum to Integer to improve 32-bit support
818
+
819
+ ## [4.1.0]
820
+ This release includes many performance fixes and new features. The most notable:
821
+ - 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.
822
+ - Every node create, update, and destroy is now wrapped in a transaction. See http://neo4jrb.io/blog/2015/01/06/transactions_everywhere.html.
823
+ - New `dependent` options for associations: `:delete`, `:destroy`, `:delete_orphans`, `:destroy_orphans`. See http://neo4jrb.io/blog/2015/01/07/association_dependent_options.html.
824
+ - 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".
825
+ - Fixed an n+1 query issue during node creation and update.
826
+ - Dieter simplified some code related to frozen attributes. See https://github.com/neo4jrb/neo4j/pull/655.
827
+ 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.
828
+
829
+ ## [4.0.0]
830
+ - Change neo4j-core dependency from 3.1.0 to 4.0.0.
831
+
832
+ ## [4.0.0.rc.4]
833
+ - _classname property is disabled by default for ActiveRel! It had been disabled for ActiveNode, this just evens the score.
834
+ - Fixes a bug to create better `result` labels in Cypher.
835
+ - 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.
836
+
837
+ ## [4.0.0.rc.3]
838
+ Released minutes after rc.2 to catch one late addition!
839
+ - Adds serialization support for QueryProxy.
840
+
841
+ ## [4.0.0.rc.2]
842
+ 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.
843
+ - New `proxy_as` for Core::Query to build QueryProxy chains onto Core::Query objects!
844
+ - Using `proxy_as`, new `optional` method in QueryProxy to use the `OPTIONAL MATCH` Cypher function.
845
+ - `match_to` and methods that depend on it now support arrays of nodes or IDs.
846
+ - New `rels_to`/`all_rels_to` methods.
847
+ - New `delete` and `destroy` methods in QueryProxy to easily remove relationships.
848
+ - Serialized objects will include IDs by default.
849
+
850
+ ## [4.0.0.rc.1]
851
+ 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.
852
+ 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).
853
+ - Default behavior changed: relationship types default to all caps, no prepending of "#". This behavior can be changed.
854
+ - 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.
855
+ - _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.
856
+ - Query scopes are now chainable! Call `all` at the start of your scope or method to take advantage of this.
857
+ - Changes required for Neo4j 2.2.
858
+ - Support for custom typecasters.
859
+ - New method `rel_where`, expanded behavior of `match_to` and `first_rel_to`
860
+ - Implemented ActiveSupport load hooks.
861
+ - Assorted performance improvements and refactoring.
862
+
863
+ ## [3.0.4]
864
+ - Gemspec requires the latest neo4j-core.
865
+ - Fixed a pagination bug — thanks, @chrisgogreen!
866
+ - New QueryProxy methods `match_to` and `first_rel_to` are pretty cool.
867
+ - include_root_in_json is now configurable through config.neo4j.include_root_in_json or Neo4j::Config[:include_root_in_json]. Also cool.
868
+ - There's a new `delete_all` method for QueryProxy, too.
869
+ - @codebeige removed the `include?` class method, which was smart.
870
+ - Did I mention we won an award from Neo Tech? Check it out. https://github.com/neo4jrb/neo4j#welcome-to-neo4jrb
871
+
872
+ ## [3.0.3]
873
+ - Gemspec has been updated to require neo4j-core 3.0.5
874
+ - Added `find_in_batches`
875
+ - Pagination has been updated to allow better ordering. Relaunch of neo4j-will_paginate as neo4j-will_paginate_redux is imminent!
876
+ - 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
877
+ - Added a new find_or_create_by class method
878
+
879
+ 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
880
+
881
+ ## [3.0.2]
882
+ - "Model#all" now evaluates lazily, models no longer include Enumerable
883
+ - Faster, more efficient uniqueness validations
884
+ - Adjusted many common queries to use params, will improve performance
885
+ - 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
886
+ - Allow inheritance when checking model class on a relation (Andrew Jones)
887
+ - Provided migrations will use Rake.original_dir instead of Rails.env to provide better compatibility with frameworks other than Rails
888
+ - rel_class option in ActiveNode models will now accept string of a model name
889
+ - Additional bug fixes
890
+
891
+ ## [3.0.1]
892
+ - Removed reference to neo4j-core from Gemfile and set neo4j.gemspec to use neo4j-core ~>3.0.0
893
+
894
+ ## [3.0.0]
895
+ No change from rc 4
896
+
897
+ ## [3.0.0.rc.4]
898
+ - UUIDs are now automatically specified on models as neo IDs won't be reliable
899
+ in future versions of neo4j
900
+ - Migrations now supported (including built-in migrations to migrate UUIDs and
901
+ insert the _classname property which is used for performance)
902
+ - Association reflection
903
+ - Model.find supports ids/node objects as well as arrays of id/node objects
904
+ - rake tasks now get automatically included into rails app
905
+
906
+
907
+ ## [3.0.0.rc.3]
908
+ - thread safety improvements
909
+ - scope and general refactoring
910
+ - Added ability to create relationships on init (persisted on save)
911
+
912
+ ## [3.0.0.rc.2]
913
+ - Use newer neo4j-core release
914
+
915
+ ## [3.0.0.rc.1]
916
+ - Support for count, size, length, empty, blank? for has_many relationship
917
+ - Support for rails logger of cypher queries in development
918
+ - Support for distinct count
919
+ - Optimized methods: https://github.com/andreasronge/neo4j/wiki/Optimized-Methods
920
+ - Queries should respect mapped label names (#421)
921
+ - Warn if no session is available
922
+ - Fix broken == and equality (#424)
923
+
924
+ ## [3.0.0.alpha.11]
925
+ - Bug fixes
926
+
927
+ ## [3.0.0.alpha.10]
928
+ - ActiveRel support, see Wiki pages (chris #393)
929
+
930
+ ## [3.0.0.alpha.9]
931
+ - Complete rewrite of the query api, see wiki page (#406, chris, brian)
932
+ - Performance improvements (#382,#400, #402, chris)
933
+ - idproperty - user defined primary keys (#396,#389)
934
+ - Reimplementation of Neo4j::Config
935
+ - Serialization of node properties (#381)
936
+ - Better first,last syntax (#379)
937
+
938
+ ## [3.0.0.alpha.8]
939
+ - Integration with new Query API from neo4j-core including:
940
+ - - .query_as and #query_as methods to get queries from models (#366)
941
+ - - .qq method for QuickQuery syntax ( https://github.com/andreasronge/neo4j/wiki/Neo4j-v3#quickquery-work-in-progress / #366)
942
+ - Before and after callbacks on associations (#373)
943
+ - .find / .all / .count changed to be more like ActiveRecord
944
+ - .first / .last methods (#378)
945
+ - .find_by / .find_by! (#375)
946
+
947
+ ## [3.0.0.alpha.7]
948
+ - Bug fix uniqueness-validator (#356 from JohnKellyFerguson)
949
+ - Many improvements, like update_attributes and validation while impl orm_adapter, Brian Underwood
950
+ - Impl orm_adapter API for neo4j so it can be used from for example devise, Brian Underwood (#355)
951
+ - Fix of inheritance of Neo4j::ActiveNode (#307)
952
+ - Expose add_label, and remove_label (#335)
953
+ - Fixed auto loading of classes bug, (#349)
954
+ - Bumped neo4j-core, 3.0.0.alpha.16
955
+
956
+ ## [3.0.0.alpha.6]
957
+ - Support for Heroku URLs, see wiki https://github.com/andreasronge/neo4j/wiki/Neo4j-v3 (#334)
958
+
959
+ ## [3.0.0.alpha.5]
960
+ - Added allow session options via 'config.neo4j.session_options' so it can run on heroku (#333)
961
+ - Relaxed Dependencies for Rails 4.1 (#332)
962
+ - Using neo4j-core version 3.0.0.alpha.12
963
+
964
+ ## [3.0.0.alpha.4]
965
+ - Implemented validates_uniqueness_of (#311)
966
+ - Using neo4j-core version 3.0.0.alpha.11
967
+
968
+ ## [3.0.0.alpha.3]
969
+ - Support for rails scaffolds
970
+ - Support for created_at and updated_at (#305)
971
+ - Support for ability to select a session to use per model (#299)
972
+ - BugFix: updating a model should not clear out old properties (#296)
973
+
974
+ ## [3.0.0.alpha.2]
975
+ - Support for both embedded (only JRuby) and server API (runs on MRI Ruby !)
976
+ - Simple Rails app now work
977
+ - Support for has_n and has_one method
978
+ - ActiveModel support, callback, validation
979
+ - Declared properties (via active_attr gem)
980
+
981
+ ## [2.3.0 / 2013-07-18]
982
+ - Fix Issue with HA console when ruby-debug is loaded (#261, thekendalmiller)
983
+ - Use 1.9 Neo4j
984
+
985
+ ## [2.2.4 / 2013-05-19]
986
+ - get_or_create should return wrapped ruby nodes, alex-klepa, #241, #246
987
+ - Make sure freeze does not have side effects, #235
988
+ - Fix for carrierwave-neo4j (attribute_defaults), #235
989
+
990
+ ## [2.2.3 / 2012-12-28]
991
+ - Support for HA cluster with neo4j 1.9.X, #228, #99, #223
992
+ - Make sure the Identity map is cleared after an exception, #214
993
+ - Relationship other_node should return wrapped node, #226
994
+ - Automatically convert DateTimes to UTC, (neo4j-wrapper #7)
995
+ - get_or_create should return a wrapped node (neo4j-wrapper #8)
996
+ - Make it work with Neo4j 1.7.1 (neo4j-core, #19)
997
+
998
+ ## [2.2.2 - skipped]
999
+
1000
+ ## [2.2.1 / 2012-12-18]
1001
+ - Fix for JRuby 1.7.1 and Equal #225
1002
+ - Fix for create nodes and relationship using Cypher (neo4j-core #17)
1003
+
1004
+ ## [2.2.0 / 2012-10-02]
1005
+ - Using neo4j-cypher gem (1.0.0)
1006
+ - Fix of neo4j-core configuration issue using boolean values #218
1007
+ - Fixed RSpec issue on JRuby 1.7.x #217
1008
+ - Aliased has_many to has_n, #183
1009
+
1010
+ ## [2.2.0.rc1 / 2012-09-21]
1011
+ - Use neo4j-core and neo4j-wrapper version 2.2.0.rc1
1012
+ - Use the neo4j-cypher gem
1013
+ - Better support for Orm Adapter, #212
1014
+ - Use Cypher query when finder method does not have a lucene index, #210
1015
+
1016
+ ## [2.0.1 / 2012-06-06]
1017
+ - Use neo4j-core and neo4j-wrapper version 2.0.1
1018
+
1019
+ ## [2.0.0 / 2012-05-07]
1020
+ (same as rc2)
1021
+
1022
+ ## [2.0.0.rc2 / 2012-05-04]
1023
+ - Enable Identity Map by default
1024
+ - Added versioning for Neo4j::Core
1025
+
1026
+ ## [2.0.0.rc1 / 2012-05-03]
1027
+ - Fix of rake task to upgrade to 2.0
1028
+ - Various Cypher DSL improvements, core(#3,#4,#5), #196
1029
+ - Added Neo4j::VERSION
1030
+
1031
+ ## [2.0.0.alpha.9 / 2012-04-27]
1032
+ - Fix for rails scaffold generator
1033
+
1034
+ ## [2.0.0.alpha.8 / 2012-04-27]
1035
+ - Fix for "relationship to :all assigned twice for single instance" #178
1036
+ - Fix for callback fire more then once (=> performance increase) #172
1037
+ - Support for lucene search on array properties, #118
1038
+ - Support for creating unique entities (get_or_create) #143
1039
+ - Support for specifying has_n/has_one relationship with Strings instead of Class #160
1040
+ - Support for serializer of hash and arrays on properties #185
1041
+ - Fix for Neo4j::Rails::Relationship default property, #195
1042
+ - Added support for pagination, see the neo4j-will_paginate gem
1043
+ - Fixed Rails generators
1044
+ - Added Cypher DSL support for is_a?
1045
+ - Fix for "write_attribute persistes, contrary to AR convention" closes #182
1046
+
1047
+ ## [2.0.0.alpha.7 / 2012-04-19]
1048
+ - fix for Neo4j::Config bug - did not work from rails to set the db location, closes #191
1049
+ - has_n and has_one method generate class method returning the name of the relationship as a Symbol, closes #170
1050
+ - Raise exception if trying to index boolean property, closes #180
1051
+ - Made start_node= and end_node= protected closes 186
1052
+ - Support for things like @dungeon.monsters.dangerous { |m| m[:weapon?] == 'sword' } closes #181
1053
+
1054
+ ## [2.0.0.alpha.6 / 2012-04-15]
1055
+ - Complete rewrite and smaller change of API + lots of refactoring and better RSpecs
1056
+ - Moved code to the neo4j-core and neo4j-wrapper gems
1057
+ - Changed API - index properties using the Neo4j::Rails::Model (property :name, :index => :exact)
1058
+ - Changed API - rel_type always returns a Symbol
1059
+ - Changed API - #rels and #rel first parameter is always :outgoing, :incoming or :both
1060
+ - Cypher DSL support, see neo4j-core
1061
+ - Made the Lucene indexing more flexible
1062
+ - Renamed size methods to count since it does simply count all the relationships (e.g. Person.all.count)
1063
+ - Modularization - e.g. make it possible to create your own wrapper
1064
+ - Added builder method for has_one relationships (just like ActiveRecord build_best_friend)
1065
+
1066
+ ## [2.0.0.alpha.5 / 2012-03-27]
1067
+ - Fix for HA/cluster bug [#173]
1068
+ - Upgrade to neo4j-community jars 1.7.0.alpha.1
1069
+ - Fix for rails 3.2 [#131]
1070
+ - Fix for BatchInserter bug, [#139]
1071
+ - Added rake task for upgrading [#116]
1072
+ - Added scripts for upgrading database [#116]
1073
+
1074
+ ## [2.0.0.alpha.4 / 2012-01-17]
1075
+ - Fix node and rel enumerable for JRuby 1.9, Dmytrii Nagirniak
1076
+ - Remove the will_paginate and move it to a separate gem Dmytrii Nagirniak, [#129][#132]
1077
+ - Use type converter to determine how to handle multi-param attributes, Dmyitrii Nagirniak [#97]
1078
+ - Set default storage_path in Rails to db [#96]
1079
+ - Fix numeric Converter with nils and Float converter, Dmytrii Nagirniak
1080
+ - Fix Neo4j::Rails::Model.find incorrect behavior with negative numbers, Dmytrii Nagirniak [#101]
1081
+ - Allow to use symbols in batch inserter [#104]
1082
+ - Split neo4j-jars gem into three jars, community,advanced&enterprise
1083
+
1084
+ == 2.0.0.alpha.1 / 2012-01-11
1085
+ - Split JARS into a separate gem (neo4j-jars) [#115]
1086
+ - 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]
1087
+ - Fix for undefined method 'add_unpersited_outgoing_rel' [#111]
1088
+ - Fix for Rails models named Property [#108] (Vivek Prahlad)
1089
+
1090
+
1091
+ == 1.3.1 / 2011-12-14
1092
+ - Make all relationships visible in Rails callback (rspecs #87, Dmytrii Nagirniak) [#211]
1093
+ - Enable travis to build JRuby 1.9 (pull #87, Dmytrii Nagirniak) [#214]
1094
+ - Support for composite lucene queries with OR and NOT (pull #89, Deepak N)
1095
+ - Enforce the correct converter on a property type when the type is given (pull #86, Dmytrii Nagirniak)
1096
+ - Development: make it easier to run RSpecs and guard (pull #85, Dmytrii Nagirniak)
1097
+ - Added ability to disable observer (pull #84, Dmytrii Nagirniak)
1098
+ - Fixing multiple assignment of has_one assocaition (pull #83 Deepak N)
1099
+ - Accept association_id for has_one assocations (pull #82, Deepak N)
1100
+ - Upgrade to 1.6.M01 Neo4j java jars [#209]
1101
+ - Defer warning message 'Unknown outgoing relationship' (pull #81, Vivek Prahlad)
1102
+ - Added string converter, e.g. property :name, :type => String (pull #80, Dmytrii Nagirniak)
1103
+ - Added symbol converter e.g. property :status, :type => Symbol (pull #79, Dmytrii Nagirniak) [#205]
1104
+
1105
+ == 1.3.0 / 2011-12-06
1106
+ - Added neo4j-upgrade script to rename lucene index files and upgrade to 1.5 [#197]
1107
+ - Expose Neo4j::NodeMixin#index_types returning available indices (useful for Cypher queries) [#194]
1108
+ - The to_other method is now available also in the Neo4j::Rails API [#193]
1109
+ - Expose rel_type method for Neo4j::Rails::Relationship [#196]
1110
+ - Support for breadth and depth first traversals [#198]
1111
+ - Support for cypher query [#197]
1112
+ - Fix for rule node concurrency issue (pull #78, Vivek Prahlad)
1113
+ - Bugfix for the uniqueness validation for properties with quotes (pull #76, Vivek Prahlad)
1114
+ - More performance tweaks (pull #75, #77, Vivek Prahlad)
1115
+ - Fixing add_index for properties other than type string (pull #74, Deepak N)
1116
+ - Significant performance boost for creating large numbers of models in a transaction (pull #73, Vivek Prahlad)
1117
+ - Upgrade to neo4j 1.5 jars (pull #72, Vivek Prahlad)
1118
+ - Fix for assigning nil values to incoming has_one relation (pull #70, Deepak N)
1119
+ - Support for revert and fixes for Neo4j::Rails::Versioning (pull #71, Vivek Prahlad)
1120
+
1121
+ == 1.2.6 / 2011-11-02
1122
+ - Generators can now generate relationships as well [#195]
1123
+ - Better will_paginate support for Neo4j::Rails::Model [#194]
1124
+ - Fixing updated_at to be set only if model has changed (pull #68, Deepak N)
1125
+ - Bringing back changes removed during identiy map to fix bug [#190] (Deepak N)
1126
+ - Fixing updated_at to be set only if model has changed, using callbacks instead of overriding method for stamping time (Deepak N)
1127
+ - Added versioning support (pull #67) (Vivek Prahlad)
1128
+
1129
+ == 1.2.5 / 2011-10-21
1130
+ - Faster traversals by avoiding loading Ruby wrappers (new method 'raw' on traversals) [#189]
1131
+ - Support for IdentityMap [#188]
1132
+ - Improved performance in event handler (Vivek Prahlad)
1133
+ - Fixing issue with validates_presence_of validation (Vivek Prahlad)
1134
+ - Implemented compositions support on Neo4j::Rails::Relationship (Kalyan Akella)
1135
+ - Added after_initialize callback (Deepak N)
1136
+ - Fixed performance issues on node deleted (Vivek Prahlad)
1137
+ - Fixed a performance issue in the index_registry (Vivek Prahlad)
1138
+ - Fixed uniqueness validation for :case_sensitive => false (Vivek Prahlad)
1139
+ - Fixed update_attributes deleting relations when model is invalid (Deepak N)
1140
+ - Fixed timestamp rails generator (Marcio Toshio)
1141
+
1142
+ == 1.2.4 / 2011-10-07
1143
+ - Support for traversing with Neo4j::Node#eval_paths and setting uniqueness on traversals [#187]
1144
+ - Removed unnecessary node creation on database start up (class nodes attached to reference node) (Vivek Prahlad)
1145
+ - Safer multitenancy - automatically reset the reference node in thread local context after each request using rack middleware
1146
+ - Bugfixes for multitenancy (Deepak N and Vivek Prahlad)
1147
+
1148
+ == 1.2.3 / 2011-10-01
1149
+ - Multitenancy support by namespaced-indices & changeable reference node (Vivek Prahlad, pull 41)
1150
+ - Added a Neo4j::Rails::Model#columns which returns all defined properties [#186]
1151
+ - Fixed validation associated entities, parent model should be invalid if its nested model(s) is invalid (Vivek Prahlad)
1152
+ - Fixed property validation to read value before conversion as per active model conventions (Deepak N)
1153
+ - Fixed property_before_type_cast for loaded models (Deepak N)
1154
+ - Better support for nested models via ActionView field_for [#185]
1155
+ - BUG: fix for null pointer issue after delete_all on Neo4j::Rails::Model#has_n relationships (Vivek Prahlad)
1156
+ - BUG: init_on_create was not called when creating a new relationship via the << operator [#183]
1157
+
1158
+ == 1.2.2 / 2011-09-15
1159
+ - Added compositions support for rails mode (Deepak N)
1160
+ - Added support for nested transactions at the Rails model level (Vivek Prahlad)
1161
+ - Fixing issue where save for invalid entities puts them into an inconsistent state (Vivek Prahlad)
1162
+ - Fix for issue with save when validation fails (Vivek Prahlad)
1163
+ - Fix for accepts_nested_attributes_for when the associated entities are created before a new node (Vivek Prahlad)
1164
+ - Fix to allow has_one relationships to handle nil assignments in models (Vivek Prahlad)
1165
+ - Observers support for neo4j rails model using active model (Deepak N)
1166
+ - Override ActiveModel i18n_scope for neo4j (Deepak N)
1167
+ - Added finders similar to active record and mongoid (Deepak N)
1168
+ - Added find!, find_or_create_by and find_or_initialize_by methods, similar to active record finders (Deepak N)
1169
+
1170
+ == 1.2.1 / 2011-08-29
1171
+ - Fixed failing RSpecs for devise-neo4j gem - column_names method on neo4j orm adapter throws NoMethodError (thanks Deepak N)
1172
+
1173
+ == 1.2.0 / 2011-08-16
1174
+ - Upgrade to java library neo4j 1.4.1, see http://neo4j.rubyforge.org/guides/configuration.html
1175
+
1176
+ == 1.1.4 / 2011-08-10
1177
+ - Fixed dependency to will_paginate, locked to 3.0.pre4 (newly released 3.0.0 does not work yet with neo4j.rb)
1178
+
1179
+ == 1.1.3 / 2011-08-09
1180
+ - real recursive rule to the top class, subclasses with rules did not work (Frédéric Vanclef)
1181
+ - BUG: not able to create array properties on relationships (Pere Urbon)
1182
+ - BUG: lucene did not work if starting up neo4j in read only mode (like rails console when the rails is already running)
1183
+
1184
+ == 1.1.2 / 2011-06-08
1185
+ - Added configuration option 'enable_rules' to disable the _all relationships and custom rules [#176]
1186
+ - Added a #node method on the Neo4j::Node and Neo4j::NodeMixin. Works like the #rel method but returns the node instead. [#174]
1187
+ - Simplify creating relationship between two existing nodes [#175]
1188
+
1189
+ == 1.1.1 / 2011-05-26
1190
+ - Made neo4j compatible with rails 3.1.0.rc1 [#170]
1191
+ - Fix for neo4j-devise [#171]
1192
+ - BUG: Neo4j::GraphAlgo shortest path does raise exception if two nodes are not connected [#172]
1193
+
1194
+ == 1.1.0 / 2011-05-13
1195
+ - Support for embedding neo4j.rb by providing an already running db instance (#168)
1196
+ - Neo4j::Rails::Relationships should be ActiveModel compliant (#156)
1197
+ - Support for incoming relationships in Neo4j::Rails::Model (#157)
1198
+ - to_json method for models no tags √ resolved (#154)
1199
+ - Implement hash so that it will work with Sets (#160)
1200
+ - Modified the traverser to allow iterating over paths not just over end_nodes (#161)
1201
+ - Create method should take a block to initialize itself (#162)
1202
+ - Upgrade to 1.3 neo4j java library (#164)
1203
+ - Default `nodes' invocation for Algo path finders (#165)
1204
+ - Property and index class methods modified to take arbitrary number of symbols optionally followed by options hash (#166)
1205
+ - BUG: Setting property :system on Neo4j::Rails::Model should work (#163)
1206
+ - BUG: update_attributes should convert values according to Type (#155)
1207
+ - BUG: Neo4j::RelationshipMixin#relationship_type broken #(169)
1208
+ - BUG: Relationship.load(nil) == Relationship.load(0) (#167)
1209
+ - BUG: Full text search returns nil in rails model (#153)
1210
+
1211
+ ## [1.0.0 / 2011-03-02]
1212
+ - Complete rewrite of everything.
1213
+ - Replaced the lucene module with using the java neo4j-lucene integration instead
1214
+ - Lots of improvements of the API
1215
+ - Better ActiveModel/Rails integration
1216
+
1217
+ ## [0.4.4 / 2010-08-01]
1218
+ - Fixed bug on traversing when using the RelationshipMixin (#121)
1219
+ - BatchInserter and JRuby 1.6 - Fix iteration error with trying to modify in-place hash
1220
+
1221
+ ## [0.4.3 / 2010-04-10]
1222
+ - Fixed .gitignore - make sure that we do not include unnecessarily files like neo4j databases. Release 0.4.2 contained test data.
1223
+ - Added synchronize around Index.new so that two thread can't modify the same index at the same time.
1224
+
1225
+ ## [0.4.2 / 2010-04-08]
1226
+ - No index on properties for the initialize method bug (#116)
1227
+ - Tidy up Thread Synchronization in Lucene wrapper - lucene indexing performance improvement (#117)
1228
+ - Permission bug loading neo4j jar file (#118)
1229
+ - Spike: Make NodeMixin ActiveModel complient - experimental (#115)
1230
+
1231
+ ## [0.4.1 / 2010-03-11]
1232
+ - Migrations (#108)
1233
+ - BatchInserter (#111)
1234
+ - Neo4j::Relationship.new should take a hash of properties (#110)
1235
+ - Upgrade to neo4j-1.0 (#114)
1236
+ - Bigfix: has_one should replace old relationship (#106)
1237
+ - Bugfix: custom accessors for NodeMixin#update (#113)
1238
+ - Bugfix: Indexed properties problem on extented ruby classes critical "properties indexer" (#112)
1239
+
1240
+ ## [0.4.0 / 2010-02-06]
1241
+ - Performance improvements and Refactoring: Use and Extend Neo4j Java Classes (#97)
1242
+ - Support for Index and Declaration of Properties on Relationships (#91)
1243
+ - Upgrade to neo4j-1.0 rc (#100)
1244
+ - All internal properties should be prefix with a '_',0.4.0 (#105)
1245
+ - Generate relationship accessor methods for declared has_n and has_one relationships (#104)
1246
+ - New way of creating relationship - Neo4j::Relationship.new (#103)
1247
+ - Neo4j#init_node method should take one or more args (#98)
1248
+ - Namespaced relationships: has_one...from using the wrong has_n...to(#92)
1249
+ - Neo4j::NodeMixin and Neo4j::Node should allow a hash for initialization (#99)
1250
+
1251
+ ## [0.3.3 / 2009-11-25]
1252
+ - Support for a counter property on has_lists (#75)
1253
+ - Support for Cascade delete. On has_n, had_one and has_list (#81)
1254
+ - NodeMixin#all should work with inheritance - Child classes should have a relationship of their own. (#64)
1255
+ - Support for other lucene analyzer then StandardAnalyzer (#87)
1256
+ - NodeMixin initialize should accept block like docs (#82)
1257
+ - Add incoming relationship should work as expected: n1.relationships.incoming(:foo) << n2 (#80)
1258
+ - Delete node from a has_list relationship should work as expected (#79)
1259
+ - Improve stacktraces (#94)
1260
+ - Removed sideeffect of rspecs (#90)
1261
+ - Add debug method on NodeMixin to print it self (#88)
1262
+ - Removed to_a method (#73)
1263
+ - Upgrade to neo4j-1.0b10 (#95)
1264
+ - Upgrade to lucene 2.9.0 (#83)
1265
+ - Refactoring: RSpecs (#74)
1266
+ - Refactoring: aggregate each, renamed to property aggregator (#72)
1267
+ - BugFix: neo4j gem cannot be built from the source (#86)
1268
+ - BugFix: Neo4j::relationship should not raise Exception if there are no relationships (#78)
1269
+
1270
+ ## [0.3.2 / 2009-09-17]
1271
+ - Added support for aggregating nodes (#65)
1272
+ - Wrapped Neo4j GraphAlgo AllSimplePath (#70)
1273
+ - Added traversal with traversal position (#71)
1274
+ - Removed DynamicAccessors mixin, replaced by [] operator (#67)
1275
+ - Impl Neo4j.all_nodes (#69)
1276
+ - Upgrated Neo4j jar file to 1.0-b9
1277
+ - The Neo4j#relationship method now allows a filter parameter (#66)
1278
+ - Neo4j.rb now can read database not created by Neo4j.rb - does not require classname property (#63)
1279
+ - REST - added an "all" value for the depth traversal query parameter (#62)
1280
+ - REST - Performance improvments using the Rest Mixin (#60)
1281
+
1282
+ ## [0.3.1 / 2009-07-25]
1283
+ - Feature, extension - find path between given pair of nodes (#58)
1284
+ - Fix a messy exception on GET /nodes/UnknownClassName (#57)
1285
+ - Bug - exception on GET /nodes/classname/rel if rel is a has_one relationship (#56)
1286
+ - Bug: GET /nodes/classname missing out nodes with no properties (#55)
1287
+ - Bug: Lucene sorting caused exception if there were no documents (#54)
1288
+ - Bug: reindexer fails to connect nodes to the IndexNode (#53)
1289
+
1290
+ ## [0.3.0 / 2009-06-25]
1291
+ - Neo4j should track node changes
1292
+ - RESTful support for lucene queries, sorting and paging
1293
+ - RESTful support for Relationships
1294
+ - RESTful support for Node and properties
1295
+ - Experimental support for Master-Slave Replication via REST
1296
+ - RESTful Node representation should contain hyperlinks to relationships
1297
+ - Added some handy method like first and empty? on relationships
1298
+ - Use new neo4j: neo-1.0-b8
1299
+ - Add an event handler for create/delete nodes start/stop neo, update property/relationship
1300
+ - The NodeMixin should behave like a hash, added [] and []= methods
1301
+ - Support list topology - has_list and belongs_to_list Neo4j::NodeMixin Classmethods
1302
+ - Should be possible to add relationships without declaring them (Neo4j#relationships.outgoing(:friends) << node)
1303
+ - Neo4j extensions file structure, should be easy to create your own extensions
1304
+ - Rename relation to relationship (Neo4j::Relations => Neo4j::Relationships, DynamicRelation => Relationship) [data incompatible change]
1305
+ - Auto Transaction is now optional
1306
+ - Setting Float properties fails under JRuby1.2.0
1307
+ - Bug: Indexing relationships does not work
1308
+ - Make the ReferenceNode include Neo4j::NodeMixin
1309
+ - Added handy Neo4j class that simply includes the Neo4j::NodeMixin
1310
+ - Neo4j::IndexNode now holds references to all nodes (Neo4j.ref_node -> Neo4j::IndexNode -> ...)
1311
+
1312
+
1313
+ ## [0.2.1 / 2009-03-15]
1314
+ - Refactoring of lucene indexing of the node space (28)
1315
+ - Fixed bug on Neo4j::Nodemixin#property? (#22)
1316
+
1317
+
1318
+ ## [0.2.0 / 2009-01-20]
1319
+ - Impl. Neo4j::Node#traverse - enables traversal and filtering using TraversalPosition info (#17,#19)
1320
+ - Impl. traversal to any depth (#15)
1321
+ - Impl. traversal several relationships type at the same time (#16)
1322
+ - Fixed a Lucene timezone bug (#20)
1323
+ - Lots of refactoring of the neo4j.rb traversal code and RSpecs
1324
+
1325
+ ## [0.1.0 / 2008-12-18]
1326
+ - Property can now be of any type (and not only String, Fixnum, Float)
1327
+ - Indexing and Query with Date and DateTime
1328
+ - YARD documentation
1329
+ - Properties can be removed
1330
+ - A property can be set to nil (it will then be removed).
1331
+
1332
+ ## [0.0.7 / 2008-12-10]
1333
+ - Added method to_param and methods on the value object needed for Ruby on Rails
1334
+ - Impl. update from a value object/hash for a node
1335
+ - Impl. generation of value object classes/instances from a node.
1336
+ - Refactoring the Transaction handling (reuse PlaceboTransaction instances if possible)
1337
+ - Removed the need to start and stop neo. It will be done automatically when needed.
1338
+
1339
+
1340
+ ## [0.0.6 / 2008-12-03]
1341
+ - Removed the configuration from the Neo4j.start method. Now exist in Neo4j::Config and Lucene::Config.
1342
+ - Implemented sort_by method.
1343
+ - Lazy loading of search result. Execute the query and load the nodes only if needed.
1344
+ - Added support to use lucene query language, example: Person.find("name:foo AND age:42")
1345
+ - All test now uses RAM based lucene indexes.
1346
+
1347
+ ## [0.0.5 / 2008-11-17]
1348
+ - Supports keeping lucene index in memory instead of on disk
1349
+ - Added support for lucene full text search
1350
+ - Fixed so neo4j runs on JRuby 1.1.5
1351
+ - 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.
1352
+ - Added ReferenceNode. All nodes now have a relationship from this reference node.
1353
+ - Lots of refactoring
1354
+ - Added the IMDB example. It shows how to create a neo database, lucene queries and node traversals.
1355
+
1356
+ ## [0.0.4 / 2008-10-23]
1357
+ - First release to rubyforge