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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/{app → lib/app}/controllers/magic_addresses/base_controller.rb +0 -0
  3. data/{app → lib/app}/controllers/magic_addresses/cities_controller.rb +0 -0
  4. data/{app → lib/app}/controllers/magic_addresses/countries_controller.rb +0 -0
  5. data/{app → lib/app}/controllers/magic_addresses/districts_controller.rb +0 -0
  6. data/{app → lib/app}/controllers/magic_addresses/states_controller.rb +0 -0
  7. data/{app → lib/app}/controllers/magic_addresses/subdistricts_controller.rb +0 -0
  8. data/{app → lib/app}/models/magic_addresses/address.rb +0 -0
  9. data/{app → lib/app}/models/magic_addresses/association.rb +0 -0
  10. data/{app → lib/app}/models/magic_addresses/city.rb +0 -0
  11. data/{app → lib/app}/models/magic_addresses/country.rb +0 -0
  12. data/{app → lib/app}/models/magic_addresses/district.rb +0 -0
  13. data/{app → lib/app}/models/magic_addresses/geo_coder.rb +0 -0
  14. data/{app → lib/app}/models/magic_addresses/state.rb +0 -0
  15. data/{app → lib/app}/models/magic_addresses/subdistrict.rb +0 -0
  16. data/{app → lib/app}/models/magic_addresses/translator.rb +0 -0
  17. data/{app → lib/app}/models/magic_addresses.rb +0 -0
  18. data/{app → lib/app}/views/magic_addresses/addresses/_address_fields.html.erb +0 -0
  19. data/{app → lib/app}/views/magic_addresses/addresses/_addresses_fields.html.erb +0 -0
  20. data/{app → lib/app}/views/magic_addresses/addresses/fields/_address.html.erb +0 -0
  21. data/{app → lib/app}/views/magic_addresses/cities/index.html.erb +0 -0
  22. data/{app → lib/app}/views/magic_addresses/countries/index.html.erb +0 -0
  23. data/{app → lib/app}/views/magic_addresses/districts/index.html.erb +0 -0
  24. data/{app → lib/app}/views/magic_addresses/states/index.html.erb +0 -0
  25. data/{app → lib/app}/views/magic_addresses/subdistricts/index.html.erb +0 -0
  26. data/{app → lib/app}/workers/address_worker.rb +0 -0
  27. data/lib/magic_addresses/version.rb +1 -1
  28. data/lib/magic_addresses.rb +23 -18
  29. data/spec/dummy/db/test.sqlite3 +0 -0
  30. data/spec/dummy/log/test.log +4824 -0
  31. metadata +27 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afae17ac192fd28b6715937a4a9d213298b208a1
4
- data.tar.gz: 884a80a98cc530e7d53f128d9c0d96b22d269536
3
+ metadata.gz: 362b20492a6f3db15faf931e03a3fcedebbe45c3
4
+ data.tar.gz: db59e11b32dc81a1e775df5cb39e7bc77f94de3f
5
5
  SHA512:
6
- metadata.gz: 5c6854f10dedc764d2a539bbdff5dbb03c5cc56c95a3f0b0e0db40984926653b5f514a9982743ae86775560cf433b681b408603197ee6d1943012a49c68407f9
7
- data.tar.gz: 943f8b826fbedb192e86d60a34195142fa17a966f39b6fd6ea4d25157eb381aedf8781d7631bc2aa7466289208a6f9bc5091fd134ecbe84e1398e73441821def
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
@@ -1,3 +1,3 @@
1
1
  module MagicAddresses
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -7,9 +7,9 @@ require 'geocoder/results/nominatim_decorator'
7
7
 
8
8
  require "magic_addresses/configuration"
9
9
 
10
- require "../../app/models/magic_addresses/association"
11
- require "../../app/models/magic_addresses/translator"
12
- require "../../app/models/magic_addresses"
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, "../../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"
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, "../../app/models/magic_addresses/geo_coder"
29
+ autoload :GeoCoder, "app/models/magic_addresses/geo_coder"
30
30
 
31
31
  # controllers
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"
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( "../../app/views" )
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__) + "../../app/views"
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
 
Binary file