Module: Hoe::Gemspec

Defined in:
lib/hoe/gemspec.rb

Overview

Rake task to generate a prerelease gemspec based on your Hoe.spec

* <tt>gem:spec</tt>

Constant Summary collapse

VERSION =

:nodoc:

"1.0.0"

Instance Method Summary collapse

Instance Method Details

#define_gemspec_tasksObject



10
11
12
13
14
15
16
# File 'lib/hoe/gemspec.rb', line 10

def define_gemspec_tasks
  desc "generate a prerelease gemspec from your Hoe.spec"
  task "gem:spec" do
    spec.version = "#{spec.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
    File.open("#{name}.gemspec","w") { |f| f.write spec.to_ruby }
  end
end