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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c49a8b31bcfbc287a47c4b03ceed6902efc763ef2b120b89fbd18aa9ac93a30e
4
- data.tar.gz: f1cf8e4f308fb7ec6b18526a4c86e715416e841fd91f010205b6bdfdd4e3accb
3
+ metadata.gz: 89ffc3427a7df0f6b3adb3e3bb7311d6b8b31bc3be654672033d5fd8c2a6d57f
4
+ data.tar.gz: b4de2f5af9343af5fd29d21130e7e2a0d1abf062388a3e7e7c40683f1f965563
5
5
  SHA512:
6
- metadata.gz: 7d8d4702482f4d9a3183d991031b9fdb870ad2ff6de7eac8a8a3fac7dd8bb68d7b34bef6add6f22ec5ef51d430194082cce6d8a15d63b8f059feb2ecc7ef4875
7
- data.tar.gz: '09e1135d7334ff5181df9574c4554ea0a28c4b350b50049d56e16cb0cec07a7b3e60a7ebc33d119dd6704211d152d293627a7c7372a604ce05167e877515164e'
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.ancestry || ' ') <=> (b.ancestry || ' ')
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
@@ -1,3 +1,3 @@
1
1
  module Ancestry
2
- VERSION = '4.3.2'
2
+ VERSION = '4.3.3'
3
3
  end
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.2
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-03-26 00:00:00.000000000 Z
12
+ date: 2023-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord