httpsensible 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32e2632ab04452677c5315bc439fdbf9c053005dda83623439e1cc9a90e638d2
4
- data.tar.gz: 39e24e3cfe6c07dc361d07697b00610dfa67ab2bb6b0f117fc50a243375cc4ca
3
+ metadata.gz: 43e4e734cb0dd2e3f35946764a2f7d8fccd462ad58f75a94abf8f38996e82c90
4
+ data.tar.gz: 704cf714dc7cb7c6d1da85fd278e012c223319b71518c3afda48f6490944aae0
5
5
  SHA512:
6
- metadata.gz: 2bdf63c8455e72ab83fe6ddc81e4d9a4fb12e9809a9e6c21341ad545cbdc81e44ff35be445115ca8b6aefa580dac6e09a39bef2dad7fcf6cfe62afc5e2d779ed
7
- data.tar.gz: dd2089be9ba6e7db3ad1c564dd0cd9251275354aac38b9f541eaf81bc9fc51761ef33b19b2851b83accb44881822a2430df3f8df150a6a04ecefba7c27e0f428
6
+ metadata.gz: 6b3bbb009276d320331a875d23fdfdf250f4550f8daac0697b154c5e3b89dd5f5cadf0eae548792fbd0c4eed776dbe28d36698652b1c85d35a80981f6cba92ea
7
+ data.tar.gz: fea550fc6f43b98c9d67ae1686da64aff5aac155bde484bbdb2d8fb1d083d399d6ab1395c548301e06b4609a63e768ea1a8496788eeb6839924fca03a45f1592
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [v0.1.2] - 10-07-2023
2
+ null
3
+ ## [v0.1.1] - 10-07-2023
4
+ null
1
5
  ## [Unreleased]
2
6
 
3
7
  ## [0.1.0] - 2023-07-10
@@ -36,7 +36,7 @@ module Httpsensible
36
36
  # sig { params(response: T.any(HTTPX::Response, HTTPX::ErrorResponse)).returns(T::Boolean) }
37
37
  def unavailable?
38
38
  return true if @response.nil?
39
- return false if (200..299).cover?(@response.status)
39
+ return true unless (200..299).cover?(response.status)
40
40
 
41
41
  case @response
42
42
  when HTTPX::Response
@@ -23,6 +23,18 @@ module Httpsensible
23
23
  .with_headers(headers)
24
24
  end
25
25
 
26
+ # TODO: test this
27
+ def with_plugin(plugin)
28
+ @client = @client.plugin(plugin)
29
+ self
30
+ end
31
+
32
+ # TODO: test this
33
+ def with_authentication(authentication)
34
+ @client = @client.authentication(authentication)
35
+ self
36
+ end
37
+
26
38
  def with_headers(headers)
27
39
  @client = @client.with(headers: headers)
28
40
  self
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Httpsensible
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpsensible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian