countries_regions_and_cities_by_peterconsuegra 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e9dd399b40901e152a4a6bfc15c7f22272661701ade7dc46dbf34233a173466
|
4
|
+
data.tar.gz: a054bfb1236aca160100cc1216cb3f66e70da44a684ac5c7111fabe7779ce8bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b04e3c08deaa2a98f2dca4a6e993be8162369c24ddd0bde0fee338e8129a56b9c761a7f72b9ea522ab5f56833d64ee0dd836dff4ded8e50ecb0981ebfcac6668
|
7
|
+
data.tar.gz: 8fce00ae222d60af404b175997c3848bc8e8ded4d23abac350e80479dbaec45e0c6fcded7aa5ed024f94e92e1ceacddcaeda2a8718c4ecceb8f4482df7bc5fbf
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require_relative '../peterconsuegra_recipes'
|
2
|
-
|
2
|
+
require 'fileutils'
|
3
3
|
#bundle exec rake 'install_countries_regions_and_cities_to_model[place]'
|
4
4
|
|
5
5
|
desc 'install countries_regions_and_cities required files'
|
@@ -15,6 +15,7 @@ task :install_countries_regions_and_cities_to_model, [:model] do |t, args|
|
|
15
15
|
dest_folder="#{rails_app_folder}/app/views/shared/"
|
16
16
|
src_folder="#{gem_folder}/templates/"
|
17
17
|
files=["_peterconsuegra_city_select.html.erb","_peterconsuegra_country_select.html.erb","_peterconsuegra_region_select.html.erb"]
|
18
|
+
FileUtils.mkdir_p dest_folder
|
18
19
|
PeterConsuegraRecipes::move_templates(src_folder,dest_folder,files)
|
19
20
|
|
20
21
|
#adding controller
|