daazweb-api 0.0.7 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/daazweb-api/api_request.rb +2 -1
- data/lib/daazweb-api/version.rb +1 -1
- data/lib/daazweb-api.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6eb788a059c8c5b0c6dd37801832b9fe2b66b822d7bc17ada6b94cb32a2a3538
|
|
4
|
+
data.tar.gz: 73cda037db964f0a398e4d38c589182f1eead0586100d5d8c69bfeae6779a153
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7122c673499488fd4db00f713e8c07f1c2d14d78959c5bf555b0a95bf560d806fa6fd81adf1b5c98e21aea38d9a0318b36605b97f56d15acda98447811c25bc0
|
|
7
|
+
data.tar.gz: 5c9459953758d061db037c8ac124fe422d0ae7cb6678eb00e7532c4715f96db90100f00a25eefd3c907c8f77795ecd3cc0755dd2d5746bd13111a49345b7a3f5
|
|
@@ -92,6 +92,7 @@ module DaazwebApi
|
|
|
92
92
|
def configure_request(request: nil, params: nil, headers: nil, body: nil)
|
|
93
93
|
if request
|
|
94
94
|
request.params.merge!(params) if params
|
|
95
|
+
request.headers = {}
|
|
95
96
|
request.headers['Content-Type'] = 'application/json'
|
|
96
97
|
request.headers['Authorization'] = "Bearer #{self.access_token}"
|
|
97
98
|
request.headers['User-Agent'] = "DaazwebApi/#{DaazwebApi::VERSION} Ruby gem"
|
|
@@ -138,7 +139,7 @@ module DaazwebApi
|
|
|
138
139
|
end
|
|
139
140
|
|
|
140
141
|
def api_url
|
|
141
|
-
base_api_url + @request_builder.path
|
|
142
|
+
base_api_url + @request_builder.path + "/"
|
|
142
143
|
end
|
|
143
144
|
|
|
144
145
|
def base_api_url
|
data/lib/daazweb-api/version.rb
CHANGED
data/lib/daazweb-api.rb
CHANGED