xrpc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xrpc/client.rb +1 -2
- data/lib/xrpc/version.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: 70992b66145bf5215782eeb5513481e93bbb9c1ab2f220bbd99fc21af5f1b60f
|
4
|
+
data.tar.gz: 7c961f729fb0254ec016d0370cb25b4720a44d30fc8e88aea1b66fa64a5adf50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf7ac4f5e26ffca6f9b9e54d61dd075f0428de51e8f37a3c4dfac297b329e2bdd6a34005415179332b97162c542845e337daa02f8b379fdba9d235e6a50b714
|
7
|
+
data.tar.gz: 624bde9278e9c98f3533aea575badfd3636609812d0e493d3c6db0ee3a32f9c58e311fdfd5a15e629385931b766bcd8a2b23ef1700bc0d2f74b96e8827b5764d
|
data/lib/xrpc/client.rb
CHANGED
@@ -12,8 +12,7 @@ module XRPC
|
|
12
12
|
attr_reader :get, :post
|
13
13
|
|
14
14
|
def initialize(base_url, token = nil)
|
15
|
-
@headers = { :"Content-Type" => "application/json" }
|
16
|
-
@headers = @headers.merge { :Authorization => "Bearer #{token}" } unless token.nil?
|
15
|
+
@headers = { :"Content-Type" => "application/json", :Authorization => "Bearer #{token}" }
|
17
16
|
@base_url = base_url
|
18
17
|
@get = GetRequest.new(base_url, @headers)
|
19
18
|
@post = PostRequest.new(base_url, @headers)
|
data/lib/xrpc/version.rb
CHANGED