Commit 28a2343 1 parent a44b109 commit 28a2343 Copy full SHA for 28a2343
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ Gem::Specification.new do |spec|
20
20
spec . add_development_dependency "minitest" , "~> 5.8"
21
21
spec . add_development_dependency "mocha" , "~> 1.5"
22
22
spec . add_development_dependency "rake"
23
- spec . add_development_dependency "http" , "~> 5.0"
23
+ if RUBY_VERSION >= "2.5"
24
+ spec . add_development_dependency "http" , "~> 5.0"
25
+ else
26
+ spec . add_development_dependency "http" , "~> 4.3"
27
+ end
24
28
spec . add_development_dependency "posix-spawn" unless RUBY_ENGINE == "jruby"
25
29
spec . add_development_dependency "http_parser.rb"
26
30
spec . add_development_dependency "docker-api"
Original file line number Diff line number Diff line change 2
2
require "warning"
3
3
4
4
Warning . process ( '' , /instance variable @\w + not initialized/ => :raise )
5
+
6
+ # Starting on ruby 2.5 we use http.rb 5.0. That version don't have http-parser has a dependency
7
+ if RUBY_VERSION < "2.5"
8
+ Warning . ignore ( /interpreted as argument prefix/ , Gem ::Specification . find_by_name ( "http-parser" ) . load_paths . first )
9
+ end
5
10
end
You can’t perform that action at this time.
0 commit comments