adept_geoip 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +5 -4
  2. data/lib/geoip.rb +2 -2
  3. metadata +5 -4
  4. data/adept_geoip.gemspec +0 -60
data/Rakefile CHANGED
@@ -7,16 +7,17 @@ require './lib/geoip'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
9
9
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
10
+ gem.version = '1.1.3'
10
11
  gem.name = "adept_geoip"
11
- gem.version = GeoIP::VERSION
12
+ #gem.version = GeoIP::VERSION
12
13
  gem.homepage = "https://github.com/AdeptMobile/geoip"
13
14
  gem.license = "MIT"
14
15
  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.Forked by Adept Mobile to modify/extend.}
15
16
  gem.description = %Q{GeoIP searches a GeoIP database for a given host or IP address, and
16
17
  returns information about the country where the IP address is allocated,
17
18
  and the city, ISP and other information, if you have that database version. Forked by Adept Mobile to modify/extend.}
18
- gem.email = %w[craig.heneveld@adeptmobi.com]
19
- gem.authors = ["Craig Heneveld"]
19
+ gem.email = %w[clifford.heath@gmail.com rmoriz@gmail.com]
20
+ gem.authors = ["Clifford Heath", "Roland Moriz"]
20
21
  # Include your dependencies below. Runtime dependencies are required when using your gem,
21
22
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
22
23
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
@@ -32,7 +33,7 @@ Rake::TestTask.new(:test) do |test|
32
33
  end
33
34
  task :default => :test
34
35
 
35
- require 'rake/rdoctask'
36
+ require 'rdoc/task'
36
37
  Rake::RDocTask.new do |rdoc|
37
38
  rdoc.rdoc_dir = 'rdoc'
38
39
  rdoc.title = "adept_geoip #{GeoIP::VERSION}"
@@ -112,8 +112,8 @@ class GeoIP
112
112
 
113
113
  end
114
114
 
115
- class City < Struct.new(:request, :ip, :country_code2, :country_code3, :country_name, :continent_code,
116
- :region_name, :city_name, :postal_code, :latitude, :longitude, :dma_code, :area_code, :timezone)
115
+ class City < Struct.new(:request, :ip, :country_code, :country_code3, :country_name, :continent_code,
116
+ :region_code, :city, :zipcode, :latitude, :longitude, :metrocode, :area_code, :timezone)
117
117
 
118
118
  def to_hash
119
119
  Hash[each_pair.to_a]
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adept_geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Craig Heneveld
8
+ - Clifford Heath
9
+ - Roland Moriz
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
@@ -18,7 +19,8 @@ description: ! 'GeoIP searches a GeoIP database for a given host or IP address,
18
19
  and the city, ISP and other information, if you have that database version. Forked
19
20
  by Adept Mobile to modify/extend.'
20
21
  email:
21
- - craig.heneveld@adeptmobi.com
22
+ - clifford.heath@gmail.com
23
+ - rmoriz@gmail.com
22
24
  executables:
23
25
  - geoip
24
26
  extensions: []
@@ -28,7 +30,6 @@ files:
28
30
  - History.rdoc
29
31
  - README.rdoc
30
32
  - Rakefile
31
- - adept_geoip.gemspec
32
33
  - bin/geoip
33
34
  - config/website.yml
34
35
  - data/geoip/country_code.yml
@@ -1,60 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{adept_geoip}
8
- s.version = "1.1.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Craig Heneveld}]
12
- s.date = %q{2012-02-21}
13
- s.description = %q{GeoIP searches a GeoIP database for a given host or IP address, and
14
- returns information about the country where the IP address is allocated,
15
- and the city, ISP and other information, if you have that database version. Forked by Adept Mobile to modify/extend.}
16
- s.email = [%q{craig.heneveld@adeptmobi.com}]
17
- s.executables = [%q{geoip}]
18
- s.extra_rdoc_files = [
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- "History.rdoc",
23
- "README.rdoc",
24
- "Rakefile",
25
- "adept_geoip.gemspec",
26
- "bin/geoip",
27
- "config/website.yml",
28
- "data/geoip/country_code.yml",
29
- "data/geoip/country_code3.yml",
30
- "data/geoip/country_continent.yml",
31
- "data/geoip/country_name.yml",
32
- "data/geoip/time_zone.yml",
33
- "geoip.gemspec",
34
- "lib/geoip.rb",
35
- "script/destroy",
36
- "script/generate",
37
- "script/txt2html",
38
- "test/test_geoip.rb",
39
- "test/test_helper.rb",
40
- "website/index.txt",
41
- "website/javascripts/rounded_corners_lite.inc.js",
42
- "website/stylesheets/screen.css",
43
- "website/template.rhtml"
44
- ]
45
- s.homepage = %q{https://github.com/AdeptMobile/geoip}
46
- s.licenses = [%q{MIT}]
47
- s.require_paths = [%q{lib}]
48
- s.rubygems_version = %q{1.8.8}
49
- s.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.Forked by Adept Mobile to modify/extend.}
50
-
51
- if s.respond_to? :specification_version then
52
- s.specification_version = 3
53
-
54
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
- else
56
- end
57
- else
58
- end
59
- end
60
-