unshorten 0.3.3 → 0.3.4
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 +5 -5
- data/lib/unshorten.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: f71bd42a847a3193aabafa13444f18928266623c76aedd6af6f12389569509e8
|
|
4
|
+
data.tar.gz: cfae371349808af56e9b44683f6fba7614a98d10e3f5ad3dbc39ede28419990f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac6e05dbf7dfaa3ec4712b049995a8f230a9204564f6fd16bcba1250ea7dd6c12e8a5b90a5d5996c11607c6c56bcd05b2e63d524768dc6382be917883da39b5d
|
|
7
|
+
data.tar.gz: 1bc7bc938c52d92bf68095e8cc70f1232a485740cc8c81d866da4208078afc81e76dd4a3735ce66da6918a749ac40b486b6b0afabcc90efed015e24f84b6a0f1
|
data/lib/unshorten.rb
CHANGED
|
@@ -92,7 +92,7 @@ module Unshorten
|
|
|
92
92
|
|
|
93
93
|
if response.is_a?(Net::HTTPRedirection) && options[:follow_codes].include?(response.code.to_i) && response['location'] then
|
|
94
94
|
expire_cache if @@cache.size > CACHE_SIZE_LIMIT
|
|
95
|
-
location = URI.encode(response['location'])
|
|
95
|
+
location = Addressable::URI.encode(response['location'])
|
|
96
96
|
location = (uri + location).to_s if location
|
|
97
97
|
@@cache[url] = follow(location, options, level + 1)
|
|
98
98
|
else
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unshorten
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jun Wu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '13.0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '13.0'
|
|
41
41
|
description: Get original URLs from shortened ones
|
|
42
42
|
email: quark@lihdd.net
|
|
43
43
|
executables:
|
|
@@ -51,7 +51,7 @@ files:
|
|
|
51
51
|
- test/test_unshorten.rb
|
|
52
52
|
homepage: https://github.com/quark-zju/unshorten
|
|
53
53
|
licenses:
|
|
54
|
-
- BSD
|
|
54
|
+
- BSD-2-Clause
|
|
55
55
|
metadata: {}
|
|
56
56
|
post_install_message:
|
|
57
57
|
rdoc_options: []
|
|
@@ -68,11 +68,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '0'
|
|
70
70
|
requirements: []
|
|
71
|
-
|
|
72
|
-
rubygems_version: 2.2.0
|
|
71
|
+
rubygems_version: 3.2.5
|
|
73
72
|
signing_key:
|
|
74
73
|
specification_version: 4
|
|
75
74
|
summary: Unshorten URLs
|
|
76
75
|
test_files:
|
|
77
76
|
- test/test_unshorten.rb
|
|
78
|
-
has_rdoc:
|