Skip to content

Commit

Permalink
Fix misleading syntax for Ruby > 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasleger authored Feb 17, 2018
1 parent 9d2721f commit c2bb7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ task :generate_status_codes do

url = "http://www.iana.org/assignments/http-status-codes/http-status-codes.xml"
xml = Nokogiri::XML HTTP.get url
arr = xml.xpath("//xmlns:record").reduce [] do |a, e|
arr = xml.xpath("//xmlns:record").reduce([]) do |a, e|
code = e.xpath("xmlns:value").text.to_s
desc = e.xpath("xmlns:description").text.to_s

Expand Down

0 comments on commit c2bb7dc

Please sign in to comment.