whiplash-app 0.3.6 → 0.3.8
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/connections.rb +1 -1
- data/lib/whiplash/app/version.rb +1 -1
- data/lib/whiplash/app.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eba46520784e379b2e8c29539723ce104e62c1b1f835bf256e4b8c8b76aa4d01
|
4
|
+
data.tar.gz: a0e8e023729eb0b5263cda1a32257be46788552ae5e3aea958df34093e6c310c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca35fee898d15610e55b214f262ca6f6ea1ac55bde5d1dbe7bd886f8fc12b02f3eaadb89a36931e19296e2a1d07cc9a077805f179fbe0663df2e2687b1e4d3dc
|
7
|
+
data.tar.gz: 99bd7a8a7b0b08d6388dc04526578d69457a3647830901d2380829a8f9ff45059cb2e9d69cdc5271f366a7093f8a10448a14cc4f0163e6ab2fed6cdba06b008c
|
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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whiplash-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Sullivan, Mark Dickson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|