whiplash-app 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c90cff8f015d917abe3776d9aca9665bd3c42e93edc61b285e7759e0561adf9
4
- data.tar.gz: 659d0984dc38503ebea51b9deedad41d2b1d576f4bcf991dce2d04943e95b2f4
3
+ metadata.gz: eba46520784e379b2e8c29539723ce104e62c1b1f835bf256e4b8c8b76aa4d01
4
+ data.tar.gz: a0e8e023729eb0b5263cda1a32257be46788552ae5e3aea958df34093e6c310c
5
5
  SHA512:
6
- metadata.gz: becc547a9b420147d9aa63f511e605d80887d493e01950bce99f0975f50fc57387a050380e33d6f979a35b2df78b59b27ea060915df962e5e519231470cd5632
7
- data.tar.gz: 8c7d12ba3e4723f52917df252d81148d64a5ab0d1ef8171b8436987038a872f579dcd6e81b429034db2946711f386d78841df956a19ea9185fcbb09ffbe7e37f
6
+ metadata.gz: ca35fee898d15610e55b214f262ca6f6ea1ac55bde5d1dbe7bd886f8fc12b02f3eaadb89a36931e19296e2a1d07cc9a077805f179fbe0663df2e2687b1e4d3dc
7
+ data.tar.gz: 99bd7a8a7b0b08d6388dc04526578d69457a3647830901d2380829a8f9ff45059cb2e9d69cdc5271f366a7093f8a10448a14cc4f0163e6ab2fed6cdba06b008c
@@ -25,7 +25,7 @@ module Whiplash
25
25
  def multi_page_get!(endpoint, params = {}, headers = nil)
26
26
  results = []
27
27
  page = 1
28
- params[:per_page] = PER_PAGE_REQUEST_LIMIT
28
+ params[:per_page] ||= PER_PAGE_REQUEST_LIMIT
29
29
  response = nil
30
30
 
31
31
  loop do
@@ -1,5 +1,5 @@
1
1
  module Whiplash
2
2
  module App
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.8"
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,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.6
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-08-28 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2