ancestry 4.3.2 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ancestry/class_methods.rb +1 -1
- data/lib/ancestry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89ffc3427a7df0f6b3adb3e3bb7311d6b8b31bc3be654672033d5fd8c2a6d57f
|
|
4
|
+
data.tar.gz: b4de2f5af9343af5fd29d21130e7e2a0d1abf062388a3e7e7c40683f1f965563
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f064374c4c6da864aba9e90b108a2110d629999e6c794e98fc449e45077ac8ea59803b6e75a743f2d614e70af7ca6eef6644f067c115bd197235fbcf8d4a402e
|
|
7
|
+
data.tar.gz: f3b56c40bc4b776b18f5ac0543f376c44e5bdef6b400155f16aac6913582c95f2c186a2774fcb799565c12d52cf1941a94f0632be67263e75b53ee8e3b978c99
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Doing our best at supporting [SemVer](http://semver.org/) with
|
|
4
4
|
a nice looking [Changelog](http://keepachangelog.com).
|
|
5
5
|
|
|
6
|
+
## Version [4.3.3] <sub><sup>2023-04-01</sub></sup>
|
|
7
|
+
|
|
8
|
+
* Fix: sort_by_ancesty with custom ancestry_column [#656](https://github.com/stefankroes/ancestry/pull/656) (thx @mitsuru)
|
|
9
|
+
|
|
6
10
|
## Version [4.3.2] <sub><sup>2023-03-25</sub></sup>
|
|
7
11
|
|
|
8
12
|
* Fix: added back fields that were removed in #589 [#647](https://github.com/stefankroes/ancestry/pull/647) (thx @rastamhadi)
|
|
@@ -109,7 +109,7 @@ module Ancestry
|
|
|
109
109
|
|
|
110
110
|
unless arranged
|
|
111
111
|
presorted_nodes = nodes.sort do |a, b|
|
|
112
|
-
rank = (a.
|
|
112
|
+
rank = (a.public_send(ancestry_column) || ' ') <=> (b.public_send(ancestry_column) || ' ')
|
|
113
113
|
rank = yield(a, b) if rank == 0 && block_given?
|
|
114
114
|
rank
|
|
115
115
|
end
|
data/lib/ancestry/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ancestry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Kroes
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-
|
|
12
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|