magic_addresses 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{app → lib/app}/controllers/magic_addresses/base_controller.rb +0 -0
- data/{app → lib/app}/controllers/magic_addresses/cities_controller.rb +0 -0
- data/{app → lib/app}/controllers/magic_addresses/countries_controller.rb +0 -0
- data/{app → lib/app}/controllers/magic_addresses/districts_controller.rb +0 -0
- data/{app → lib/app}/controllers/magic_addresses/states_controller.rb +0 -0
- data/{app → lib/app}/controllers/magic_addresses/subdistricts_controller.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/address.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/association.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/city.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/country.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/district.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/geo_coder.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/state.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/subdistrict.rb +0 -0
- data/{app → lib/app}/models/magic_addresses/translator.rb +0 -0
- data/{app → lib/app}/models/magic_addresses.rb +0 -0
- data/{app → lib/app}/views/magic_addresses/addresses/_address_fields.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/addresses/_addresses_fields.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/addresses/fields/_address.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/cities/index.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/countries/index.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/districts/index.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/states/index.html.erb +0 -0
- data/{app → lib/app}/views/magic_addresses/subdistricts/index.html.erb +0 -0
- data/{app → lib/app}/workers/address_worker.rb +0 -0
- data/lib/magic_addresses/version.rb +1 -1
- data/lib/magic_addresses.rb +23 -18
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +4824 -0
- metadata +27 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362b20492a6f3db15faf931e03a3fcedebbe45c3
|
4
|
+
data.tar.gz: db59e11b32dc81a1e775df5cb39e7bc77f94de3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2467ca34556f4d5b69e65b91a7864f60b0a31fc5fc84c5729518843c6e34fd7974085ec3158aa84f51143dd7717dad7a89e9a985b7ebceb0609bd58c94eae60e
|
7
|
+
data.tar.gz: ddc8d63e84e8519cd2c36cb7c07cfd0a53d2a2f45d5c39aaf537ddd0586b2f4c0cc43f633a24d257a8908ed89dc6ee9dd2abd854fb1f53b70b30e019dc6d6afe
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/magic_addresses.rb
CHANGED
@@ -7,9 +7,9 @@ require 'geocoder/results/nominatim_decorator'
|
|
7
7
|
|
8
8
|
require "magic_addresses/configuration"
|
9
9
|
|
10
|
-
require "
|
11
|
-
require "
|
12
|
-
require "
|
10
|
+
require "app/models/magic_addresses/association"
|
11
|
+
require "app/models/magic_addresses/translator"
|
12
|
+
require "app/models/magic_addresses"
|
13
13
|
|
14
14
|
require "helpers/mgca_helper"
|
15
15
|
|
@@ -18,30 +18,30 @@ require "magic_addresses/railtie" if defined?(Rails::Railtie)
|
|
18
18
|
module MagicAddresses
|
19
19
|
|
20
20
|
# models
|
21
|
-
autoload :Address, "
|
22
|
-
autoload :Country, "
|
23
|
-
autoload :State, "
|
24
|
-
autoload :City, "
|
25
|
-
autoload :District, "
|
26
|
-
autoload :Subdistrict, "
|
21
|
+
autoload :Address, "app/models/magic_addresses/address"
|
22
|
+
autoload :Country, "app/models/magic_addresses/country"
|
23
|
+
autoload :State, "app/models/magic_addresses/state"
|
24
|
+
autoload :City, "app/models/magic_addresses/city"
|
25
|
+
autoload :District, "app/models/magic_addresses/district"
|
26
|
+
autoload :Subdistrict, "app/models/magic_addresses/subdistrict"
|
27
27
|
|
28
28
|
# services
|
29
|
-
autoload :GeoCoder, "
|
29
|
+
autoload :GeoCoder, "app/models/magic_addresses/geo_coder"
|
30
30
|
|
31
31
|
# controllers
|
32
|
-
autoload :BaseController, "
|
33
|
-
autoload :CountriesController, "
|
34
|
-
autoload :StatesController, "
|
35
|
-
autoload :CitiesController, "
|
36
|
-
autoload :DistrictsController, "
|
37
|
-
autoload :SubdistrictsController, "
|
32
|
+
autoload :BaseController, "app/controllers/magic_addresses/base_controller"
|
33
|
+
autoload :CountriesController, "app/controllers/magic_addresses/countries_controller"
|
34
|
+
autoload :StatesController, "app/controllers/magic_addresses/states_controller"
|
35
|
+
autoload :CitiesController, "app/controllers/magic_addresses/cities_controller"
|
36
|
+
autoload :DistrictsController, "app/controllers/magic_addresses/districts_controller"
|
37
|
+
autoload :SubdistrictsController, "app/controllers/magic_addresses/subdistricts_controller"
|
38
38
|
|
39
39
|
class << self
|
40
40
|
|
41
41
|
attr_accessor :configuration
|
42
42
|
|
43
43
|
#initialize "mgca.add_views" do |app|
|
44
|
-
# app.view_paths.insert 0, ActionView::FileSystemResolver.new( "
|
44
|
+
# app.view_paths.insert 0, ActionView::FileSystemResolver.new( "app/views" )
|
45
45
|
#end
|
46
46
|
|
47
47
|
# Call this method to modify defaults in your initailizers.
|
@@ -61,6 +61,10 @@ module MagicAddresses
|
|
61
61
|
|
62
62
|
end
|
63
63
|
|
64
|
+
def self.root
|
65
|
+
File.expand_path '../..', __FILE__
|
66
|
+
end
|
67
|
+
|
64
68
|
end
|
65
69
|
|
66
70
|
ActiveSupport.on_load(:active_record) do
|
@@ -68,7 +72,8 @@ ActiveSupport.on_load(:active_record) do
|
|
68
72
|
require 'geocoder'
|
69
73
|
end
|
70
74
|
|
71
|
-
ActionController::Base.prepend_view_path File.dirname(__FILE__) + "
|
75
|
+
# => ActionController::Base.prepend_view_path File.dirname(__FILE__) + "app/views"
|
76
|
+
ActionController::Base.append_view_path File.dirname(__FILE__) + "app/views"
|
72
77
|
|
73
78
|
#require 'geocoder'
|
74
79
|
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|