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 +4 -4
- data/lib/whiplash/app/version.rb +1 -1
- data/lib/whiplash/app.rb +1 -2
- 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: 8d16e7dde80f0f37a4849287b66cdc8dafae7fb8207ce08102c5232fca234e10
|
4
|
+
data.tar.gz: 826f5a5d2c03a7ea6352b43719285f9ef05b6e87749b769276b641ece8d88b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f3a4c11e867214ddf95043746e499f4a397efba4eb112c758cb665afe5aa80adcf21d342a7316ce620fa6e32a65c5c2f5cc5c15572b1e2ee9b9e5a2fd9021a
|
7
|
+
data.tar.gz: 68c5b83d71b7db11e735f0523566b51eda823769ddb428adc4897292a701362890f3b149b5e3c73390f9734c182e996665ef1f829820a7c37b20df3625c7477d
|
data/lib/whiplash/app/version.rb
CHANGED
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 :
|
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
|