lib/pah/partials/_locale.rb in pah-0.0.12 vs lib/pah/partials/_locale.rb in pah-0.0.13
- old
+ new
@@ -1,11 +1,11 @@
-puts "Adding locale... ".magenta
-
copy_static_file 'config/locales/pt-BR.yml'
-git :add => 'config/locales/pt-BR.yml'
-git :commit => "-qm 'Add pt-BR locale.'"
+copy_static_file 'config/locales/app.pt-BR.yml'
+git add: 'config/locales/*.yml'
+git_commit 'Add pt-BR locale files.'
+
time_zone_config = <<TIME_ZONE
config.time_zone = 'Brasilia'
TIME_ZONE
@@ -22,8 +22,7 @@
in_root do
inject_into_file 'config/application.rb', locale_config, { after: "# config.i18n.default_locale = :de", verbose: false }
end
-git :add => 'config/application.rb'
-git :commit => "-qm 'Adding locale config.'"
-
+git add: 'config/application.rb'
+git_commit 'Add locale config.'