tanakai 1.7.1 → 1.7.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tanakai/base.rb +3 -1
- data/lib/tanakai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 412cdf33eda65d65336652df303c4eb55cf395f5154e53f88a1c901ef4360c55
|
|
4
|
+
data.tar.gz: eb0217edc65c54bbe6b243596965b5073e0c3a308e5b52249d9de7027e8382e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87cdf732e266dc15d8a160d8ca7d4161f838b05f870d1fcc6b74f2c62f85a380ac98df778660206ab93927e22cd03dc5855b90062285461f48db041baeaa4cb4
|
|
7
|
+
data.tar.gz: 96b44cde5d58de7579dccd0394545f035412b01e26a46e2d686969176d6ea36589089ab3306a5972d2ae8cca4e8eb3d57b3c89173d96fe6531b5be8e528eae59
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
## Next
|
|
4
4
|
* Your contribution here
|
|
5
5
|
|
|
6
|
+
## 1.7.2
|
|
7
|
+
### Fixes
|
|
8
|
+
* [#6](https://github.com/glaucocustodio/tanakai/pull/6): Fix url validation - [MrChriss](https://github.com/MrChriss)
|
|
9
|
+
|
|
6
10
|
## 1.7.1
|
|
7
11
|
### Fixes
|
|
8
12
|
* [#5](https://github.com/glaucocustodio/tanakai/pull/5): Replace `File.exists`/`Dir.exists` that have been removed on ruby 3.2 - [MrChriss](https://github.com/MrChriss)
|
data/lib/tanakai/base.rb
CHANGED
|
@@ -192,7 +192,9 @@ module Tanakai
|
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
def request_to(handler, delay = nil, url:, data: {}, response_type: :html)
|
|
195
|
-
|
|
195
|
+
if %w[http https].exclude?(Addressable::URI.parse(url).scheme)
|
|
196
|
+
raise InvalidUrlError, "Requested url scheme is invalid: #{url}"
|
|
197
|
+
end
|
|
196
198
|
|
|
197
199
|
if @config[:skip_duplicate_requests] && !unique_request?(url)
|
|
198
200
|
add_event(:duplicate_requests) if self.with_info
|
data/lib/tanakai/version.rb
CHANGED