Module: GemHelper
- Defined in:
- lib/trop/gem_tasks.rb
Class Method Summary collapse
Class Method Details
.rewrite_gemspec ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/trop/gem_tasks.rb', line 12 def self.rewrite_gemspec spec_path = FileUtils.getwd + '/' + Trop::GEMSPEC_NAME spec_gem = Gem::Specification::load(spec_path) spec_gem.version = GemVersion.next_version File.open(spec_path, 'w') {|f| f.write spec_gem.to_ruby } unless Trop::Sh::silent? File.open("gemspecx.gemspecx", 'w') {|f| f.write spec_gem.to_ruby } end return spec_gem.version end |