Class: RSGem::Tasks::SimpleCovPostInstall
- Defined in:
- lib/rsgem/tasks/simple_cov_post_install.rb
Constant Summary collapse
- OUTPUT =
OutputStruct.new
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Output
Constructor Details
This class inherits a constructor from RSGem::Tasks::Base
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rsgem/tasks/simple_cov_post_install.rb', line 7 def perform spec_helper.sub!("require \"#{gem_name}\"", " require 'simplecov'\n\n SimpleCov.start do\n add_filter '/spec/'\n end\n\n require '\#{gem_name}'\n RUBY\n\n write\nend\n") |