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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7bca4020ba6ae0ace083ebbd62860273590ff6d135d712fd4c221233554913f
4
- data.tar.gz: 60ed91a5872c8008a2bb6bd64ea1543e1fdf670c822752eb0b9efe99126e7f96
3
+ metadata.gz: 70992b66145bf5215782eeb5513481e93bbb9c1ab2f220bbd99fc21af5f1b60f
4
+ data.tar.gz: 7c961f729fb0254ec016d0370cb25b4720a44d30fc8e88aea1b66fa64a5adf50
5
5
  SHA512:
6
- metadata.gz: db08c3afd3532daf9aebc12c2bd32db20512654707a31d32068470f780eba97602e20b6b6bf052eb194bdf08f0d4f469175fe89d824d330ffcf52813c294dd17
7
- data.tar.gz: c00e3688d413fceec7ea3638f78d8d6bebc234934861fd2afda79b550551b913206124e4c5dc15eeebe8aeff43a047ac3071713b6293d0113b5f198fe71bc26c
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XRPC
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shreyan Jain