salestation 4.6.0 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/salestation/app/input_verification.rb +3 -2
- data/salestation.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1245b9d949f1d4f8cfb1ce04208f72cd4b0601e9bc798f65a86a83199deb1e1
|
4
|
+
data.tar.gz: d35c8d0364840fb99a3667d007e9cc2ae9c80111bdd86b245f159ab337a98932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fe8ec62ba1562d3ab7d24b96657c2eebc47c898e226f4a5af84050a3f839cdb850828e79da6caed07f958a3560881cf068690cff3f1c27fad55b12793c2c33
|
7
|
+
data.tar.gz: be76d4e7151eeb1dcd378fd65c0f12d1c519cceb652eb8cb702f6db3692a7491e8190aecd0434fea27671b04ef379765fa062d1bffe91bd5c0ebeec0c0a5795c
|
@@ -5,7 +5,8 @@ module Salestation
|
|
5
5
|
module InputVerification
|
6
6
|
def verify_input(schema)
|
7
7
|
-> (request) do
|
8
|
-
|
8
|
+
input = request.input
|
9
|
+
result = schema.call(input)
|
9
10
|
|
10
11
|
dry_validation_version = Gem.loaded_specs['dry-validation'].version
|
11
12
|
if dry_validation_version < Gem::Version.new('1.0')
|
@@ -19,7 +20,7 @@ module Salestation
|
|
19
20
|
end
|
20
21
|
elsif dry_validation_version <= Gem::Version.new('1.8')
|
21
22
|
if result.success?
|
22
|
-
request.replace_input(
|
23
|
+
request.replace_input(input)
|
23
24
|
else
|
24
25
|
Deterministic::Result::Failure(
|
25
26
|
Errors::InvalidInput.new(errors: result.errors.to_h, hints: result.hints.to_h)
|
data/salestation.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salestation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glia TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|