geoip 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +10 -6
- data/Rakefile +2 -2
- data/data/geoip/region.yml +4249 -0
- data/geoip.gemspec +4 -3
- data/lib/geoip.rb +139 -21
- data/script/txt2html +4 -5
- data/website/index.txt +4 -4
- metadata +4 -3
data/README.rdoc
CHANGED
|
@@ -85,15 +85,19 @@ This version Copyright (C) 2005 Clifford Heath
|
|
|
85
85
|
Derived from the C version, Copyright (C) 2003 MaxMind LLC
|
|
86
86
|
|
|
87
87
|
This library is free software; you can redistribute it and/or
|
|
88
|
-
modify it under the terms of the GNU General Public
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
modify it under the terms of the GNU Lesser General Public License,
|
|
89
|
+
as published by the Free Software Foundation; either version 2.1 of
|
|
90
|
+
the License, or (at your option) any later version. This follows the
|
|
91
|
+
license applied by Maxmind to their C library, for example in the
|
|
92
|
+
version here:
|
|
93
|
+
<http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.2.tar.gz>.
|
|
91
94
|
|
|
92
95
|
This library is distributed in the hope that it will be useful,
|
|
93
96
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
94
97
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
95
|
-
General Public License for more details.
|
|
98
|
+
Lesser General Public License for more details.
|
|
96
99
|
|
|
97
|
-
You should have received a copy of the GNU General Public
|
|
100
|
+
You should have received a copy of the GNU Lesser General Public
|
|
98
101
|
License along with this library; if not, write to the Free Software
|
|
99
|
-
Foundation, Inc.,
|
|
102
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
103
|
+
|
data/Rakefile
CHANGED
|
@@ -9,7 +9,7 @@ Jeweler::Tasks.new do |gem|
|
|
|
9
9
|
gem.name = "geoip"
|
|
10
10
|
gem.version = GeoIP::VERSION
|
|
11
11
|
gem.homepage = "http://github.com/cjheath/geoip"
|
|
12
|
-
gem.license = "
|
|
12
|
+
gem.license = "LGPL"
|
|
13
13
|
gem.summary = %Q{GeoIP searches a GeoIP database for a given host or IP address, and returns information about the country where the IP address is allocated, and the city, ISP and other information, if you have that database version.}
|
|
14
14
|
gem.description = %Q{GeoIP searches a GeoIP database for a given host or IP address, and
|
|
15
15
|
returns information about the country where the IP address is allocated,
|
|
@@ -31,7 +31,7 @@ Rake::TestTask.new(:test) do |test|
|
|
|
31
31
|
end
|
|
32
32
|
task :default => :test
|
|
33
33
|
|
|
34
|
-
require '
|
|
34
|
+
require 'rdoc/task'
|
|
35
35
|
Rake::RDocTask.new do |rdoc|
|
|
36
36
|
rdoc.rdoc_dir = 'rdoc'
|
|
37
37
|
rdoc.title = "geoip #{GeoIP::VERSION}"
|