supai 0.2.3 → 0.2.4

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: ea341ddfce0e3dffe219a167f74b6fdafb54862840e5c6fd8bff51cfc1c9e522
4
- data.tar.gz: 3e3930dd6ce9424ba878cbb0f33d424d44ca89439a318fa5170a94259c39ce38
3
+ metadata.gz: 80955c102e85a5c291f0d442d4fbe9805453d2952ad3bd32e2d6747e6a9d7247
4
+ data.tar.gz: 7467576e0786bb940c9d78e0f6fba51e79b1894ad50fb82fc691b381790163c6
5
5
  SHA512:
6
- metadata.gz: 9276c6196e17acf7f6137e1c2a31ea80e4c563a584ac811382f0c0aca65bfbf812992911a8aa610ac778e29525163ee3cbe9c8d542d396e57eb2034df30fc603
7
- data.tar.gz: 58c189f843421d3ea86eda48a6133c382e0a21e26d3eb149da97143daa62d16688c34688a4a1937b403f97d5e46d6f14112d3215da43b52b53055e85698b37d8
6
+ metadata.gz: b55b8f2bc0792fb2ac44debe9d8d4d10fe2562ef1f7e08f50e9467ceedd110a1e15f21046344a3d535776258abba6e21209a4c5b7feb02a85c5a3522d3defbf9
7
+ data.tar.gz: f62a441096b88b3a0b84763a2dfc0224e444a4f418029dba62eb1537ea73985ae00010a5df720e851301c6ab469c5f7775e538025daa3cc57ea64866b863c1af
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- supai (0.2.3)
4
+ supai (0.2.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/supai/api.rb CHANGED
@@ -97,13 +97,13 @@ module Supai
97
97
  r[key] = value
98
98
  end
99
99
  unless token.nil?
100
- r.add_field "Authorization", token
100
+ r["Authorization"] = token
101
101
  end
102
102
 
103
103
  if body.is_a? String
104
104
  r.body = body
105
105
  elsif !body.nil?
106
- r.add_field "Content-Type", "application/json"
106
+ r["Content-Type"] = "application/json"
107
107
  r.body = body.to_json
108
108
  end
109
109
  }
@@ -5,7 +5,6 @@ module Supai
5
5
  attr_accessor :token, :secret, :user_id
6
6
 
7
7
  def self.create(authorization, api: API.new)
8
- api = API.new
9
8
  response = api.request(:post, ENDPOINT, body: {}, token: authorization)
10
9
  raise response.error unless response.success?
11
10
 
data/lib/supai/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Supai
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: supai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Yoder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler