geoip-jars 1.2.3-java → 1.2.12-java

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 401405fcad183c1a3ddfd171d9fd187489afb05f
4
+ data.tar.gz: 77db4673a24809dd8ef900644c887ae760050596
5
+ SHA512:
6
+ metadata.gz: a6566d9822d96644fd4246b1a511ebde7b200bbb13b166c079a7dbca7df1ed3cc529f2e343f8d00b57773bf6cd8cdc5906b242828e21312b4ee18e1c653ecddf
7
+ data.tar.gz: f3b1a336ea418a62f4275a3333a349d7de834cb06a14fb20912d7eed579a1083f6fa6e72408f258a6d16a7ef5dc88b63e243894e5b136f27e57316d00baf7342
Binary file
@@ -3,39 +3,3 @@
3
3
  require 'java'
4
4
 
5
5
  Dir["#{File.expand_path('..', __FILE__)}/*.jar"].each { |jar| require(jar) }
6
-
7
-
8
- class Java::ComMaxmindGeoip::Location
9
- HASH_FIELDS = {
10
- :country_code => :countryCode,
11
- :country_name => :countryName,
12
- :region_code => :region,
13
- :region_name => :region_name,
14
- :city => :city,
15
- :postal_code => :postalCode,
16
- :latitude => :latitude,
17
- :longitude => :longitude,
18
- :dma_code => :dma_code,
19
- :area_code => :area_code,
20
- :metro_code => :metro_code,
21
- :time_zone => :time_zone
22
- }
23
-
24
- def region_name
25
- @region_name ||= Java::ComMaxmindGeoip::regionName.region_name_by_code(countryCode, region)
26
- end
27
-
28
-
29
- def time_zone
30
- @time_zone ||= Java::ComMaxmindGeoip::timeZone.time_zone_by_country_and_region(countryCode, region)
31
- end
32
-
33
- def to_h
34
- @h ||= begin
35
- HASH_FIELDS.reduce({}) do |acc, (hash_field, java_field)|
36
- acc[hash_field] = self.send(java_field)
37
- acc
38
- end
39
- end
40
- end
41
- end
metadata CHANGED
@@ -1,56 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: geoip-jars
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.2.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.12
6
5
  platform: java
7
- authors:
6
+ authors:
8
7
  - Theo Hultberg
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-09-15 00:00:00 Z
11
+ date: 2014-03-17 00:00:00.000000000 Z
14
12
  dependencies: []
15
-
16
- description: ""
17
- email:
13
+ description: ''
14
+ email:
18
15
  - theo@iconara.net
19
16
  executables: []
20
-
21
17
  extensions: []
22
-
23
18
  extra_rdoc_files: []
24
-
25
- files:
19
+ files:
20
+ - lib/geoip-api-1.2.12.jar
26
21
  - lib/geoip-jars.rb
27
- - lib/geoip-1.2.3.jar
28
22
  homepage: http://www.maxmind.com/app/java
29
23
  licenses: []
30
-
31
- post_install_message:
24
+ metadata: {}
25
+ post_install_message:
32
26
  rdoc_options: []
33
-
34
- require_paths:
27
+ require_paths:
35
28
  - lib
36
- required_ruby_version: !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: "0"
42
- required_rubygems_version: !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
48
39
  requirements: []
49
-
50
40
  rubyforge_project: geoip-jars
51
- rubygems_version: 1.8.10
52
- signing_key:
53
- specification_version: 3
41
+ rubygems_version: 2.2.1
42
+ signing_key:
43
+ specification_version: 4
54
44
  summary: Maxmind GeoIP JARs
55
45
  test_files: []
56
-
Binary file