rom-rb / rom-http

Abstract HTTP adapter for ROM
https://rom-rb.org
MIT License
73 stars 18 forks source link

Syntax error when trying the extension example on Ruby 2.2 #20

Closed thedrow closed 7 years ago

thedrow commented 8 years ago

I'm talking about http://www.rubydoc.info/gems/rom-http#Extending Also, the require statements for rom and rom-http are missing.

romhttp.rb:19: syntax error, unexpected keyword_do_block, expecting keyword_end
...rs.each_with_object(request) do |(header, value), request|
...                               ^
romhttp.rb:19: syntax error, unexpected '|', expecting '='
romhttp.rb:51: syntax error, unexpected keyword_end, expecting end-of-input
AMHOL commented 8 years ago

No syntax errors for me here, how did you get this to happen?