sxg_checker 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36798f6fd5461309de602122e726814a47c484bcf798260796f2b74726d158d4
4
- data.tar.gz: 6ececedef77191f20b4b15d9b32faf84837af6e8f3c03ab87f87cfde1a6d2229
3
+ metadata.gz: 8dad9a22a590e0a1f40a340e7b8af4b72fdda13484726acf76924b1538dc0b32
4
+ data.tar.gz: 5f0fc53255745080a14a6db425e683f8f9fd983aefbcd55c3c279859d2b3f354
5
5
  SHA512:
6
- metadata.gz: f33f3769f4f2a2671d10434800e0b6d247d7088f98535ab8bda5175f78ab3f1a411f3669f32a95a490254fffb835b791d49691311d3769b51cca607e2fe97e10
7
- data.tar.gz: 7ace8929013bf4681de47150ec6ea9f5e92b535eca33da5aac72293339ddbb64fbcaca477a798ba6af14e344c25193c494182348e1d9f2255dd617cd4d4e8668
6
+ metadata.gz: a5be2d1bc80087ef7cfae38255d8df91559e241f72556527eae48e6e78cf78f88a645168eb1963b32e9bbd309406edae1ddedf751053adddc7e4ce64ba79a79a
7
+ data.tar.gz: 0505dbd79f6203e1fc89c79ef8bdce1568a916d3b6c1012f4a0a0a2d0f7b0ec20c7fc7c6a1d31676ca8acda9c091dd74af460accc12ce163345492ee47ba4f59
@@ -99,8 +99,7 @@ module SxgChecker
99
99
  uri = URI.parse(url)
100
100
  raise InvalidUrl.new("invalid URL") unless uri.scheme == "https" && uri.host && uri.fragment.nil?
101
101
 
102
- host = uri.host.to_s.tr(".", "-")
103
- "https://#{host}.webpkgcache.com/doc/-/s/#{url.sub("https://", "")}"
102
+ "https://#{uri.host.tr(".", "-")}.webpkgcache.com/doc/-/s/#{uri.host}#{uri.request_uri}"
104
103
  rescue URI::InvalidURIError
105
104
  raise InvalidUrl.new("can't parse URL")
106
105
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SxgChecker
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sxg_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Pokrywka