Skip to content

Commit

Permalink
1.8 compat hash syntax and updated gemspec with dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfryed committed Sep 25, 2011
1 parent efd788d commit 3ac80c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion em-http-request.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Gem::Specification.new do |s|
s.add_dependency "addressable", ">= 2.2.3"
s.add_dependency "http_parser.rb", ">= 0.5.2"
s.add_dependency "em-socksify"
s.add_dependency "cookiejar"

s.add_development_dependency "rspec"
s.add_development_dependency "rake"
s.add_development_dependency "rack"
s.add_development_dependency "yajl-ruby"
s.add_development_dependency "cookiejar"
s.add_development_dependency "mongrel", "~> 1.2.0.pre2"

s.files = `git ls-files`.split("\n")
Expand Down
8 changes: 4 additions & 4 deletions spec/redirect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def response(r)
HTTP

EventMachine.run do
@stub = StubServer.new(response: response, port: 8080)
@echo = StubServer.new(host: 'localhost', port: 8081, echo: true)
@stub = StubServer.new(:host => '127.0.0.1', :port => 8080, :response => response)
@echo = StubServer.new(:host => 'localhost', :port => 8081, :echo => true)

http = EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get :redirects => 1

Expand All @@ -77,8 +77,8 @@ def response(r)
HTTP

EventMachine.run do
@stub = StubServer.new(port: 8080, response: response)
@echo = StubServer.new(port: 8081, echo: true)
@stub = StubServer.new(:port => 8080, :response => response)
@echo = StubServer.new(:port => 8081, :echo => true)

http = EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get :redirects => 1

Expand Down

0 comments on commit 3ac80c6

Please sign in to comment.