Skip to content

Commit

Permalink
Merge pull request #11 from ankane/dataset
Browse files Browse the repository at this point in the history
Updated dataset
  • Loading branch information
ktheory authored Jun 27, 2016
2 parents dea3bcf + ac51092 commit f93ec02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified data/datacenters
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/ipcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_csv!(path='https://raw.github.com/client9/ipcat/master/datacenters.csv'
reset_ranges!

require 'open-uri'
open(path).readlines[1..-1].each do |line|
open(path).readlines.each do |line|
first, last, name, url = line.split(',')
self.ranges << IPRange.new(first, last, name, url).freeze
end
Expand Down

0 comments on commit f93ec02

Please sign in to comment.