typed_params 1.4.0 → 1.4.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: aedcf15896c7a9b3975e1d8fcd5ec05752120f813ff92707fa9c7684fdb77f64
4
- data.tar.gz: 1593452e1eef49a1ec497f9118ff3f08f3902ed117d9785f4c0f54b3bcf417b8
3
+ metadata.gz: f3db097654cd261a776ba35201bcf702180ed68f3010076ff7ef0482aee7b459
4
+ data.tar.gz: 55ba5af0bd740da0b08bda6b40ae39734e16bc1145d1d335a922b439d6ac65de
5
5
  SHA512:
6
- metadata.gz: fad33f1bac6f33d40487e88fab1bba065223e9986c3cf96fc1dc2654d87b2cbc2b59d82af073ca833a71e5d953eab6793f43f2b8b4bc698e21d21e50c544b96b
7
- data.tar.gz: 2b0b082f223b1a7b6fd31d1f2a8b4f86364a117cf4efb1893d31a3c395a276ceaf0797481b9958679780c3b1814d62c842b3e696ff605a9b4bd89d4e52ed2649
6
+ metadata.gz: 466aced438f27915ffbb26005090ac5caa85b801491d3e426eb8af86cb863c8504cf0e36d3ae1b1f3b3f629c3ff1a4e5861a78fc3a48edc5bd94778831097114
7
+ data.tar.gz: f571e30f4d4dfef9bb83d35c095901814d3301a887779fc36b93a67f885d5835ca52a7f48de21c65bbc82544b6253556c8933b6450a3ee3890e9704afe562fdf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ - Remove deprecated `ActiveSupport::Configurable`.
6
+
3
7
  ## 1.4.0
4
8
 
5
9
  - Add `depth:` validator for asserting maximum depth of `hash` and `array` params.
@@ -2,14 +2,13 @@
2
2
 
3
3
  module TypedParams
4
4
  class Configuration
5
- include ActiveSupport::Configurable
6
-
7
5
  ##
8
6
  # ignore_nil_optionals defines how nil optionals are handled.
9
7
  # When enabled, optional params that are nil will be dropped
10
8
  # given the schema does not allow_nil. Essentially, they
11
9
  # will be treated as if they weren't provided.
12
- config_accessor(:ignore_nil_optionals) { false }
10
+ class_attribute :ignore_nil_optionals
11
+ self.ignore_nil_optionals = false
13
12
 
14
13
  ##
15
14
  # path_transform defines the casing for parameter paths.
@@ -22,7 +21,8 @@ module TypedParams
22
21
  # - :dash
23
22
  # - nil
24
23
  #
25
- config_accessor(:path_transform) { nil }
24
+ class_attribute :path_transform
25
+ self.path_transform = nil
26
26
 
27
27
  ##
28
28
  # key_transform defines the casing for parameter keys.
@@ -35,6 +35,7 @@ module TypedParams
35
35
  # - :dash
36
36
  # - nil
37
37
  #
38
- config_accessor(:key_transform) { nil }
38
+ class_attribute :key_transform
39
+ self.key_transform = nil
39
40
  end
40
41
  end
@@ -269,7 +269,6 @@ module TypedParams
269
269
  end
270
270
  end
271
271
 
272
-
273
272
  def root? = key == ROOT
274
273
  def child? = !root?
275
274
  def children? = !children.blank?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TypedParams
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeke Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails