shale-builder 0.8.2 → 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: d988ec578eade2878ce88bdbfc837a556244c0af4524be6f987619955fcb0adb
4
- data.tar.gz: ab4dc705445e863fbef158967abcc98b102c5c19372e5795ec1e278769dcd048
3
+ metadata.gz: 7970e8413f06bbd72677801d4fb9ee461a4ef39141eeb806e1a9b850c87bccc8
4
+ data.tar.gz: ab5b02637ba988451b980a069b486ab032b3fdd43b13ccd923b3d143738d052f
5
5
  SHA512:
6
- metadata.gz: 64b0a0f0ad4935758302b2998d9b6694eb499ea8f1f8a4ba0530ebb2e8f3c00b24945e8c2bc78ef1ca02228f8d53ea7629f4cd1e925b5c3d53ca55c48779941b
7
- data.tar.gz: 3edee07298c79fa6bc48c7364581b41b212a75f365c29910729294c41dafa0c03c5233b58be4f9ce51e2c7c2ffa4a9b8f7101f7e910fdc7e1369a307de3cbb49
6
+ metadata.gz: a42e2f349faf66e29b5b2da67b253286366e9a005db740525571b328bc21e7fafc879df9035c3b164cd758e6a172b305240580bf659abf794314e4ad0eeedb0a
7
+ data.tar.gz: 6e414ee6a4381fac4a3a38f75db91155dfeef9603e68b0b4e80d55fda5280640fc6e1996646c98d6bba75178471c3cae962c6b60e954ceb5b1822d4355e5b5c2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ 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.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
+
8
15
  ## [0.8.2] - 2025-10-24
9
16
 
10
17
  [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.1...v0.8.2)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shale-builder (0.8.2)
4
+ shale-builder (0.8.3)
5
5
  booleans (>= 0.1)
6
6
  shale (< 2.0)
7
7
  sorbet-runtime (> 0.5)
@@ -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.2'
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.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak