diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-11-08 16:23:49 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-11-12 17:52:23 +0900 |
commit | dbb970fa8e0fe5120bd7c5968a33f10cd77fff6f (patch) | |
tree | f9736b78cf54fad0d754af41a0f29c7f915b318d | |
parent | 25673f47b607528d12b0f4d1bace30b2c41a97fa (diff) | |
download | rails-dbb970fa8e0fe5120bd7c5968a33f10cd77fff6f.tar.gz rails-dbb970fa8e0fe5120bd7c5968a33f10cd77fff6f.tar.bz2 rails-dbb970fa8e0fe5120bd7c5968a33f10cd77fff6f.zip |
don't package test files in plugin gemspec
In rails engine, there is a dummy application under test,
the size of the test file is increased.
However, there is no need test files for most users,
I think it good to have so as not included by default.
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec b/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec index ff242adbab..3f5682b0c1 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec +++ b/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec @@ -15,9 +15,6 @@ Gem::Specification.new do |s| s.license = "MIT" s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] -<% unless options.skip_test? -%> - s.test_files = Dir["test/**/*"] -<% end -%> <%= '# ' if options.dev? || options.edge? -%>s.add_dependency "rails", "~> <%= Rails::VERSION::STRING %>" <% unless options[:skip_active_record] -%> |