magic_addresses 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/{lib/app → app}/views/magic_addresses/addresses/_address_fields.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/addresses/_addresses_fields.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/addresses/fields/_address.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/cities/index.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/countries/index.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/districts/index.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/states/index.html.erb +0 -0
- data/{lib/app → app}/views/magic_addresses/subdistricts/index.html.erb +0 -0
- data/lib/generators/magic_addresses/templates/magic_initializer.rb +1 -1
- data/lib/magic_addresses/version.rb +1 -1
- data/lib/magic_addresses.rb +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04946620634d33d918a6375503baf2894d92b4dd
|
|
4
|
+
data.tar.gz: 2e05fa7e9bdb2d805e9b43969dd9de3f90c881bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b918635d6fcc6bdbee94451837e7f6d5fac4a97efee99095932b01a6cbf26cff2329a4b0e1dbaf7986176a6faaadbd9eec4a1a61063380ba3af9fd8e76c5dcc1
|
|
7
|
+
data.tar.gz: 8c61777fa3f04599b8541c322653c6198dce76bbc4160659eee7895c4e4167f5b5fa8f4d7464faae4e3351ac3822b090078e16aa7a31ea2aa0e20c014a09842d
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ MagicAddresses.configure do |config|
|
|
|
3
3
|
config.active_locales = [:en, :de]
|
|
4
4
|
# what is the default language (should be :en, except you don't need english at all)
|
|
5
5
|
config.default_locale = :en
|
|
6
|
-
# what is the default
|
|
6
|
+
# what is the default country (for lookup)
|
|
7
7
|
config.default_country = "Germany"
|
|
8
8
|
# use a background-process for the lookups
|
|
9
9
|
config.job_backend = :none
|
data/lib/magic_addresses.rb
CHANGED
|
@@ -72,8 +72,8 @@ ActiveSupport.on_load(:active_record) do
|
|
|
72
72
|
require 'geocoder'
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
ActionController::Base.append_view_path File.dirname(__FILE__) + "app/views"
|
|
75
|
+
ActionController::Base.prepend_view_path "#{root}/app/views"
|
|
76
|
+
# => ActionController::Base.append_view_path File.dirname(__FILE__) + "app/views"
|
|
77
77
|
|
|
78
78
|
#require 'geocoder'
|
|
79
79
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: magic_addresses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Torsten Wetzel
|
|
@@ -116,6 +116,14 @@ executables: []
|
|
|
116
116
|
extensions: []
|
|
117
117
|
extra_rdoc_files: []
|
|
118
118
|
files:
|
|
119
|
+
- app/views/magic_addresses/addresses/_address_fields.html.erb
|
|
120
|
+
- app/views/magic_addresses/addresses/_addresses_fields.html.erb
|
|
121
|
+
- app/views/magic_addresses/addresses/fields/_address.html.erb
|
|
122
|
+
- app/views/magic_addresses/cities/index.html.erb
|
|
123
|
+
- app/views/magic_addresses/countries/index.html.erb
|
|
124
|
+
- app/views/magic_addresses/districts/index.html.erb
|
|
125
|
+
- app/views/magic_addresses/states/index.html.erb
|
|
126
|
+
- app/views/magic_addresses/subdistricts/index.html.erb
|
|
119
127
|
- config/locales/mgca.de.yml
|
|
120
128
|
- config/locales/mgca.en.yml
|
|
121
129
|
- lib/app/controllers/magic_addresses/base_controller.rb
|
|
@@ -134,14 +142,6 @@ files:
|
|
|
134
142
|
- lib/app/models/magic_addresses/subdistrict.rb
|
|
135
143
|
- lib/app/models/magic_addresses/translator.rb
|
|
136
144
|
- lib/app/models/magic_addresses.rb
|
|
137
|
-
- lib/app/views/magic_addresses/addresses/_address_fields.html.erb
|
|
138
|
-
- lib/app/views/magic_addresses/addresses/_addresses_fields.html.erb
|
|
139
|
-
- lib/app/views/magic_addresses/addresses/fields/_address.html.erb
|
|
140
|
-
- lib/app/views/magic_addresses/cities/index.html.erb
|
|
141
|
-
- lib/app/views/magic_addresses/countries/index.html.erb
|
|
142
|
-
- lib/app/views/magic_addresses/districts/index.html.erb
|
|
143
|
-
- lib/app/views/magic_addresses/states/index.html.erb
|
|
144
|
-
- lib/app/views/magic_addresses/subdistricts/index.html.erb
|
|
145
145
|
- lib/app/workers/address_worker.rb
|
|
146
146
|
- lib/generators/magic_addresses/install_generator.rb
|
|
147
147
|
- lib/generators/magic_addresses/templates/country_seeds.rb
|