unshorten 0.2.0 → 0.2.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 +15 -0
- data/lib/unshorten.rb +1 -0
- metadata +5 -7
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
ZTA5ZWQ3MDQ1YWM5YjVkMWE4ZWM0MWRlNmIxNTAyM2QyYmE1Njg2Mw==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
MTExOThkNzU4YzhlM2VmYWYzMmVlZjg4NGQyZTIyOTkxZWYzZDI2NQ==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
ZjFkZDBiYmNjOGY0MDI3MDFlM2VlYmU1MDE5OTNjODk2YzUxNDBmMzJjMmZj
|
|
10
|
+
MWEzMDBhZmRjNzExM2ZkOGE2MTU2MTU0ZDUzYjJjNjgwYTkyM2Q0MjI3ZDVh
|
|
11
|
+
NGFiYzgzNGE3ZDAwNWYzZTQ5NDU1MzQyODk0YzAxNjYyM2EyNjU=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
Y2FkZGY5NDU2NGI2ZDI4ZGMyOTVhYTJhNzIwNjU2MGM3MzFiODY3M2E3OWQ4
|
|
14
|
+
ODQ5YmVjZjNkMjM3MjMxNGFlZGQwZDk5Y2I3ZDdkNWU0MWZmM2QyZWVkODRk
|
|
15
|
+
MDNkYTIwNGE2OTdiNjY5Y2Q4OTNkYzQxNDkyMGI3NjJhY2Y4ODY=
|
data/lib/unshorten.rb
CHANGED
|
@@ -76,6 +76,7 @@ class Unshorten
|
|
|
76
76
|
return url if options[:short_hosts] != false and not uri.host =~ options[:short_hosts]
|
|
77
77
|
|
|
78
78
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
79
|
+
http.open_timeout = options[:timeout]
|
|
79
80
|
http.read_timeout = options[:timeout]
|
|
80
81
|
http.use_ssl = true if uri.scheme == "https"
|
|
81
82
|
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unshorten
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.2.1
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Wu Jun
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
11
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
|
13
12
|
dependencies: []
|
|
14
13
|
description: Get original URLs from shortened ones
|
|
15
14
|
email: quark@lihdd.net
|
|
@@ -23,27 +22,26 @@ files:
|
|
|
23
22
|
- bin/unshorten
|
|
24
23
|
homepage: https://github.com/quark-zju/unshorten
|
|
25
24
|
licenses: []
|
|
25
|
+
metadata: {}
|
|
26
26
|
post_install_message:
|
|
27
27
|
rdoc_options: []
|
|
28
28
|
require_paths:
|
|
29
29
|
- lib
|
|
30
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
-
none: false
|
|
32
31
|
requirements:
|
|
33
32
|
- - ! '>='
|
|
34
33
|
- !ruby/object:Gem::Version
|
|
35
34
|
version: '0'
|
|
36
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
-
none: false
|
|
38
36
|
requirements:
|
|
39
37
|
- - ! '>='
|
|
40
38
|
- !ruby/object:Gem::Version
|
|
41
39
|
version: '0'
|
|
42
40
|
requirements: []
|
|
43
41
|
rubyforge_project:
|
|
44
|
-
rubygems_version:
|
|
42
|
+
rubygems_version: 2.0.3
|
|
45
43
|
signing_key:
|
|
46
|
-
specification_version:
|
|
44
|
+
specification_version: 4
|
|
47
45
|
summary: Unshorten URLs
|
|
48
46
|
test_files:
|
|
49
47
|
- test/test_unshorten.rb
|