trustvox 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/trustvox/base.rb +4 -4
- data/lib/trustvox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708e280f659eb9e5854a10e030ce4eac1a6caea9
|
4
|
+
data.tar.gz: 4448dce2ff5e6356b0bd8bdfd77750b047cc7508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be469e62693013f5435382f42c120b615794aba485335ff0a832222d83b96d9f1c4ba24a0cbf1dba9b796faff1e326d632629105654fc2a3caf5f8568e03da8c
|
7
|
+
data.tar.gz: 4fbc7e8b8bdafd21c1329678da626ba0043dcf98a7c8ad7c6a794e954349a3d2076d846697c5731ba3da054ae40f9d9e155d3cabaa2d617610bbf3bbd5801b17
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trustvox (0.
|
4
|
+
trustvox (0.4.0)
|
5
5
|
httparty (~> 0.14)
|
6
6
|
|
7
7
|
GEM
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
dotenv (2.2.1)
|
13
13
|
faker (1.8.7)
|
14
14
|
i18n (>= 0.7)
|
15
|
-
httparty (0.16.
|
15
|
+
httparty (0.16.2)
|
16
16
|
multi_xml (>= 0.5.2)
|
17
17
|
i18n (1.0.0)
|
18
18
|
concurrent-ruby (~> 1.0)
|
data/lib/trustvox/base.rb
CHANGED
@@ -5,8 +5,8 @@ module Trustvox
|
|
5
5
|
class Base
|
6
6
|
include HTTParty
|
7
7
|
|
8
|
-
headers 'Accept'
|
9
|
-
'Content-Type'
|
8
|
+
headers 'Accept' => 'application/vnd.trustvox.com; version=1',
|
9
|
+
'Content-Type' => 'application/json'
|
10
10
|
|
11
11
|
def initialize
|
12
12
|
if Config.is_on_staging?
|
@@ -18,11 +18,11 @@ module Trustvox
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def auth_by_platform_token!
|
21
|
-
self.class.headers 'Authorization'
|
21
|
+
self.class.headers 'Authorization' => "token #{Config.token}"
|
22
22
|
end
|
23
23
|
|
24
24
|
def auth_by_store_token!
|
25
|
-
self.class.headers 'Authorization'
|
25
|
+
self.class.headers 'Authorization' => "token #{Config.store_token}"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/trustvox/version.rb
CHANGED