1
1
# Changelog
2
2
3
- ### 6.5 .0
3
+ ### 6.6 .0
4
4
5
- Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
5
+ Closure Tree is now tested against Rails 5.1, and just passed 50 contributors and
6
6
1000 stars on github! 🎉!
7
7
8
+ Note that Closure Tree has moved to a new "Closure Tree" github organization.
9
+ ** Future gem releases will be done by other contributors.**
10
+
8
11
* ActiveSupport 5.1 deprecation warnings were addressed in [ PR
9
- 262] ( https://github.com/mceachen /closure_tree/pull/262 ) . Thanks, [ Charles
12
+ 262] ( https://github.com/ClosureTree /closure_tree/pull/262 ) . Thanks, [ Charles
10
13
Pence] ( https://github.com/cpence ) !
11
- * Merged [ PR 258 ] ( https://github.com/mceachen/closure_tree/pull/258 ) which
12
- improves hierarchy maintenance with large trees. Thanks, [ Nikolay
13
- Bekirov ] ( https://github.com/nbekirov ) !
14
+ * ActiveSupport 5.1 test failures were fixed in
15
+ [ PR 280 ] ( https://github.com/ClosureTree/closure_tree/pull/280 ) .
16
+ Thanks, [ Bobby Uhlenbrock ] ( https://github.com/uhlenbrock ) !
14
17
* A database connection was leaked at startup, fixed in [ PR
15
- 263] ( https://github.com/mceachen /closure_tree/pull/263 ) . Thanks, [ Andrey
18
+ 263] ( https://github.com/ClosureTree /closure_tree/pull/263 ) . Thanks, [ Andrey
16
19
Novikov] ( https://github.com/Envek ) !
17
20
21
+ ### 6.5.0
22
+
23
+ * Merged [ PR 258] ( https://github.com/ClosureTree/closure_tree/pull/258 ) which
24
+ improves hierarchy maintenance with large trees. Thanks, [ Nikolay
25
+ Bekirov] ( https://github.com/nbekirov ) !
18
26
### 6.4.0
19
27
20
- * Merged [ PR 236] ( https://github.com/mceachen /closure_tree/pull/236 ) which adds documentation for ` has_closure_tree_root ` .
28
+ * Merged [ PR 236] ( https://github.com/ClosureTree /closure_tree/pull/236 ) which adds documentation for ` has_closure_tree_root ` .
21
29
* Added ruby 2.4 and dropped Rails 4.1 from the build matrix.
22
30
23
31
### 6.3.0
24
32
25
- * ` prepend_child ` [ handles invalid children properly now] ( https://github.com/mceachen /closure_tree/issues/249 ) .
33
+ * ` prepend_child ` [ handles invalid children properly now] ( https://github.com/ClosureTree /closure_tree/issues/249 ) .
26
34
Thanks [ Amit Saxena] ( https://github.com/amitsaxena ) !
27
35
* Dropped official support for jruby and ruby 2.0 (no code was changed)
28
36
29
37
### 6.2.0
30
38
31
- * Fix for [ MySQL lock lengths] ( https://github.com/mceachen /closure_tree/issues/231 ) .
39
+ * Fix for [ MySQL lock lengths] ( https://github.com/ClosureTree /closure_tree/issues/231 ) .
32
40
Thanks to [ Liam] ( https://github.com/hut8 ) !
33
- * [ Tom Smyth] ( https://github.com/hooverlunch ) added [ eager tree loading] ( https://github.com/mceachen /closure_tree/pull/232 )
34
- * Merged [ PR 200] ( https://github.com/mceachen /closure_tree/pull/200 ) which may or may not add support to SQLServer 2008 (but this is not a supported RDBMS).
41
+ * [ Tom Smyth] ( https://github.com/hooverlunch ) added [ eager tree loading] ( https://github.com/ClosureTree /closure_tree/pull/232 )
42
+ * Merged [ PR 200] ( https://github.com/ClosureTree /closure_tree/pull/200 ) which may or may not add support to SQLServer 2008 (but this is not a supported RDBMS).
35
43
36
44
### 6.1.0
37
45
@@ -55,7 +63,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
55
63
* Dropped support for versions of Rails 3.2 and 4.0 (which are no longer supported).
56
64
* Dropped support for Ruby 1.9 and JRuby 1.9 (which are no longer supported).
57
65
* Added support for ` .hash_tree ` from ` .parent ` and ` .children ` .
58
- Addresses [ PR146] ( https://github.com/mceachen /closure_tree/pull/146 ) .
66
+ Addresses [ PR146] ( https://github.com/ClosureTree /closure_tree/pull/146 ) .
59
67
Thanks for reporting this and the breaking test, [ Mike] ( https://github.com/mkralla11 ) !
60
68
61
69
### 5.2.0
@@ -66,7 +74,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
66
74
* [ Ryan Selk] ( https://github.com/rselk ) made several enhancements to the migration generation (thanks!).
67
75
* [ ruok5] ( https://github.com/ruok5 ) updated the README to clarify a heirarchy maintenance usecase. Thanks!
68
76
* Made migrations error with a helpful message if the target didn't have the ` has_closure_tree ` or
69
- ` acts_as_tree ` annotation. This addresses [ issue 131] ( https://github.com/mceachen /closure_tree/issues/131 ) .
77
+ ` acts_as_tree ` annotation. This addresses [ issue 131] ( https://github.com/ClosureTree /closure_tree/issues/131 ) .
70
78
71
79
### 5.1.1
72
80
@@ -77,7 +85,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
77
85
78
86
* [ Abdelkader Boudih] ( https://github.com/seuros ) added a database generator
79
87
for the hierarchies table. Thanks!
80
- * [ Jason Weathered] ( https://github.com/jasoncodes ) fixed [ issue #117 ] ( https://github.com/mceachen /closure_tree/pull/117 )
88
+ * [ Jason Weathered] ( https://github.com/jasoncodes ) fixed [ issue #117 ] ( https://github.com/ClosureTree /closure_tree/pull/117 )
81
89
with the preordered traversal code that assumed the primary key column was called ` id ` . Thanks!
82
90
83
91
### 5.0.0
@@ -101,13 +109,13 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
101
109
102
110
### 4.6.2
103
111
104
- * Pulled in [ 106] ( https://github.com/mceachen /closure_tree/pull/106 ) which fixed a bug introduced
112
+ * Pulled in [ 106] ( https://github.com/ClosureTree /closure_tree/pull/106 ) which fixed a bug introduced
105
113
in 4.6.0 which broke if the numeric ordering column wasn't named 'sort_order'. Tests have been
106
114
added. Thanks for the fix, [ Fission Xuiptz] ( https://github.com/fissionxuiptz ) !
107
115
108
116
### 4.6.1
109
117
110
- * Address [ issue 60] ( https://github.com/mceachen /closure_tree/issues/60 ) (use ` .empty? ` rather
118
+ * Address [ issue 60] ( https://github.com/ClosureTree /closure_tree/issues/60 ) (use ` .empty? ` rather
111
119
than ` .nil? ` —thanks for the suggestion, [ Leonel Galán] ( https://github.com/leonelgalan ) ,
112
120
[ Doug Mayer] ( https://github.com/doxavore ) and [ Samnang Chhun] ( https://github.com/samnang ) !
113
121
@@ -134,7 +142,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
134
142
135
143
### 4.4.0
136
144
137
- * Added ``` .self_and_descendant_ids ``` and ``` .self_and_ancestors_ids ``` from [ PR92] ( https://github.com/mceachen /closure_tree/pull/92 ) .
145
+ * Added ``` .self_and_descendant_ids ``` and ``` .self_and_ancestors_ids ``` from [ PR92] ( https://github.com/ClosureTree /closure_tree/pull/92 ) .
138
146
Thanks, [ Kir Shatrov] ( https://github.com/kirs ) !
139
147
140
148
* Dropped support for Rails 3.0.
@@ -149,7 +157,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
149
157
### 4.2.9
150
158
151
159
* Support for Heroku's cray assets: precompile hack for Rails 4.
152
- Addresses [ issue 78] ( https://github.com/mceachen /closure_tree/issues/78 ) .
160
+ Addresses [ issue 78] ( https://github.com/ClosureTree /closure_tree/issues/78 ) .
153
161
Thanks for the assist, [ Alex Bowman] ( https://github.com/axlekb ) .
154
162
155
163
### 4.2.8
@@ -159,7 +167,7 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
159
167
### 4.2.7
160
168
161
169
* ``` self_and_ancestors ``` and ``` ancestry_hierarchy ``` are reloaded
162
- when nodes are reparented. Addresses [ issue 68] ( https://github.com/mceachen /closure_tree/issues/68 ) .
170
+ when nodes are reparented. Addresses [ issue 68] ( https://github.com/ClosureTree /closure_tree/issues/68 ) .
163
171
Thanks for the assist, [ Ivan Stana] ( https://github.com/istana ) .
164
172
165
173
### 4.2.6
@@ -179,12 +187,12 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
179
187
### 4.2.4
180
188
181
189
* Support for ``` root? ``` , ``` child? ``` , and proper parent-child associations
182
- when both the parent and the child are not persisted. Addresses [ issue 64] ( https://github.com/mceachen /closure_tree/issues/64 ) .
190
+ when both the parent and the child are not persisted. Addresses [ issue 64] ( https://github.com/ClosureTree /closure_tree/issues/64 ) .
183
191
Thanks for the help, [ Gabriel Mazetto] ( https://github.com/brodock ) !
184
192
185
193
### 4.2.3
186
194
187
- * Fixed ``` attr_accessible? ``` error introduced in 4.2.2 ([ issue 66] ( https://github.com/mceachen /closure_tree/issues/66 ) ).
195
+ * Fixed ``` attr_accessible? ``` error introduced in 4.2.2 ([ issue 66] ( https://github.com/ClosureTree /closure_tree/issues/66 ) ).
188
196
* Switched to use new WithAdvisoryLock::DatabaseAdapterSupport (in v0.0.9) to add Postgis support
189
197
190
198
### 4.2.2
@@ -214,11 +222,11 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
214
222
215
223
* Numeric, deterministically ordered siblings will always be [ 0..#{self_and_siblings.count}]
216
224
(previously, the sort order might use negative values, which broke the preordering).
217
- Resolves [ issue 49] ( https://github.com/mceachen /closure_tree/issues/49 ) . Thanks for the help,
225
+ Resolves [ issue 49] ( https://github.com/ClosureTree /closure_tree/issues/49 ) . Thanks for the help,
218
226
[ Leonel Galan] ( https://github.com/leonelgalan ) , [ Juan Hoyos] ( https://github.com/elhoyos ) , and
219
227
[ Michael Elfassy] ( https://github.com/elfassy ) !
220
228
221
- * The ``` order ``` option can be a symbol now. Resolves [ issue 46] ( https://github.com/mceachen /closure_tree/issues/46 ) .
229
+ * The ``` order ``` option can be a symbol now. Resolves [ issue 46] ( https://github.com/ClosureTree /closure_tree/issues/46 ) .
222
230
223
231
### 4.0.0
224
232
@@ -233,22 +241,22 @@ Closure Tree is now tested against Rails 5.1, just passed 50 contributors and
233
241
### 3.10.2
234
242
235
243
* Prevent faulty SQL statement when ``` #siblings ``` is called on an unsaved records.
236
- Resolves [ issue 52] ( https://github.com/mceachen /closure_tree/pull/52 ) . Perfect pull
244
+ Resolves [ issue 52] ( https://github.com/ClosureTree /closure_tree/pull/52 ) . Perfect pull
237
245
request by [ Gary Greyling] ( https://github.com/garygreyling ) .
238
246
239
247
* The ``` .roots ``` class method now correctly respects the ``` :order ``` option.
240
- Resolves [ issue 53] ( https://github.com/mceachen /closure_tree/issues/53 ) .
248
+ Resolves [ issue 53] ( https://github.com/ClosureTree /closure_tree/issues/53 ) .
241
249
Thanks for finding this, [ Brendon Muir] ( https://github.com/brendon ) !
242
250
243
251
### 3.10.1
244
252
245
253
* Multipart constant names like "Admin::PageHierarchy" are now supported.
246
- Resolves [ issue 47] ( https://github.com/mceachen /closure_tree/issues/47 ) .
254
+ Resolves [ issue 47] ( https://github.com/ClosureTree /closure_tree/issues/47 ) .
247
255
Thanks for the perfect pull request, [ Simon Menke] ( https://github.com/fd ) !
248
256
249
257
* Committing transactions involving large numbers of hierarchy model classes was very slow due
250
258
to hash collisions in the hierarchy class. A better hash implementation addressed
251
- [ issue 48] ( https://github.com/mceachen /closure_tree/issues/48 ) .
259
+ [ issue 48] ( https://github.com/ClosureTree /closure_tree/issues/48 ) .
252
260
Thanks, [ Joel Turkel] ( https://github.com/jturkel ) !
253
261
254
262
### 3.10.0
@@ -277,19 +285,19 @@ All three of these improvements were suggested by Andrew Bromwich. Thanks!
277
285
### 3.8.0
278
286
279
287
* Support for preordered descendants. This requires a numeric sort order column.
280
- Resolves [ feature request 38] ( https://github.com/mceachen /closure_tree/issues/38 ) .
288
+ Resolves [ feature request 38] ( https://github.com/ClosureTree /closure_tree/issues/38 ) .
281
289
* Moved modules from ``` acts_as_tree ``` into separate files
282
290
283
291
### 3.7.3
284
292
285
293
Due to MySQL's inability to lock rows properly, I've switched to advisory_locks for
286
294
all write paths. This will prevent deadlocks, addressing
287
- [ issue 41] ( https://github.com/mceachen /closure_tree/issues/41 ) .
295
+ [ issue 41] ( https://github.com/ClosureTree /closure_tree/issues/41 ) .
288
296
289
297
### 3.7.2
290
298
291
299
* Support for UUID primary keys. Addresses
292
- [ issue 40] ( https://github.com/mceachen /closure_tree/issues/40 ) . Thanks for the pull request,
300
+ [ issue 40] ( https://github.com/ClosureTree /closure_tree/issues/40 ) . Thanks for the pull request,
293
301
[ Julien] ( https://github.com/calexicoz ) !
294
302
295
303
### 3.7.1
@@ -300,7 +308,7 @@ all write paths. This will prevent deadlocks, addressing
300
308
### 3.7.0
301
309
302
310
** Thread safety!**
303
- * [ Advisory locks] ( https://github.com/mceachen /with_advisory_lock ) were
311
+ * [ Advisory locks] ( https://github.com/ClosureTree /with_advisory_lock ) were
304
312
integrated with the class-level ``` find_or_create_by_path ``` and ``` rebuild! ``` .
305
313
* Pessimistic locking is used by the instance-level ``` find_or_create_by_path ``` .
306
314
@@ -313,7 +321,7 @@ wasting time on the ruby side.
313
321
### 3.6.7
314
322
315
323
* Added workaround for ActiveRecord::Observer usage pre-db-creation. Addresses
316
- [ issue 32] ( https://github.com/mceachen /closure_tree/issues/32 ) .
324
+ [ issue 32] ( https://github.com/ClosureTree /closure_tree/issues/32 ) .
317
325
Thanks, [ Don Morrison] ( https://github.com/elskwid ) !
318
326
319
327
### 3.6.6
@@ -324,28 +332,28 @@ Thanks, [James Miller](https://github.com/bensie)!
324
332
### 3.6.5
325
333
326
334
* Use ``` quote_table_name ``` instead of ``` quote_column_name ``` . Addresses
327
- [ issue 29] ( https://github.com/mceachen /closure_tree/issues/29 ) . Thanks,
335
+ [ issue 29] ( https://github.com/ClosureTree /closure_tree/issues/29 ) . Thanks,
328
336
[ Marcello Barnaba] ( https://github.com/vjt ) !
329
337
330
338
### 3.6.4
331
339
332
340
* Use ``` .pluck ``` when available for ``` .ids_from ``` . Addresses
333
- [ issue 26] ( https://github.com/mceachen /closure_tree/issues/26 ) . Thanks,
341
+ [ issue 26] ( https://github.com/ClosureTree /closure_tree/issues/26 ) . Thanks,
334
342
[ Chris Sturgill] ( https://github.com/sturgill ) !
335
343
336
344
### 3.6.3
337
345
338
- * Fixed [ issue 24] ( https://github.com/mceachen /closure_tree/issues/24 ) , which optimized ``` #hash_tree ```
346
+ * Fixed [ issue 24] ( https://github.com/ClosureTree /closure_tree/issues/24 ) , which optimized ``` #hash_tree ```
339
347
for roots. Thanks, [ Saverio Trioni] ( https://github.com/rewritten ) !
340
348
341
349
### 3.6.2
342
350
343
- * Fixed [ issue 23] ( https://github.com/mceachen /closure_tree/issues/23 ) , which added support for ``` #siblings ```
351
+ * Fixed [ issue 23] ( https://github.com/ClosureTree /closure_tree/issues/23 ) , which added support for ``` #siblings ```
344
352
when sort_order wasn't specified. Thanks, [ Gary Greyling] ( https://github.com/garygreyling ) !
345
353
346
354
### 3.6.1
347
355
348
- * Fixed [ issue 20] ( https://github.com/mceachen /closure_tree/issues/20 ) , which affected
356
+ * Fixed [ issue 20] ( https://github.com/ClosureTree /closure_tree/issues/20 ) , which affected
349
357
deterministic ordering when siblings where different STI classes. Thanks, [ edwinramirez] ( https://github.com/edwinramirez ) !
350
358
351
359
### 3.6.0
@@ -355,16 +363,16 @@ Added support for:
355
363
* ActiveRecord::Base.table_name_prefix
356
364
* ActiveRecord::Base.table_name_suffix
357
365
358
- This addresses [ issue 21] ( https://github.com/mceachen /closure_tree/issues/21 ) . Thanks, [ Judd Blair] ( https://github.com/juddblair ) !
366
+ This addresses [ issue 21] ( https://github.com/ClosureTree /closure_tree/issues/21 ) . Thanks, [ Judd Blair] ( https://github.com/juddblair ) !
359
367
360
368
### 3.5.2
361
369
362
370
* Added ``` find_all_by_generation ```
363
- for [ feature request 17] ( https://github.com/mceachen /closure_tree/issues/17 ) .
371
+ for [ feature request 17] ( https://github.com/ClosureTree /closure_tree/issues/17 ) .
364
372
365
373
### 3.4.2
366
374
367
- * Fixed [ issue 18] ( https://github.com/mceachen /closure_tree/issues/18 ) , which affected
375
+ * Fixed [ issue 18] ( https://github.com/ClosureTree /closure_tree/issues/18 ) , which affected
368
376
append_node/prepend_node ordering when the first node didn't have an explicit order_by value
369
377
370
378
### 3.4.1
@@ -373,7 +381,7 @@ This addresses [issue 21](https://github.com/mceachen/closure_tree/issues/21). T
373
381
374
382
### 3.4.0
375
383
376
- Fixed [ issue 15] ( https://github.com/mceachen /closure_tree/issues/15 ) :
384
+ Fixed [ issue 15] ( https://github.com/ClosureTree /closure_tree/issues/15 ) :
377
385
* "parent" is now attr_accessible, which adds support for constructor-provided parents.
378
386
* updated readme accordingly
379
387
@@ -383,7 +391,7 @@ Fixed [issue 15](https://github.com/mceachen/closure_tree/issues/15):
383
391
384
392
### 3.3.1
385
393
386
- * Added support for partially-unsaved hierarchies [ issue 13] ( https://github.com/mceachen /closure_tree/issues/13 ) :
394
+ * Added support for partially-unsaved hierarchies [ issue 13] ( https://github.com/ClosureTree /closure_tree/issues/13 ) :
387
395
```
388
396
a = Tag.new(name: "a")
389
397
b = Tag.new(name: "b")
@@ -398,7 +406,7 @@ a.save
398
406
### 3.2.1
399
407
400
408
* Added ``` ancestor_ids ``` , ``` descendant_ids ``` , and ``` sibling_ids ```
401
- * Added example spec to solve [ issue 9] ( https://github.com/mceachen /closure_tree/issues/9 )
409
+ * Added example spec to solve [ issue 9] ( https://github.com/ClosureTree /closure_tree/issues/9 )
402
410
403
411
### 3.2.0
404
412
@@ -410,7 +418,7 @@ a.save
410
418
411
419
### 3.0.4
412
420
413
- * Merged [ pull request] ( https://github.com/mceachen /closure_tree/pull/8 ) to fix ``` .siblings ``` and ``` .self_and_siblings ```
421
+ * Merged [ pull request] ( https://github.com/ClosureTree /closure_tree/pull/8 ) to fix ``` .siblings ``` and ``` .self_and_siblings ```
414
422
(Thanks, [ eljojo] ( https://github.com/eljojo ) !)
415
423
416
424
### 3.0.3
@@ -425,7 +433,7 @@ a.save
425
433
426
434
### 3.0.1
427
435
428
- * Support 3.2.0's fickle deprecation of InstanceMethods (Thanks, [ jheiss] ( https://github.com/mceachen /closure_tree/pull/5 ) )!
436
+ * Support 3.2.0's fickle deprecation of InstanceMethods (Thanks, [ jheiss] ( https://github.com/ClosureTree /closure_tree/pull/5 ) )!
429
437
430
438
### 3.0.0
431
439
0 commit comments