autometal-geoip 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +8 -4
  2. data/lib/geoip.rb +1 -1
  3. metadata +4 -4
@@ -14,12 +14,12 @@ Plus, the ruby bindings available from MaxMind are quite crap to use.
14
14
 
15
15
  == FEATURES/PROBLEMS:
16
16
 
17
- * While you are installing the MaxMind binaries on Linux systems, you mayget an error similar to this:
17
+ * While you are installing the MaxMind binaries on Linux systems, you may get an error similar to this:
18
18
  libGeoIP.so.1: cannot open shared object file: No such file or directory
19
19
  If you do, do the following:
20
20
  $ vim /etc/ld.so.conf (and add /var/shared/lib)
21
21
  $ ldconfig
22
- And rerun the installer
22
+ And rerun the installer.
23
23
 
24
24
  == SYNOPSIS:
25
25
 
@@ -45,7 +45,7 @@ You can make any object Geo-location aware, as long as it has an IP or a domain
45
45
  require "rubygems"
46
46
  require "geoip"
47
47
  class Site
48
- include Geolocatable
48
+ include Autometal::Geolocatable
49
49
  end
50
50
  Site.new(:domain => "google.com")
51
51
  site.country
@@ -58,7 +58,7 @@ You can override the attribute used to geolocate by overriding +geo_attr+
58
58
  require "rubygems"
59
59
  require "geoip"
60
60
  class Site
61
- include Geolocatable
61
+ include Autometal::Geolocatable
62
62
  def geo_attr; self.weird_ip_field_name; end
63
63
  end
64
64
  Site.new(:weird_ip_field_name => "66.102.13.106")
@@ -75,6 +75,10 @@ You can override the attribute used to geolocate by overriding +geo_attr+
75
75
  sudo install_geoip (unless already installed)
76
76
 
77
77
  == CHANGELOG
78
+ * 0.3.5
79
+ Documentation fixes
80
+ * 0.3.4
81
+ Changed bin_installed detection
78
82
  * 0.3.3
79
83
  Removed active_support dependency
80
84
  * 0.2.2
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
  module Autometal
5
5
  class Geoip
6
- VERSION = '0.3.4'
6
+ VERSION = '0.3.5'
7
7
  DATA_FILE_PATH = "/usr/local/share/GeoIP/"
8
8
  BIN = "geoiplookup"
9
9
  def initialize ip_or_domain
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Achillefs Charmpilas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-25 00:00:00 +01:00
18
+ date: 2011-01-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency