whiplash-app 0.3.6 → 0.3.7

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: 8c90cff8f015d917abe3776d9aca9665bd3c42e93edc61b285e7759e0561adf9
4
- data.tar.gz: 659d0984dc38503ebea51b9deedad41d2b1d576f4bcf991dce2d04943e95b2f4
3
+ metadata.gz: 8d16e7dde80f0f37a4849287b66cdc8dafae7fb8207ce08102c5232fca234e10
4
+ data.tar.gz: 826f5a5d2c03a7ea6352b43719285f9ef05b6e87749b769276b641ece8d88b92
5
5
  SHA512:
6
- metadata.gz: becc547a9b420147d9aa63f511e605d80887d493e01950bce99f0975f50fc57387a050380e33d6f979a35b2df78b59b27ea060915df962e5e519231470cd5632
7
- data.tar.gz: 8c7d12ba3e4723f52917df252d81148d64a5ab0d1ef8171b8436987038a872f579dcd6e81b429034db2946711f386d78841df956a19ea9185fcbb09ffbe7e37f
6
+ metadata.gz: c4f3a4c11e867214ddf95043746e499f4a397efba4eb112c758cb665afe5aa80adcf21d342a7316ce620fa6e32a65c5c2f5cc5c15572b1e2ee9b9e5a2fd9021a
7
+ data.tar.gz: 68c5b83d71b7db11e735f0523566b51eda823769ddb428adc4897292a701362890f3b149b5e3c73390f9734c182e996665ef1f829820a7c37b20df3625c7477d
@@ -1,5 +1,5 @@
1
1
  module Whiplash
2
2
  module App
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
4
4
  end
5
5
  end
data/lib/whiplash/app.rb CHANGED
@@ -5,7 +5,6 @@ require "whiplash/app/finder_methods"
5
5
  require "whiplash/app/signing"
6
6
  require "whiplash/app/version"
7
7
  require "oauth2"
8
- require 'faraday/oauth2'
9
8
 
10
9
 
11
10
  module Whiplash
@@ -26,7 +25,7 @@ module Whiplash
26
25
 
27
26
  def connection(version = "api/v2")
28
27
  out = Faraday.new(url: [api_url, version].join("/")) do |conn|
29
- conn.request :oauth2, token, token_type: "bearer" # OAuth2 middleware
28
+ conn.request :authorization, 'Bearer', token
30
29
  conn.request :json # Automatically encode requests as JSON
31
30
  conn.response :json # Automatically parse responses as JSON
32
31
  conn.response :raise_error # Raise exceptions for 4xx and 5xx responses
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiplash-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Sullivan, Mark Dickson