geo_location 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,12 @@ Easily geo-locate your users using their IP address via hostip.info or maxmind.c
8
8
  gem install geo_location
9
9
 
10
10
 
11
+ == Gemspec (using Bundler)
12
+ Add geo_location to your Gemspec.
13
+
14
+ gem 'geo_location'
15
+
16
+
11
17
  == HostIP Configuration
12
18
 
13
19
  config/initializers/geo_location_config.rb:
Binary file
@@ -1,3 +1,3 @@
1
1
  module GeoLocation
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -144,22 +144,4 @@ class TestGeoLocation < Test::Unit::TestCase
144
144
  end
145
145
 
146
146
  end
147
-
148
- context 'on localhost' do
149
-
150
- setup do
151
- #GeoLocation::use = :hostip
152
- GeoLocation::use = :maxmind
153
- GeoLocation::key = 'sNHKg3eUWYoT'
154
- GeoLocation::dev = nil
155
- GeoLocation::dev_ip = nil
156
- @location = GeoLocation.find('127.0.0.1')
157
- end
158
-
159
- should "not work properly" do
160
- puts @location.inspect
161
- assert_equal "nothing", @location[:city]
162
- end
163
- end
164
-
165
147
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Your
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-20 00:00:00 -07:00
17
+ date: 2011-01-23 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -59,6 +59,7 @@ files:
59
59
  - README.rdoc
60
60
  - Rakefile
61
61
  - VERSION
62
+ - geo_location-0.4.1.gem
62
63
  - geo_location.gemspec
63
64
  - lib/geo_location.rb
64
65
  - lib/geo_location/countries.rb