lib/spiker/generators/multi.rb in spiker-0.1.5 vs lib/spiker/generators/multi.rb in spiker-0.1.6

- old
+ new

@@ -24,11 +24,11 @@ end def create_test_files name_in_snake_case = Spiker.snake_case(name) name_as_class = Spiker.classify(name) - opts = { name_as_class: name_as_class, name_in_snake_case: name_in_snake_case } + opts = { name_as_class:, name_in_snake_case: } template("app_test.rb.erb", "#{name}/test/#{name_in_snake_case}_test.rb", opts) template("test_helper.rb", "#{name}/test/test_helper.rb", opts) end def create_app_files @@ -48,10 +48,10 @@ def create_rake_file template("rakefile.rb", "#{name}/Rakefile") end def create_readme_file - opts = { name_as_class: Spiker.classify(name), name: name } + opts = { name_as_class: Spiker.classify(name), name: } template("readme.md.erb", "#{name}/README.md", opts) end def create_env_file template("../common/basic.env", "#{name}/.env")