shale-builder 0.8.1 → 0.8.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: 7ee9219ef795c936cc3572d0eef8bed6c18f5dec8b16de794a931ca2dab3a3ec
4
- data.tar.gz: 74a674e79493cbb9e44cea7fc37e7463fb476aaf4ce49b717bac00996c1069ea
3
+ metadata.gz: 7970e8413f06bbd72677801d4fb9ee461a4ef39141eeb806e1a9b850c87bccc8
4
+ data.tar.gz: ab5b02637ba988451b980a069b486ab032b3fdd43b13ccd923b3d143738d052f
5
5
  SHA512:
6
- metadata.gz: e811406ab6d236c1e226b7d1c3bc9ea2936be56befd48bae227e0a64e51ea304bc5e7baa7e73157b56826a2cb1874fe321e6842cae5a39af746126813ac97683
7
- data.tar.gz: ec643d1f6f39439c7d8393b32c963ce42dbc85d0ca23e7055a738b2d02f6d575ec4178fe3b9f3a3465a8c14fc1b34fb52f3660b1b77f5e341711bb253e7cb009
6
+ metadata.gz: a42e2f349faf66e29b5b2da67b253286366e9a005db740525571b328bc21e7fafc879df9035c3b164cd758e6a172b305240580bf659abf794314e4ad0eeedb0a
7
+ data.tar.gz: 6e414ee6a4381fac4a3a38f75db91155dfeef9603e68b0b4e80d55fda5280640fc6e1996646c98d6bba75178471c3cae962c6b60e954ceb5b1822d4355e5b5c2
data/CHANGELOG.md CHANGED
@@ -5,7 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.8.0] - 2025-10-24
8
+ ## [0.8.3] - 2025-10-24
9
+
10
+ [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.2...v0.8.3)
11
+
12
+ ### Changes
13
+ - Fix `valid?`
14
+
15
+ ## [0.8.2] - 2025-10-24
16
+
17
+ [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.1...v0.8.2)
18
+
19
+ ### Changes
20
+ - Fix infinite recursion in `Shale::Builder::NestedValidations#validatable_attribute_names`
21
+
22
+ ## [0.8.1] - 2025-10-24
9
23
 
10
24
  [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.0...v0.8.1)
11
25
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shale-builder (0.8.1)
4
+ shale-builder (0.8.3)
5
5
  booleans (>= 0.1)
6
6
  shale (< 2.0)
7
7
  sorbet-runtime (> 0.5)
@@ -40,7 +40,7 @@ module Shale
40
40
 
41
41
  #: -> Array[Symbol]
42
42
  def validatable_attribute_names
43
- validatable_attribute_names.keys
43
+ validatable_attributes.keys
44
44
  end
45
45
  end
46
46
  mixes_in_class_methods ClassMethods
@@ -59,7 +59,7 @@ module Shale
59
59
  def valid?
60
60
  result = super
61
61
 
62
- validatable_attribute_names.each_key do |name|
62
+ validatable_attribute_names.each do |name|
63
63
  next unless name
64
64
 
65
65
  val = public_send(name)
@@ -67,14 +67,14 @@ module Shale
67
67
  next if val.valid?
68
68
 
69
69
  result = false
70
- import_errors(val)
70
+ import_errors(name, val)
71
71
  end
72
72
 
73
73
  result
74
74
  end
75
75
 
76
- #: (ActiveModel::Validations?) -> void
77
- def import_errors(obj)
76
+ #: (Symbol | String, ActiveModel::Validations?) -> void
77
+ def import_errors(name, obj)
78
78
  return unless obj
79
79
 
80
80
  errlist = errors
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Shale
4
4
  module Builder
5
- VERSION = '0.8.1'
5
+ VERSION = '0.8.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shale-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak