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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a374933b6b6c2191a57c6cceeb4dfed40263dee8378587f47b15a9b036f9867
4
- data.tar.gz: d66178d5ac10fdf0a4ffc317cf28521912629d09105aa03feeaa191ef8183060
3
+ metadata.gz: a1245b9d949f1d4f8cfb1ce04208f72cd4b0601e9bc798f65a86a83199deb1e1
4
+ data.tar.gz: d35c8d0364840fb99a3667d007e9cc2ae9c80111bdd86b245f159ab337a98932
5
5
  SHA512:
6
- metadata.gz: 69ef7cb09a68ee274d797079f3f4fe241cc28aab7ece3d8f18a59b9b478a276444c4e058029967e02d716d743b6ecf33a8f50ca09cc0ca271ff42c7f42f50e81
7
- data.tar.gz: 9bef5feb7d0cf02e11639c26115846770e69ba1233db20a2090fba46e93a17259fc6eca1cabc71693a1efcd192b4edc53ad357082405e06743d2b35f859253cd
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
- result = schema.call(request.input)
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(result.to_h)
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
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "salestation"
7
- spec.version = "4.6.0"
7
+ spec.version = "4.6.1"
8
8
  spec.authors = ["Glia TechMovers"]
9
9
  spec.email = ["techmovers@glia.com"]
10
10
 
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.0
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-26 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler