Skip to content

Commit

Permalink
fix: explicit File.open
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jul 26, 2014
1 parent 6059e81 commit ac4f915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -159,7 +159,7 @@ def motions
# url = @POLICIES + ENV['MORPH_KEY']
# warn "Fetching <#{url}>"
url = 'theyworkforyou_policies.json'
policy_ids = JSON.parse(open(url).read ).map { |e| e['id'] }.take(2)
policy_ids = JSON.parse(File.open(url).read ).map { |e| e['id'] }.take(2)

# policy_ids = [363]

Expand Down

0 comments on commit ac4f915

Please sign in to comment.