wasabi 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/wasabi/resolver.rb +13 -3
- data/lib/wasabi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8847efa2d8a3df38ee42e62d7c15f733c3b999235d399a870d5318c0ec0ad5
|
4
|
+
data.tar.gz: 9797838f0732c481c07049d6fef398481853c22203c7f87dd628f69d2950762e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ae94bc2457b051f3b644cf6241556afa8b47385536c92abcfeadcd9f17aee676eae8a56297e697e84429f773e90873f01fbc6758681235233db8c60fb580a1d
|
7
|
+
data.tar.gz: d9e8717b05fcb6d0167399f875ac437e142a2b105b01333b7a3e3081733f7b3c938779f93615a0b92e7697d3c14efc74ee99caf4dd68570bdf6aa4f2d14511f0
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@
|
|
4
4
|
|
5
5
|
- _Your new line here. Mind the style of prefix used in the rest of the document._
|
6
6
|
|
7
|
+
## 5.0.1 (2024-02-13)
|
8
|
+
|
9
|
+
- Restore support for HTTPI ([#117](https://github.com/savonrb/wasabi/issues/117)).
|
10
|
+
|
7
11
|
## 5.0.0 (2024-01-08)
|
8
12
|
|
9
13
|
- Drop support for unsupported rubies (2.7 and below)
|
data/lib/wasabi/resolver.rb
CHANGED
@@ -41,10 +41,20 @@ module Wasabi
|
|
41
41
|
private
|
42
42
|
|
43
43
|
def load_from_remote
|
44
|
-
|
45
|
-
|
44
|
+
# TODO: remove_after_httpi
|
45
|
+
# support HTTPI and Faraday side by side
|
46
|
+
# dont reference HTTPI by constant until inside the conditional, in case it isn't loaded
|
47
|
+
if request.class.to_s.include?("HTTPI::Request")
|
48
|
+
request.url = document
|
49
|
+
response = HTTPI.get(request, adapter)
|
46
50
|
|
47
|
-
|
51
|
+
raise HTTPError.new("Error: #{response.code} for url #{request.url}", response) if response.error?
|
52
|
+
else
|
53
|
+
request.adapter *adapter if adapter
|
54
|
+
response = request.get(document)
|
55
|
+
|
56
|
+
raise HTTPError.new("Error: #{response.status} for url #{document}", response) unless response.success?
|
57
|
+
end
|
48
58
|
|
49
59
|
response.body
|
50
60
|
end
|
data/lib/wasabi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wasabi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -73,7 +73,7 @@ licenses:
|
|
73
73
|
- MIT
|
74
74
|
metadata:
|
75
75
|
changelog_uri: https://github.com/savonrb/wasabi/blob/master/CHANGELOG.md
|
76
|
-
documentation_uri: https://www.rubydoc.info/gems/wasabi/5.0.
|
76
|
+
documentation_uri: https://www.rubydoc.info/gems/wasabi/5.0.1
|
77
77
|
source_code_uri: https://github.com/savonrb/wasabi
|
78
78
|
bug_tracker_uri: https://github.com/savonrb/wasabi/issues
|
79
79
|
rubygems_mfa_required: 'true'
|