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: a95c8003c1bbb397d3ed8ae71a0678c951ebe14538d2528b155cefc4b85a28a1
4
- data.tar.gz: 214b0e0d0daf9f1305075d4c74c3f39e4aeb9983ac85707a516181e0d3cd1aab
3
+ metadata.gz: 0e9dd399b40901e152a4a6bfc15c7f22272661701ade7dc46dbf34233a173466
4
+ data.tar.gz: a054bfb1236aca160100cc1216cb3f66e70da44a684ac5c7111fabe7779ce8bd
5
5
  SHA512:
6
- metadata.gz: e8c93452f55c5fe3aca838ffc5c0d340fec69fdffad5605b82f10b4203870158c4c23e403779b3661cb0e3607289180f079119ab7ac983f86f894abb38013e15
7
- data.tar.gz: 61962df939c85c792fec18d8951cc13bc380a046c49da3e6f622503fa2718dd1e730a41f1af1e07d3e3b75a28bdc10797acb19ba4d9e0ec926479d317a471186
6
+ metadata.gz: b04e3c08deaa2a98f2dca4a6e993be8162369c24ddd0bde0fee338e8129a56b9c761a7f72b9ea522ab5f56833d64ee0dd836dff4ded8e50ecb0981ebfcac6668
7
+ data.tar.gz: 8fce00ae222d60af404b175997c3848bc8e8ded4d23abac350e80479dbaec45e0c6fcded7aa5ed024f94e92e1ceacddcaeda2a8718c4ecceb8f4482df7bc5fbf
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CountriesRegionsAndCitiesByPeterconsuegra
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
@@ -1,5 +1,6 @@
1
1
  require 'colorize'
2
2
 
3
+
3
4
  module PeterConsuegraRecipes
4
5
 
5
6
  def self.move_templates(src_folder,dest_folder,files)
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countries_regions_and_cities_by_peterconsuegra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Consuegra