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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/tiny_http_client.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4109d21d4f120aaded6fc6c1f857cc1d0bc482d4
4
- data.tar.gz: c5cc209767c59d309b386e0138315da3f95854a1
3
+ metadata.gz: 13deb12399bc206c908c3c893c3eb33846098c8f
4
+ data.tar.gz: e79cc876a3b0a820b7256e61e6c0fd3e102955dd
5
5
  SHA512:
6
- metadata.gz: a87ff477ea73920263117937787584d1cfd9e86be4f3ec0dbaa8ad9b0c9f7a8d4314ab3435777bf0332f935ca3f54c8a190e1aef289b172b85e0f123993f0aae
7
- data.tar.gz: 15cca4bc72a4b56040996c869ef32bc664cf870d76568b02ca8254bca88fff8455d7a3e014f39cd5df7c826c4ea747aee64dd371e32168ec079c56284b620e5f
6
+ metadata.gz: 0c865f76a27cb3e6803eafd8f560bdab8e094f2be282ef258d2365acb44dbf7a8d98ff33560cbdbf8f523130b6f429ec3e372358119a831a5317b17aa9e9c76d
7
+ data.tar.gz: 694f20daff7ee7ae58b02b73a6cd538391f151eb5604cda737fc27818faa2c971812ebeced83381317c9210292a02f081fd09d8cca99790e72daaefdaf092f82
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # SimpleHttp
1
+ # Tiny HTTP Client
2
2
 
3
3
  A really simple http client, get content by url:
4
4
 
@@ -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.path)
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.2
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-18 00:00:00.000000000 Z
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: