Sha256: de7e07663a5d0cfd71f30103269f9375bdec15f50cee2574bc0f5ada94e5b2ae
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
require 'pathname' module GemspecManipulation def add_development_dependency(name) add_to_gemspec("s.add_development_dependency('#{name}')") end def add_to_gemspec(contents) # don't say "end" to avoid confusing vim's formatter inject_into_file(gemspec, contents, :before => /en.\s*\z/) end def mask_gemspec_todos gsub_file(gemspec, /TODO: Write [ \w]*/, 'Masked') end private def gemspec Dir['*.gemspec'].first end end Shoe::TestCase.send(:include, GemspecManipulation)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.8.0 | test/support/gemspec_manipulation.rb |
shoe-0.7.1 | test/support/gemspec_manipulation.rb |
shoe-0.7.0 | test/support/gemspec_manipulation.rb |