geokit-rails3 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,28 +4,28 @@ require 'rails'
4
4
  module Geokit
5
5
 
6
6
  class Railtie < Rails::Railtie
7
-
7
+
8
8
  config.geokit = ActiveSupport::OrderedOptions.new
9
9
  config.geokit.geocoders = ActiveSupport::OrderedOptions.new
10
-
10
+
11
11
  initializer 'geokit-rails3.insert_into_active_record' do
12
12
  ActiveSupport.on_load :active_record do
13
13
  ActiveRecord::Base.send(:include, Geokit::ActsAsMappable::Glue)
14
14
  Geokit::Geocoders.logger = ActiveRecord::Base.logger
15
15
  end
16
16
  end
17
-
17
+
18
18
  initializer 'geokit-rails3.insert_into_action_controller' do
19
19
  ActiveSupport.on_load :action_controller do
20
20
  ActionController::Base.send(:include, Geokit::GeocoderControl)
21
21
  ActionController::Base.send(:include, GeoKit::IpGeocodeLookup)
22
22
  end
23
23
  end
24
-
24
+
25
25
  config.after_initialize do |app|
26
26
  options = app.config.geokit
27
27
  geocoders_options = options.delete(:geocoders)
28
-
28
+
29
29
  options.each do |k,v|
30
30
  Geokit::send("#{k}=", v)
31
31
  end
@@ -34,5 +34,5 @@ module Geokit
34
34
  end
35
35
  end
36
36
  end
37
-
37
+
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module GeokitRails3
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geokit-rails3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Lewis
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-11 00:00:00 +02:00
20
+ date: 2010-10-12 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -128,7 +128,6 @@ extensions: []
128
128
  extra_rdoc_files: []
129
129
 
130
130
  files:
131
- - lib/geokit-rails.rb
132
131
  - lib/geokit-rails3/acts_as_mappable.old.rb
133
132
  - lib/geokit-rails3/acts_as_mappable.rb
134
133
  - lib/geokit-rails3/adapters/abstract.rb
@@ -142,6 +141,7 @@ files:
142
141
  - lib/geokit-rails3/ip_geocode_lookup.rb
143
142
  - lib/geokit-rails3/railtie.rb
144
143
  - lib/geokit-rails3/version.rb
144
+ - lib/geokit-rails3.rb
145
145
  - test/acts_as_mappable_test.rb
146
146
  - test/boot.rb
147
147
  - test/database.yml