interactor-validation 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: b8c04f34a47f6d887079d08a07958d91c19932a1b3c190faaa0ba4f1a85dbbf2
4
- data.tar.gz: 167cbca80c87fe0519f3bab2a1e36c4d753366126e5587d3559907473d558812
3
+ metadata.gz: dcab1b0ef807a7e0c68d8c56570d7e3dd20337c0cb597015b2740132738c5c14
4
+ data.tar.gz: 82d5c575039217f7f6a90cb9a67677c980d74120caa59c7dc12e52f74688e056
5
5
  SHA512:
6
- metadata.gz: 03a955748e4429b6e141a17292484ec49bf52c5a8af056c7436270f91a9a536c1e782a6ca7d3af38b4437736dd960491735eb233c4abe3599d96a604d9297966
7
- data.tar.gz: 0ba87d4e8591ff0ba7cb260d10bda55c8d0526bb8de75cc66a7c81b0addf2d5355d4f9da9919e3ad76fe3052e43868d7af39eb5d57729319ed92500ad12c5e61
6
+ metadata.gz: 553e1c172909fcb5dd3a16b00bfead612de5c1e46e95611014dd830d4bf46cd957c019613ed19c05775b236ef77e496b9d8a82a832badf731b74f63ff06a9ecc
7
+ data.tar.gz: 2382f09479bcc17d822113c3984c70ff341c7f583393ce6ee342c359aecb60139de92e01559934e84013e4a95368791b202b26eed314953df583be5f5cf5ef6d
data/README.md CHANGED
@@ -165,7 +165,11 @@ Configure behavior for all interactors:
165
165
  ```ruby
166
166
  # config/initializers/interactor_validation.rb
167
167
  Interactor::Validation.configure do |config|
168
- # Error format: :default (ActiveModel-style) or :code (structured codes)
168
+ # Error format mode - Available options:
169
+ # :default - ActiveModel-style messages (default)
170
+ # { attribute: :email, type: :blank, message: "Email can't be blank" }
171
+ # :code - Structured error codes for APIs
172
+ # { code: "EMAIL_IS_REQUIRED" }
169
173
  config.error_mode = :default
170
174
 
171
175
  # Stop at first error for better performance
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Interactor
4
4
  module Validation
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interactor-validation
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
  - Wilson Anciro