api-regulator 0.1.24 → 0.1.25

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: 6b4abd774431dfae284e9714ed72d84799e40d8c86e9b154aaa6827c75abb057
4
- data.tar.gz: 8714012268076ad42e78a64cfb1e4d556cce657e97451f2a7552c8b271027718
3
+ metadata.gz: 4bfac01d6824d8766853d5828ea9f0eddd0e72dd76fb6b97c7bf3927803f7df1
4
+ data.tar.gz: 87cb03abe3c0b824fd60192cae2a2e91d856b2781a07e6db17ff6de087e6d81d
5
5
  SHA512:
6
- metadata.gz: 7db24c6a9040d526d05be3686e5e66bfe367d281665f7fa209a8d202d93bc9d0bb1725c750ccb0cedd4e73768206d207729a1d87362eba7fbdb5b5a4cf791641
7
- data.tar.gz: e89a9066ceac3b1d082fc82150550a7aaaea20bb617188b772009e3aa14218e17fceebe67213ad8e2837ad94992ca5278abd595b8de53c1357f4e481f1f6ad3e
6
+ metadata.gz: cb4c663aa47979a8199ecd58acd61676f266dd6cb03beed0158a6bc5a9060c8f5af19ce08821533627c9bce2ae6409a0be23ce820a0d11c2c242195b531d59c8
7
+ data.tar.gz: d75f1bfe1f0f045868fedc9782fabb57825d3815e85572bc0be24c3f62eab5d2db868710a73206a138b8f334477792fdd2cbc92ad74646bd8d0c205e71a15fdc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api-regulator (0.1.24)
4
+ api-regulator (0.1.25)
5
5
  activemodel (~> 8.0)
6
6
  activesupport (~> 8.0)
7
7
 
@@ -104,7 +104,9 @@ module ApiRegulator
104
104
  end
105
105
 
106
106
  # Store the nested class under the parent class namespace
107
- parent_class.const_set(class_name, nested_validator_class)
107
+ silence_warnings do
108
+ parent_class.const_set(class_name, nested_validator_class)
109
+ end
108
110
  nested_validator_class
109
111
  end
110
112
  end
@@ -251,7 +253,9 @@ module ApiRegulator
251
253
  api_definitions.each do |api_definition|
252
254
  class_name = build_class_name(api_definition.controller_path, api_definition.action_name)
253
255
  validator_class = build_class(api_definition.params, api_definition.action_name)
254
- Validator.const_set(class_name, validator_class)
256
+ silence_warnings do
257
+ Validator.const_set(class_name, validator_class)
258
+ end
255
259
  end
256
260
  end
257
261
 
@@ -260,7 +264,9 @@ module ApiRegulator
260
264
  api_definition.responses.each do |code, params|
261
265
  class_name = build_class_name(api_definition.controller_path, api_definition.action_name, code)
262
266
  validator_class = build_class(params.children, api_definition.action_name)
263
- Validator.const_set(class_name, validator_class)
267
+ silence_warnings do
268
+ Validator.const_set(class_name, validator_class)
269
+ end
264
270
  end
265
271
  end
266
272
  end
@@ -1,3 +1,3 @@
1
1
  module ApiRegulator
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-regulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Massanek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-06 00:00:00.000000000 Z
11
+ date: 2025-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport