silencer_shop 1.1.2 → 1.1.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: 527fdc0f009ce9fb631e3bfa8df924e16e587d6592f8adb5f7facee165e009c0
4
- data.tar.gz: 809fca7c53baa890b9fefab7ba57962d0c48a9b204dbc78fe206e6f9b0711751
3
+ metadata.gz: 49c7e9a6f6283cdc1e4cd874594d4765bba14b9739a38f925de3babc3a91388c
4
+ data.tar.gz: 00c2cdeade80095e79e248d09758bfb05a97c71de2973ef1d99bb29a3faa8331
5
5
  SHA512:
6
- metadata.gz: afe10f0515b1ec231d73b1b3fa2bf969f45184c4021da62c6fb762bb520263842843e2576e5a8e55a76d24daaef883908d159e328a63e0705fa1aedefbc052ed
7
- data.tar.gz: 0f613f75b722c853ba340c5ab3abb33f8eccf1a3144ac468bad259a6b22951f4cc3ecbfcd65154d837c7f0aa947e1e7792ea6632c56cd7b2e502221a3949aedf
6
+ metadata.gz: 0c5310551a945bd650e5c242c14c70e03c0b7e53713f89913a23008d7fa07b9915f4f2d7de56198cd6d71f3b495a508c2d0198e099e13348ead74e7f1edeba41
7
+ data.tar.gz: 2f53a146910b681b4d2606b371890bcf1421a5ed33dc1915dd48b4851e8363bb8e3cfa59d7444a61f042becced91fc503bcc60acecd7a867d017e238987e313d
@@ -14,6 +14,7 @@ module SilencerShop
14
14
  when Net::HTTPNoContent
15
15
  SilencerShop::Error::NoContent.new(@response.body)
16
16
  when Net::HTTPOK, Net::HTTPSuccess
17
+ _data = (JSON.parse(@response.body) if @response.body.present?)
17
18
  @data = case
18
19
  when _data.is_a?(Hash)
19
20
  _data.deep_symbolize_keys
@@ -26,7 +27,6 @@ module SilencerShop
26
27
  end
27
28
 
28
29
  self.success = true
29
- _data = (JSON.parse(@response.body) if @response.body.present?)
30
30
  else
31
31
  if @response.body =~ /unable to verify credentials/i
32
32
  SilencerShop::Error::NotAuthorized.new(@response.body)
@@ -1,3 +1,3 @@
1
1
  module SilencerShop
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silencer_shop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Dill