autometal-geoip 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -74,7 +74,7 @@ You can override the attribute used to geolocate by overriding +geo_attr+
74
74
  sudo gem install autometal-geoip
75
75
  sudo install_geoip (unless already installed)
76
76
 
77
- == CHANGELOG
77
+ == CHANGELOG:
78
78
  * 0.4
79
79
  Ruby 1.9.* support. Previous version of this gem would product encoding errors in some instances due to the different way Ruby 1.9+ deals with source and text encodings.
80
80
  * 0.3.7
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autometal-geoip}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Achillefs Charmpilas"]
9
- s.date = %q{2011-01-16}
9
+ s.date = %q{2012-02-23}
10
10
  s.default_executable = %q{install_geoip}
11
11
  s.description = %q{A wrapper to MaxMind's GeoIP services, that can work with both free and paid versions.
12
12
  Also provides geo-location methods to Active Record and Sequel Models.
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
  module Autometal
5
5
  class Geoip
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
  DATA_FILE_PATH = "/usr/local/share/GeoIP/"
8
8
  BIN = "geoiplookup"
9
9
  def initialize ip_or_domain
@@ -2,6 +2,11 @@
2
2
  mkdir ./tmp && cd ./tmp
3
3
  wget $1
4
4
  tar -xzvf *.gz && cd GeoIP*
5
+
6
+ if [[ 'Linux' == `uname` ]]; then
7
+ libtoolize -f
8
+ fi
9
+
5
10
  ./configure && make && make check
6
11
  if which sudo
7
12
  then
@@ -10,4 +15,4 @@ else
10
15
  make install
11
16
  fi
12
17
  cd ../..
13
- rm -rf ./tmp
18
+ rm -rf ./tmp
@@ -5,7 +5,7 @@ class Dummy
5
5
  attr_accessor :ip
6
6
 
7
7
  def initialize
8
- @ip = open("http://check-rankings.co.uk").read rescue "66.102.13.105"
8
+ @ip = open("http://humbuckercode.co.uk/ping.php").read rescue "66.102.13.105"
9
9
  end
10
10
  end
11
11
 
@@ -14,7 +14,7 @@ class AnotherDummy
14
14
  attr_accessor :pantera
15
15
 
16
16
  def initialize
17
- @pantera = open("http://check-rankings.co.uk").read rescue "66.102.13.105"
17
+ @pantera = open("http://humbuckercode.co.uk/ping.php").read rescue "66.102.13.105"
18
18
  end
19
19
  def geo_attr; pantera; end
20
20
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autometal-geoip
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Achillefs Charmpilas
@@ -15,41 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-16 00:00:00 +01:00
18
+ date: 2012-02-23 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rubyforge
22
+ name: hoe
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 7
29
+ hash: 35
30
30
  segments:
31
31
  - 2
32
- - 0
32
+ - 9
33
33
  - 4
34
- version: 2.0.4
34
+ version: 2.9.4
35
35
  type: :development
36
36
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: hoe
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 2
48
- - 6
49
- - 2
50
- version: 2.6.2
51
- type: :development
52
- version_requirements: *id002
53
37
  description: |-
54
38
  A wrapper to MaxMind's GeoIP services, that can work with both free and paid versions.
55
39
  Also provides geo-location methods to Active Record and Sequel Models.
@@ -85,6 +69,7 @@ files:
85
69
  - shellscripts/install_db
86
70
  - test/test_geoip.rb
87
71
  - test/test_helper.rb
72
+ - .gemtest
88
73
  has_rdoc: true
89
74
  homepage: http://github.com/Achillefs/geoip
90
75
  licenses: []
@@ -123,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
108
  requirements: []
124
109
 
125
110
  rubyforge_project: autometal-geoip
126
- rubygems_version: 1.4.2
111
+ rubygems_version: 1.6.2
127
112
  signing_key:
128
113
  specification_version: 3
129
114
  summary: A wrapper to MaxMind's GeoIP services, that can work with both free and paid versions