Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ipcat data source: rale ~> growlfm. #38

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule ".gitsubmodules/rale/ipcat"]
path = .gitsubmodules/rale/ipcat
url = https://github.com/rale/ipcat.git
[submodule ".gitsubmodules/growlfm/ipcat"]
path = .gitsubmodules/growlfm/ipcat
url = https://github.com/growlfm/ipcat
1 change: 1 addition & 0 deletions .gitsubmodules/growlfm/ipcat
Submodule ipcat added at d1d864
1 change: 0 additions & 1 deletion .gitsubmodules/rale/ipcat
Submodule ipcat deleted from 67494a
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ipcat-ruby

A ruby port of the [ipcat](https://github.com/rale/ipcat) library to classify IP addresses from known datacenters
A ruby port of the [ipcat](https://github.com/growlfm/ipcat) library to classify IP addresses from known datacenters

[![gem](https://img.shields.io/gem/v/ipcat?color=crimson&logo=rubygems&logoColor=eee&style=flat)](https://rubygems.org/gems/ipcat)
[![minitest](https://github.com/kickstarter/ipcat-ruby/actions/workflows/minitest.yml/badge.svg)](https://github.com/kickstarter/ipcat-ruby/actions/workflows/minitest.yml)
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ end

##
# Generate data/datacenters binary
file 'data/datacenters' => '.gitsubmodules/rale/ipcat/datacenters.csv' do |f|
file 'data/datacenters' => '.gitsubmodules/growlfm/ipcat/datacenters.csv' do |f|
IPCat.load_csv!(path = f.prereqs.first)
File.open(f.name, 'w') { |f| f << Marshal.dump(IPCat.ranges) }
end
2 changes: 1 addition & 1 deletion ipcat-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.licenses = ['MIT']

s.authors = ['Aaron Suggs']
s.description = 'A ruby port of the ipcat library: https://github.com/rale/ipcat/'
s.description = 'A ruby port of the ipcat library: https://github.com/growlfm/ipcat/'
s.email = '[email protected]'

s.files = Dir.glob('{bin,lib,data}/**/*') + %w[Rakefile README.md]
Expand Down
4 changes: 2 additions & 2 deletions lib/ipcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

##
# IPCat
# Ruby lib for https://github.com/rale/ipcat/
# Ruby lib for https://github.com/growlfm/ipcat/

require 'ipaddr'
require 'ipcat/iprange'
Expand All @@ -27,7 +27,7 @@ def reset_ranges!(new_ranges = [])
@ranges = new_ranges
end

def load_csv!(path = 'https://raw.githubusercontent.com/rale/ipcat/master/datacenters.csv')
def load_csv!(path = 'https://raw.githubusercontent.com/growlfm/ipcat/master/datacenters.csv')
reset_ranges!

require 'open-uri'
Expand Down