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 +4 -4
- data/lib/silencer_shop/dealer.rb +8 -5
- data/lib/silencer_shop/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c177e05c835c2e0cce50e881e8852fcec230a5a105208c9747e15455614bede8
|
4
|
+
data.tar.gz: 01f8013c154d4b71e1a64becad19c654fb6a40adb072f6861fd71c284fd7fb35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342f8cbfc53ae8b5e3dbc7ff5603934191f4c1c9070ce188facd8070ee468ea75c2b7c7a210d2b2fc8d0903dc7cfbcafb268f6718e3fb9f833a8d639bb210123
|
7
|
+
data.tar.gz: 5544a792ca1763aec9b9e78aa2e5b7ef3bf16f830b199959ea5462763e23cb0d0461e069a6ac7213c6fa6af5810aa28900f61e61965b1ee55ddd6305b0fac9de
|
data/lib/silencer_shop/dealer.rb
CHANGED
@@ -14,11 +14,14 @@ module SilencerShop
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def confirmed?(dealer_username: '', dealer_password: '')
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
auth_header(@client.access_token)
|
21
|
-
|
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
|
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.
|
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-
|
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.
|
130
|
+
rubygems_version: 3.0.9
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Ruby library for Silencer Shop API.
|