Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Now image is an array instead of a hash
Browse files Browse the repository at this point in the history
  • Loading branch information
martinszy committed May 7, 2014
1 parent dd59fa5 commit b933dcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source "http://rubygems.org/"

gem "nokogiri"
gem "popit"
gem "i18n"
gem "i18n"
8 changes: 6 additions & 2 deletions lib/parser_diputados.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ def parse
diputado[:url] = parse_url el
diputado[:block] = parse_block el

diputado[:images] = {}
diputado[:images][:url] = parse_image_url el
diputado[:images] = []

image = {}
image[:url] = parse_image_url el

diputado[:images] << image

diputado[:contact_details] = [contact_details(diputado[:email])]

Expand Down

0 comments on commit b933dcf

Please sign in to comment.