async-http 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5159abaa1252d9eb0885989ab212b178e8bc8c672904b570bd26df5d5b077245
4
- data.tar.gz: 6713e0b620617916076956129bed3c3de4338b83dba8bfbffe9f8306c90f564a
3
+ metadata.gz: 52cf6dc85fcbfa045a17959e27ba77d8cc3ebeb211074598501ebfeb560f3ac6
4
+ data.tar.gz: 34a8c1a0bfa896da593b901cc31eb80002d74e3d4422440f6ad24073156b009c
5
5
  SHA512:
6
- metadata.gz: 2e814e75bddb4cd9fee74c78d45a2da90ab01e7f37454871b5b1ec7d5f42a88fea57b02b6f28dcbdda079803511f2da4b4d9ed2fbf9ecd18b6d0cae1213b07eb
7
- data.tar.gz: b08a59a9a07811a5cf91cee4a4bc650eb3bbb753c1076f27fd41c5a237d4684542677b8ed1ce32f2474fe3347f80d05730b8141f1fcd1c8e6c571ac33653b95b
6
+ metadata.gz: 630b0308b56222426254806595c485f1fbe75b98f2e5a7b85c2d889176e28e04068054672e1b74a302680b15a972d1b3d46a002d03da10a66af5a937e5f63dcd
7
+ data.tar.gz: 17fe537532ce17b0e3103f1f645dd8c900a42aad8d1bffcca0a8da5fc4476debb924eb5319fc19a50e7ee6b2db5f0517eda3cab6b79ef94bedcedc9d529a1509
@@ -1,24 +1,16 @@
1
1
  language: ruby
2
2
  sudo: required
3
- dist: trusty
3
+ dist: xenial
4
4
  cache: bundler
5
5
 
6
6
  addons:
7
7
  apt:
8
8
  packages:
9
- # - wrk installed below from xenial
9
+ - wrk
10
10
  - apache2-utils
11
11
 
12
- before_install:
13
- - echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe" | sudo tee -a /etc/apt/sources.list
14
- - sudo apt-get update -qq
15
- - sudo apt-get install openssl libssl-dev wrk
16
- # Rebuild Ruby using the updated OpenSSL libraries which allows 2.5 to pass.
17
- # - rvm reinstall --disable-binary `rvm current`
18
- # Fix a bug with Ruby 2.5: LoadError: cannot load such file -- bundler/dep_proxy
12
+ before_script:
19
13
  - gem update --system
20
- # This works for Ruby 2.3 and 2.4 but not 2.5 which doesn't seem to use the local gem.
21
- - gem install openssl
22
14
 
23
15
  matrix:
24
16
  include:
@@ -30,7 +22,6 @@ matrix:
30
22
  - rvm: ruby-head
31
23
  - rvm: rbx-3
32
24
  allow_failures:
33
- - rvm: 2.5
34
25
  - rvm: ruby-head
35
26
  - rvm: jruby-head
36
27
  - rvm: rbx-3
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ RSpec::Core::RakeTask.new(:test)
6
6
  task :default => :test
7
7
 
8
8
  require 'async/http/protocol'
9
+
9
10
  PROTOCOL = Async::HTTP::Protocol::HTTP2
10
11
 
11
12
  task :debug do
@@ -67,4 +68,4 @@ task :wrk do
67
68
  Process.kill(:KILL, pid)
68
69
  Process.wait pid
69
70
  end
70
- end
71
+ end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency("async-io", "~> 1.5")
21
21
 
22
22
  spec.add_dependency("http-2", "~> 0.8")
23
- spec.add_dependency("openssl")
23
+ # spec.add_dependency("openssl")
24
24
 
25
25
  spec.add_development_dependency "async-rspec", "~> 1.1"
26
26
 
@@ -48,7 +48,7 @@ module Async
48
48
  end
49
49
 
50
50
  if hijack
51
- hijack.call
51
+ hijack.call(peer)
52
52
  end
53
53
  rescue EOFError, Errno::ECONNRESET, Errno::EPIPE
54
54
  # Sometimes client will disconnect without completing a result or reading the entire buffer.
@@ -36,6 +36,9 @@ module Async
36
36
  @options = options
37
37
  end
38
38
 
39
+ attr :url
40
+ attr :options
41
+
39
42
  def address
40
43
  endpoint.address
41
44
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.8.0"
23
+ VERSION = "0.9.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-26 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.8'
55
- - !ruby/object:Gem::Dependency
56
- name: openssl
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: async-rspec
71
57
  requirement: !ruby/object:Gem::Requirement