tiny_http_client 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/tiny_http_client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13deb12399bc206c908c3c893c3eb33846098c8f
|
4
|
+
data.tar.gz: e79cc876a3b0a820b7256e61e6c0fd3e102955dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c865f76a27cb3e6803eafd8f560bdab8e094f2be282ef258d2365acb44dbf7a8d98ff33560cbdbf8f523130b6f429ec3e372358119a831a5317b17aa9e9c76d
|
7
|
+
data.tar.gz: 694f20daff7ee7ae58b02b73a6cd538391f151eb5604cda737fc27818faa2c971812ebeced83381317c9210292a02f081fd09d8cca99790e72daaefdaf092f82
|
data/README.md
CHANGED
data/lib/tiny_http_client.rb
CHANGED
@@ -8,7 +8,7 @@ module TinyHttpClient
|
|
8
8
|
uri = URI(url)
|
9
9
|
http_opts = { use_ssl: uri.scheme == 'https' }
|
10
10
|
Net::HTTP.start uri.host, uri.port, http_opts do |https|
|
11
|
-
req = Net::HTTP::Get.new(uri
|
11
|
+
req = Net::HTTP::Get.new(uri)
|
12
12
|
yield(req) if block_given?
|
13
13
|
case res = https.request(req)
|
14
14
|
when Net::HTTPSuccess
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_http_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xiao Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Get content by url, or raise error.
|
14
14
|
email:
|