lib/commandly/generator.rb in commandly-0.2.0 vs lib/commandly/generator.rb in commandly-0.2.1
- old
+ new
@@ -51,10 +51,9 @@
files = Dir.glob(destination_root + "/android/**/**")
files -= Dir.glob(destination_root + "/android/**/**/gradle-wrapper.jar")
files -= Dir.glob(destination_root + "/android/**/**/*.png")
files.each do |name|
next if Dir.exists? name
- puts name
text = File.read(name)
text = text.gsub("Commandly", project_name)
text = text.gsub("commandly", project_name.downcase)
File.open(name, "w") { |file| file.puts text }
end