File tree 6 files changed +46
-11
lines changed
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 1
1
# EM-HTTP-Request
2
2
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 )
4
5
5
6
Async (EventMachine) HTTP client, with support for:
6
7
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ def post_init
190
190
# the connection because we're processing invalid HTTP
191
191
@p . reset!
192
192
unbind
193
+ :stop
193
194
end
194
195
end
195
196
Original file line number Diff line number Diff line change 80
80
end
81
81
82
82
it "should detect deflate encoding" do
83
- # pending "need an endpoint which supports deflate.. MSN is no longer"
84
83
EventMachine . run {
85
84
86
85
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
88
87
89
88
http . errback { failed ( http ) }
90
89
http . callback {
Original file line number Diff line number Diff line change 9
9
10
10
http . errback { failed ( http ) }
11
11
http . callback {
12
- http . response_header . status . should == 302
12
+ http . response_header . status . should == 301
13
13
EventMachine . stop
14
14
}
15
15
}
You can’t perform that action at this time.
0 commit comments