pandora-frameworks 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70ee48efd5977b2a35bec1800f61f030382b336f
4
- data.tar.gz: e08ba9035e7c2c6de587afd5effb769d8619fca5
3
+ metadata.gz: e4c28e7cb975c2ce09a0904d7bbb1eeac86ad3ea
4
+ data.tar.gz: 87d62ab895efa8b10754a6aedcfbe952ff069250
5
5
  SHA512:
6
- metadata.gz: 931b0dbe7e25de4ed0a2de41263fd75f05cf90ee8b28e865fd6c188f2439623e056f73e7f27d76d3744a080bb8583860e94d422e92d3f49c484d3a3ed30c9ddf
7
- data.tar.gz: 1681c3f90a569c8cb941dcdb9fac4719da7bf17dcde7c52571acc442f6ba5b2b4711e703ef4be887319905b8b88c626b17ee83c0f7be13c34ab58d38e0cb0bb1
6
+ metadata.gz: 720fbc0b23a17ac317d986882874b50d77da89650b36af8c37448242edcb5520909ef139ff93f6a90be1b525c2671e6eab410852044cb36115059a34da427552
7
+ data.tar.gz: a3e67c6649c7fb39e1dd4cd2600f70d49648a5e9d405aa0557a1943e2ea6db15af78c31cc7fadd26f69646dcf7527a81715ab7bf571c222ee94fe5357f6b1ce0
@@ -56,7 +56,7 @@ module Pandora
56
56
 
57
57
  def rename_files(path)
58
58
  Dir[File.join(path, "*")].each do |file_path|
59
- file_new_path = file_path.gsub("Cuca", @name)
59
+ file_new_path = file_path.gsub("XXXXX", @name)
60
60
  FileUtils.mv file_path, file_new_path if file_path != file_new_path
61
61
  if File.directory?(file_new_path)
62
62
  self.rename_files(file_new_path)
@@ -66,11 +66,11 @@ module Pandora
66
66
 
67
67
  def rename_files_content
68
68
  puts "=> Renaming files content".colorize(:green)
69
- Dir[File.join(@path, "**/*")]
70
- .select { |fn| !File.directory?(fn) }
71
- .each do |file_path|
69
+ Dir[File.join(self.framework_path, "**/*")]
70
+ .select { |fn| !File.directory?(fn) }
71
+ .each do |file_path|
72
72
  text = File.read(file_path)
73
- new_contents = text.gsub("Cuca", @name)
73
+ new_contents = text.gsub("XXXXX", @name)
74
74
  File.open(file_path, "w") {|file| file.puts new_contents }
75
75
  end
76
76
  puts "=> Contents renamed".colorize(:green)
@@ -1,3 +1,3 @@
1
1
  module Pandora
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandora-frameworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Piñera Buendía