salestation 4.0.1 → 4.0.2

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: ee35e90cf574b4f34cc2105366dbd8a5b9a3fedd8f1c5dd8313b45406055a553
4
- data.tar.gz: 91c6dec1705886e385d4c40ddad5c974b62bc315faa4d1e5419e9db2479900a7
3
+ metadata.gz: 85ac2feb504421f1ab20912abbf6994765d3ad6b743360a4e47c67a5bb362774
4
+ data.tar.gz: 3e6571aeb33d1c2edd94857a6de854e477f8e3a87a2abeac8d352634e01e3012
5
5
  SHA512:
6
- metadata.gz: b6c123447543bf3fd0c7e9a6633e6137816d729fd516c7bc1372299203b9827f3d8c1a84f4e90d40af09f79194b1cb8d3fe86cc078a0835f5438b19c8a667a81
7
- data.tar.gz: 0a6a27008d3556219cdbcf2109799b80ef71dc34f4b945c0ad159e278a13852a5532915e45c51a2b53705125f0da9635853e52b8c17ac57853d5c0fb4e27b39b
6
+ metadata.gz: 6d0a4278a94c18bc1a5a5286c0b3941701fda3182d9bcbc27d5b29ccf57841b296b618a75ef67fe1e8a3e88f8c5a649fc3100803d2e79c1d812b0f90b2c13e12
7
+ data.tar.gz: 80a64adaf82c53f673926a47cc389ae8554c589aa52e41c84ee23a68807d1c49b098c72bf5a338cd0255f689176c0e44f15b7fe0389ea3a90ec89d0bd3a54827
@@ -125,8 +125,10 @@ module Salestation
125
125
  extracted_data[filter] = request_hash[stringified_key] if request_hash.key?(stringified_key)
126
126
  when Hash
127
127
  filter.each do |key, nested_filters|
128
- if request_hash.key?(key.to_s)
129
- extracted_data[key] = extract(nested_filters, request_hash.fetch(key.to_s))
128
+ stringified_key = key.to_s
129
+ if request_hash.key?(stringified_key)
130
+ value = request_hash.fetch(stringified_key)
131
+ extracted_data[key] = value.nil? ? nil : extract(nested_filters, value)
130
132
  end
131
133
  end
132
134
  end
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.0.1"
7
+ spec.version = "4.0.2"
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.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glia TechMovers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler