Skip to content

Commit f93ec02

Browse files
authored
Merge pull request #11 from ankane/dataset
Updated dataset
2 parents dea3bcf + ac51092 commit f93ec02

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

data/datacenters

78 Bytes
Binary file not shown.

lib/ipcat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def load_csv!(path='https://raw.github.com/client9/ipcat/master/datacenters.csv'
3030
reset_ranges!
3131

3232
require 'open-uri'
33-
open(path).readlines[1..-1].each do |line|
33+
open(path).readlines.each do |line|
3434
first, last, name, url = line.split(',')
3535
self.ranges << IPRange.new(first, last, name, url).freeze
3636
end

0 commit comments

Comments
 (0)