z-http-request 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: ab688a2d990741d66ecc79a6d7f7fcb5908e60ad
4
- data.tar.gz: 81fc6baa002d22c532883c4a1f8986d1170ffc82
3
+ metadata.gz: e048f7596a3f6161a4a8f29c2c221d59956935bc
4
+ data.tar.gz: cd048f536d013eab0117d98fcdfb9a5d2cba8a5e
5
5
  SHA512:
6
- metadata.gz: 0aa272059eb771c1451b67ba9a85561cf54a0aa8b6dba3933afa0858d6b662f03d09b508b223fd62fa3af1b0d472514d5c7ee89b4458a7b4f835f649faf60ef2
7
- data.tar.gz: a04b808c207ef7f2e34c80233b25d2d42f21b45cd8981ae5dac176cc661c27bd4867f746c0e0159dcf7f2db34e774cedbe9cb8ed5a49d5bbacfc2384e10c0d36
6
+ metadata.gz: 4a71e554e23a7861e719fdbf39e3ef6c189706d09fd3de8ff0aaad8e3bba57083cbd535abd68f5dce3d5341323515d92a83c9d83fcc4a471d475404bcfab53a7
7
+ data.tar.gz: a22ba78954db375861d5aa9d0615000ef95f417ea05c5520bc3a87ddc189be225178cdc8f1354ed54b27cf7a599e9e8b934ecd3661dda0476b020d42484bf7bd
data/.gitignore CHANGED
@@ -7,4 +7,5 @@ Makefile
7
7
  gems/
8
8
  misc
9
9
  mkmf.log
10
+ pkg/
10
11
  vendor/
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --color
2
- --format documentation
3
- --require spec/spec_helper
2
+ --require spec_helper
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - jruby
4
+ bundler_args: --without benchmark
4
5
  notifications:
5
6
  email: false
6
7
  hipchat:
data/Gemfile CHANGED
@@ -2,9 +2,8 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'ruby-debug'
6
5
  gem 'liquid-ext'
7
- gem 'zmachine', :path => '../zmachine'
6
+ gem 'zmachine'
8
7
 
9
8
  group :benchmark do
10
9
  gem 'excon'
data/README.md CHANGED
@@ -5,6 +5,7 @@ This is a fork of Ilya Gregoriks em-http-request, ported to
5
5
  socksify has been removed as it is not needed for our simple http client use
6
6
  case.
7
7
 
8
+ [![Gem Version](https://badge.fury.io/rb/z-http-request.png)](http://badge.fury.io/rb/z-http-request)
8
9
  [![Build Status](https://travis-ci.org/liquidm/z-http-request.png)](https://travis-ci.org/liquidm/z-http-request)
9
10
  [![Code Climate](https://codeclimate.com/github/liquidm/z-http-request.png)](https://codeclimate.com/github/liquidm/z-http-request)
10
11
  [![Dependency Status](https://gemnasium.com/liquidm/z-http-request.png)](https://gemnasium.com/liquidm/z-http-request)
@@ -166,7 +166,6 @@ module ZMachine
166
166
  end
167
167
 
168
168
  def unbind(reason = nil)
169
- #reason ||= Errno::ETIMEDOUT if @conn.channel.timedout?
170
169
  @clients.map { |c| c.unbind(reason) }
171
170
 
172
171
  if r = @pending.shift
@@ -1,5 +1,5 @@
1
1
  module ZMachine
2
2
  class HttpRequest
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -453,6 +453,7 @@ describe ZMachine::HttpRequest do
453
453
  http = ZMachine::HttpRequest.new('http://127.0.0.1:8090/timeout', :inactivity_timeout => 0.1).get
454
454
 
455
455
  http.errback {
456
+ http.error.should == Errno::ETIMEDOUT
456
457
  (Time.now.to_i - t).should <= 1
457
458
  ZMachine.stop
458
459
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: z-http-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Grigorik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-25 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable