enum_errors_away 0.3.0 → 0.3.1

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: f3932800732f02830941c1676c43c661c514b558e5e0d5a2102b610c75ef14a6
4
- data.tar.gz: 20484a1c14138bb7aa73cca142425cc52cb5fb1d3d7f60b23a3361a02c8338aa
3
+ metadata.gz: a042969d984fbb4972117e18c9a8f8d95b3cf83cd517ff8bfa52d2fd5356bdd2
4
+ data.tar.gz: cce23409d8eafac9e6cd2a8230127ef6060644f81fc6bd7b5871bb15cfc2ddb4
5
5
  SHA512:
6
- metadata.gz: 38fbed4fee24a51fd0eb64314ba20d35e2c635c5345455b669993659fd6f591cef240c17a59993bffe2e2351d42cfffe12f9818e14ef2236c7a9af60c6c95337
7
- data.tar.gz: d78510a53214d5874e00f9de531e5d32dcfb9c5bb0af15c20b3f72940d4a032b99dcba9dc86a229db25c31940fd87304f720d2299e6527a201bed01a5b4a260a
6
+ metadata.gz: 6fd2754ab0fc90df56e0170f6b61f37083c7a9ccdb111acc831bcba1d5bf1a0e473ee2dd12114b2f651ba5d3b2c1f5895dc86833200e1248259450aa2c6394c4
7
+ data.tar.gz: d12a7d77b11ad0644d1c65d4aa6b17773d4eef109d1f856af9f590574de7b2b3fd6a2b16d54d05481e4e2afc7f1f365b2403e2b22d44f65df7534508545e858c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1] - 2025-11-28
4
+
5
+ ### Fixed
6
+
7
+ - Catch `RuntimeError` in addition to `ArgumentError` for enum attribute type errors. Rails 8 raises `RuntimeError` for undeclared enum attributes during schema loading, which was causing the first test run to fail.
8
+
3
9
  ## [0.3.0] - 2025-11-18
4
10
 
5
11
  ### Changed
@@ -44,7 +44,7 @@ module EnumErrorsAway
44
44
  # Call the original enum method
45
45
  begin
46
46
  super(name, values, **options)
47
- rescue ArgumentError => e
47
+ rescue ArgumentError, RuntimeError => e
48
48
  raise e unless e.message.include?('Undeclared attribute type for enum')
49
49
 
50
50
  # Fallback: declare missing attributes and retry
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EnumErrorsAway
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_errors_away
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampo Kuokkanen