positioning 0.4.5 → 0.4.6
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/positioning/healer.rb +1 -1
- data/lib/positioning/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88f71996b9993bcc361ea0306aac58481278d85d907a30fb00da09ac69521ea3
|
4
|
+
data.tar.gz: b9e378a4e4a93a20b645138f732dc0031f5cce9210f4ded0122325bc9fde8739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd750e9f02221a4643ecbc590ca46ed133d1ecb2bbfb69162c319997b1e5eb70ceea971f3dd14c7f0e45bb214d56d516a4e2ff160bb8aab916804beba629bfc
|
7
|
+
data.tar.gz: f3e8773fc1984c65662c374066529bbf3bc597e32f4f45f018383ad30d307354ab4c8d85bffee2ca7a5cdabb6d4fac72dda12491228d6cdd6117ec251292fe58
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.4.6] - 2025-05-01
|
4
|
+
|
5
|
+
- Fix healing for positioning with nullable scope (parent in trees, for example). Thanks @pyromaniac!
|
6
|
+
|
3
7
|
## [0.4.5] - 2024-12-04
|
4
8
|
|
5
9
|
- Fix healing a list with a default scope `:order` and/or `:select`. Thanks @LukasSkywalker!
|
data/lib/positioning/healer.rb
CHANGED
@@ -12,7 +12,7 @@ module Positioning
|
|
12
12
|
@model.transaction do
|
13
13
|
if scope_associations.present?
|
14
14
|
scope_associations.each do |scope_association|
|
15
|
-
scope_record.send(scope_association)
|
15
|
+
scope_record.send(scope_association)&.lock!
|
16
16
|
end
|
17
17
|
else
|
18
18
|
@model.where(scope_record.slice(*scope_columns)).lock!
|
data/lib/positioning/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: positioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendon Muir
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.
|
83
|
+
rubygems_version: 3.5.22
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Simple positioning for Active Record models.
|