File tree Expand file tree Collapse file tree 6 files changed +46
-11
lines changed Expand file tree Collapse file tree 6 files changed +46
-11
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - master
7+ jobs :
8+ spec :
9+ name : " RSpec / Ruby ${{ matrix.ruby }}"
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ ruby :
14+ [
15+ " 2.3" ,
16+ " 2.4" ,
17+ " 2.5" ,
18+ " 2.6" ,
19+ " 2.7" ,
20+ " 3.0" ,
21+ " 3.1" ,
22+ " 3.2"
23+ ]
24+ steps :
25+ - uses : actions/checkout@v4
26+ - uses : ruby/setup-ruby@v1
27+ with :
28+ ruby-version : ${{ matrix.ruby }}
29+ bundler-cache : true
30+ - run : bundle exec rake spec
31+ spec-legacy :
32+ name : " RSpec / Ruby 2.2"
33+ runs-on : ubuntu-20.04
34+ steps :
35+ - uses : actions/checkout@v4
36+ uses : ruby/setup-ruby@v1
37+ with :
38+ ruby-version : 2.2
39+ bundler-cache : true
40+ - name : rake spec
41+ run : bundle exec rake spec
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# EM-HTTP-Request
22
3- [ ![ Gem Version] ( https://badge.fury.io/rb/em-http-request.svg )] ( http://rubygems.org/gems/em-http-request ) [ ![ Build Status] ( https://travis-ci.org/igrigorik/em-http-request.svg )] ( https://travis-ci.org/igrigorik/em-http-request )
3+ [ ![ Gem Version] ( https://badge.fury.io/rb/em-http-request.svg )] ( http://rubygems.org/gems/em-http-request )
4+ [ ![ GitHub Workflow Status] ( https://img.shields.io/github/actions/workflow/status/igrigorik/em-http-request/ci.yml )] ( https://github.com/igrigorik/em-http-request/actions/workflows/ci.yml )
45
56Async (EventMachine) HTTP client, with support for:
67
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ def post_init
190190 # the connection because we're processing invalid HTTP
191191 @p . reset!
192192 unbind
193+ :stop
193194 end
194195 end
195196
Original file line number Diff line number Diff line change 8080 end
8181
8282 it "should detect deflate encoding" do
83- # pending "need an endpoint which supports deflate.. MSN is no longer"
8483 EventMachine . run {
8584
8685 options = { :head => { "accept-encoding" => "deflate" } , :redirects => 5 }
87- http = EventMachine ::HttpRequest . new ( 'http ://www.libpng.org /' ) . get options
86+ http = EventMachine ::HttpRequest . new ( 'https ://www.bing.com /' ) . get options
8887
8988 http . errback { failed ( http ) }
9089 http . callback {
Original file line number Diff line number Diff line change 99
1010 http . errback { failed ( http ) }
1111 http . callback {
12- http . response_header . status . should == 302
12+ http . response_header . status . should == 301
1313 EventMachine . stop
1414 }
1515 }
You can’t perform that action at this time.
0 commit comments