Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpsensible.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency("httpx", ">= 0.24", "< 2.0")
spec.add_dependency("jwt", "~> 2.7")
spec.add_dependency("httpx", "~> 1.5")
spec.add_dependency("jwt", "~> 3.1")

spec.add_development_dependency("minitest", "~> 5.6")
spec.add_development_dependency("minitest-focus", "~> 1.1")
Expand Down
2 changes: 1 addition & 1 deletion lib/httpsensible/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module Httpsensible
VERSION = "0.3.2"
VERSION = "0.4.0"
end
4 changes: 2 additions & 2 deletions test/test_httpsensible_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TestHttpsensibleResponse < Minitest::Test
def setup
@request = HTTPX::Request.new("GET", "https://yetto.app")
@request = HTTPX::Request.new("GET", "https://yetto.app", HTTPX::Options.new)
end

def test_that_it_can_to_s_response
Expand All @@ -15,7 +15,7 @@ def test_that_it_can_to_s_response
end

def test_that_it_can_to_s_error_response
http_response = HTTPX::ErrorResponse.new(@request, RuntimeError.new("oh dear"), {})
http_response = HTTPX::ErrorResponse.new(@request, RuntimeError.new("oh dear"))
response = Httpsensible::Client::Response.new(http_response)

assert_equal("oh dear", response.to_s)
Expand Down
Loading