From c135520e248ce1521e92dc06cdced7ee52a3c0f5 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Sun, 19 May 2024 13:42:17 -0400 Subject: [PATCH 1/2] support `with` and `request` --- lib/httpsensible/client.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/httpsensible/client.rb b/lib/httpsensible/client.rb index a6fa767..6eadea4 100644 --- a/lib/httpsensible/client.rb +++ b/lib/httpsensible/client.rb @@ -35,6 +35,18 @@ def with_authentication(authentication) self end + # TODO: test this + def with(options, &blk) + @client = @client.with(options, &blk) + self + end + + # TODO: test this + def request(*args, **options) + @client = @client.request(*args, *options) + self + end + def with_headers(headers) @client = @client.with(headers: headers) self From 0afe40c814e37620fa412d6540d4a5800063e54b Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Sun, 19 May 2024 13:42:30 -0400 Subject: [PATCH 2/2] :gem: bump to 0.3.0 --- lib/httpsensible/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httpsensible/version.rb b/lib/httpsensible/version.rb index 906b908..54711f1 100644 --- a/lib/httpsensible/version.rb +++ b/lib/httpsensible/version.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Httpsensible - VERSION = "0.2.2" + VERSION = "0.3.0" end