silencer_shop 1.1.6 → 1.1.7

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: f1b4f55a0e4f5832594c0c48cd59d6d58ad2f1837e33d24a8e98e3b490636eb3
4
- data.tar.gz: c57b465f8de304a59c45313af546ee06071be5a0632e27c4dcd4198d1be71c59
3
+ metadata.gz: c177e05c835c2e0cce50e881e8852fcec230a5a105208c9747e15455614bede8
4
+ data.tar.gz: 01f8013c154d4b71e1a64becad19c654fb6a40adb072f6861fd71c284fd7fb35
5
5
  SHA512:
6
- metadata.gz: 3518b1508009204ddbb01dd5f164968fada5af7949f693d4b1ed51cab12ecd38cdf93ecad911bee02c7518aca3754a4f3f6d395aed8b6a3fea3892927c6260f6
7
- data.tar.gz: 6819b403ed82643d671fc2b8818d689eca04adb3b3cf0b683aafd35bc18e92dee9c154eac263444baff5a5a4c2d40183ea4199ebcf1e1574ab5545139676f18a
6
+ metadata.gz: 342f8cbfc53ae8b5e3dbc7ff5603934191f4c1c9070ce188facd8070ee468ea75c2b7c7a210d2b2fc8d0903dc7cfbcafb268f6718e3fb9f833a8d639bb210123
7
+ data.tar.gz: 5544a792ca1763aec9b9e78aa2e5b7ef3bf16f830b199959ea5462763e23cb0d0461e069a6ac7213c6fa6af5810aa28900f61e61965b1ee55ddd6305b0fac9de
@@ -14,11 +14,14 @@ module SilencerShop
14
14
  end
15
15
 
16
16
  def confirmed?(dealer_username: '', dealer_password: '')
17
- post_request(
18
- ENDPOINTS[:confirmed],
19
- { username: dealer_username, password: dealer_password },
20
- auth_header(@client.access_token)
21
- ).success?
17
+ endpoint = ENDPOINTS[:confirmed]
18
+ creds = { username: dealer_username, password: dealer_password }
19
+ headers = [
20
+ *auth_header(@client.access_token),
21
+ *content_type_header('application/json'),
22
+ ].to_h
23
+
24
+ post_request(endpoint, creds, headers).success?
22
25
  end
23
26
 
24
27
  end
@@ -1,3 +1,3 @@
1
1
  module SilencerShop
2
- VERSION = '1.1.6'.freeze
2
+ VERSION = '1.1.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silencer_shop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Dill
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.1.4
130
+ rubygems_version: 3.0.9
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Ruby library for Silencer Shop API.