Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed template files in order to avoid parse errors with modern gem…

… installation rules.
  • Loading branch information...
commit e8e6c60438cd1a4d598645760b00ea005eb1cc2c 1 parent fff58fd
@lukebayes authored
View
2  VERSION
@@ -1 +1 @@
-1.1.17.pre
+1.1.18.pre
View
6 lib/sprout/generators/generator/generator_generator.rb
@@ -57,7 +57,7 @@ def manifest
#We need to add a folder with the same name as the module to be used in order to faux namespace our generators to avoid collisions from super classes
directory namespace do
directory generators do
- template "#{input.snake_case}_generator.rb", "generator_class.rb"
+ template "#{input.snake_case}_generator.rb", "generator_class.erb"
directory "templates" do
template "#{input.camel_case}#{extension}", "generator_template"
end
@@ -67,8 +67,8 @@ def manifest
directory test do
directory unit do
- template "#{input.snake_case}_generator_test.rb", "generator_test.rb"
- template "test_helper.rb", "generator_test_helper.rb"
+ template "#{input.snake_case}_generator_test.rb", "generator_test.erb"
+ template "test_helper.rb", "generator_test_helper.erb"
end
directory fixtures do
directory "generators"
View
0  ...generators/generator/templates/generator_class.rb → ...enerators/generator/templates/generator_class.erb
File renamed without changes
View
0  .../generators/generator/templates/generator_test.rb → ...generators/generator/templates/generator_test.erb
File renamed without changes
View
0  ...tors/generator/templates/generator_test_helper.rb → ...ors/generator/templates/generator_test_helper.erb
File renamed without changes
View
2  lib/sprout/generators/library/library_generator.rb
@@ -12,7 +12,7 @@ class LibraryGenerator < Generator::Base
def manifest
template "#{input.snake_case}.gemspec", 'library.gemspec'
- template "#{input.snake_case}.rb", 'library.rb'
+ template "#{input.snake_case}.rb", 'library.erb'
end
end
View
0  lib/sprout/generators/library/templates/library.rb → lib/sprout/generators/library/templates/library.erb
File renamed without changes
View
9 lib/sprout/generators/ruby/ruby_generator.rb
@@ -40,17 +40,17 @@ def manifest
template "#{input.snake_case}.gemspec", 'ruby_gemspec'
directory lib do
- template "#{snake}.rb", 'ruby_input.rb'
+ template "#{snake}.rb", 'ruby_input.erb'
directory snake do
- template 'base.rb', 'ruby_base.rb'
+ template 'base.rb', 'ruby_base.erb'
end
end
directory test do
directory fixtures
directory unit do
- template "#{input.snake_case}_test.rb", 'ruby_test_case.rb'
- template 'test_helper.rb', 'ruby_test_helper.rb'
+ template "#{input.snake_case}_test.rb", 'ruby_test_case.erb'
+ template 'test_helper.rb', 'ruby_test_helper.erb'
end
end
@@ -61,4 +61,3 @@ def manifest
end
end
end
-
View
0  lib/sprout/generators/ruby/templates/ruby_base.rb → lib/sprout/generators/ruby/templates/ruby_base.erb
File renamed without changes
View
0  lib/sprout/generators/ruby/templates/ruby_input.rb → lib/sprout/generators/ruby/templates/ruby_input.erb
File renamed without changes
View
0  ...prout/generators/ruby/templates/ruby_test_case.rb → ...rout/generators/ruby/templates/ruby_test_case.erb
File renamed without changes
View
0  ...out/generators/ruby/templates/ruby_test_helper.rb → ...ut/generators/ruby/templates/ruby_test_helper.erb
File renamed without changes
View
2  lib/sprout/generators/tool/templates/tool.rb → lib/sprout/generators/tool/templates/tool.erb
@@ -34,5 +34,3 @@ module VERSION
end
end
-
-
View
2  lib/sprout/generators/tool/tool_generator.rb
@@ -22,7 +22,7 @@ def manifest
directory snake_input do
template 'Gemfile'
template "#{snake_input}.gemspec", 'tool.gemspec'
- template "#{snake_input}.rb", 'tool.rb'
+ template "#{snake_input}.rb", 'tool.erb'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.