second_amendment_wholesale 1.0.1 → 1.0.3

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: b1652fce6819e8eb5425a78063e55beb9f150bf5f5ef9bbfdbd58d53203aed30
4
- data.tar.gz: a864718c32b9f61ceeb19d3f40cb89e8cf3a4721d6fde65d2e31db34183d10e8
3
+ metadata.gz: 3b2031b3f54e92110f32441540604ac8f2c1beb169a0c5e8ea7debae41f337ef
4
+ data.tar.gz: 7dc3673f4b4765364ef2c73251549986d108cac541f17a696c1817ee53dc0033
5
5
  SHA512:
6
- metadata.gz: d8c2631d74a417be251cbd047f14fd518542e6c8b95fd9a73db9cef23a8ef136441e487905c0afca349e31d80f01da30949922440c42f8b18d50ffcf193d0b50
7
- data.tar.gz: 2f3f6b47072199672aace026aca0c1e7fe47393c56bf558e85a36d9d113983e840981d0cc450238e5c5fe45b3e91200085f734a166e495c9e3c537789fe509ed
6
+ metadata.gz: 18f655c133b2e7b66c07cdd34f5760c6204b8f6a233c1d7a7c2441812b9b484b3e943bcd45d8c4033eb29894c21185fb03e73998c11cfd2b29ab8adf44ab2f08
7
+ data.tar.gz: a4f36ca2f492cc34c3286530ca77354c8f0ae6f8a9e3cceac456089f86835ada3d64da790bdc6fdb4f17919e75804324df9831a598ebec49421cb09245835be7
@@ -67,8 +67,10 @@ module SecondAmendmentWholesale
67
67
  end
68
68
 
69
69
  def get_features(sku)
70
- attributes = @attributes.find{ |attribute| attribute[:sku] == sku }
70
+ attributes = @attributes.find { |attribute| attribute[:sku] == sku }
71
71
 
72
+ return {} unless attributes.present?
73
+
72
74
  {
73
75
  caliber: attributes[:caliber1],
74
76
  action: attributes[:action_type],
@@ -21,6 +21,8 @@ module SecondAmendmentWholesale
21
21
  )
22
22
 
23
23
  response.body.present?
24
+ rescue SecondAmendmentWholesale::Error::NotAuthorized => e
25
+ false
24
26
  end
25
27
 
26
28
  end
@@ -1,3 +1,3 @@
1
1
  module SecondAmendmentWholesale
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: second_amendment_wholesale
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Brown
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport