geoip 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/geoip.gemspec +2 -2
  2. data/lib/geoip.rb +3 -3
  3. metadata +4 -4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{geoip}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Clifford Heath", "Roland Moriz"]
12
- s.date = %q{2011-05-05}
12
+ s.date = %q{2011-05-06}
13
13
  s.default_executable = %q{geoip}
14
14
  s.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,
@@ -54,7 +54,7 @@ require 'yaml'
54
54
  class GeoIP
55
55
 
56
56
  # The GeoIP GEM version number
57
- VERSION = "1.1.0"
57
+ VERSION = "1.1.1"
58
58
 
59
59
  # The +data/+ directory for geoip
60
60
  DATA_DIR = File.expand_path(File.join(File.dirname(__FILE__),'..','data','geoip'))
@@ -268,7 +268,7 @@ class GeoIP
268
268
  end
269
269
 
270
270
  pos = seek_record(ipnum)
271
- off = pos + (2 * (@record_length-1)) * @database_segments[0]
271
+ off = pos + (2*@record_length - 1) * @database_segments[0]
272
272
 
273
273
  record = atomic_read(MAX_ORG_RECORD_LENGTH, off)
274
274
  record = record.sub(/\000.*/n, '')
@@ -297,7 +297,7 @@ class GeoIP
297
297
  end
298
298
 
299
299
  pos = seek_record(ipnum)
300
- off = pos + (2 * (@record_length - 1)) * @database_segments[0]
300
+ off = pos + (2*@record_length - 1) * @database_segments[0]
301
301
 
302
302
  record = atomic_read(MAX_ASN_RECORD_LENGTH, off)
303
303
  record = record.sub(/\000.*/n, '')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoip
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Clifford Heath
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-05 00:00:00 +10:00
19
+ date: 2011-05-06 00:00:00 +10:00
20
20
  default_executable: geoip
21
21
  dependencies: []
22
22