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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 276386e9beb6287e8a41c53eb5dd126a32026c925efbd4747e4a3350ad42b324
4
- data.tar.gz: b547a1e30050859c4a85a51f3853a94c04e9c959405f206578dccf264ee91c23
3
+ metadata.gz: 88f71996b9993bcc361ea0306aac58481278d85d907a30fb00da09ac69521ea3
4
+ data.tar.gz: b9e378a4e4a93a20b645138f732dc0031f5cce9210f4ded0122325bc9fde8739
5
5
  SHA512:
6
- metadata.gz: '0827cf02ca0e2613eff985b05a05fd047b814245cccf4a4eb6af202726fe2768851b5f06abcf1dbd21362d99ccfc5e244ee6db46af3d7cc597ff060d1faa4cb0'
7
- data.tar.gz: 7a8852c7ac8cdd0a4f334492eda3dd63cf8275410bb41b39d9616b9297cd97fdac2c6f30832b40f1c4faf67c5a0133afae63596f97dd527a831cf8054c6239a7
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!
@@ -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).lock!
15
+ scope_record.send(scope_association)&.lock!
16
16
  end
17
17
  else
18
18
  @model.where(scope_record.slice(*scope_columns)).lock!
@@ -1,3 +1,3 @@
1
1
  module Positioning
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
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.5
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: 2024-12-03 00:00:00.000000000 Z
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.2.32
83
+ rubygems_version: 3.5.22
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Simple positioning for Active Record models.