[Rake] Don't know how to build task

B

Brian Takita

Hello,

When I run rake, I get the following error.

rake pkg/TestSuiteRunner-0.1.0.gem
(in C:/Code/RubyProjects/test_suite_runner)
rake aborted!
Don't know how to build task 'pkg/TestSuiteRunner-0.1.0.gem'

Does anybody know what I'm doing wrong?

Thank you,
Brian Takita

Here is the text in Rakefile.rb

require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'

spec = Gem::Specification.new do |s|
s.name = "Test_Suite_Runner"
s.version = "0.1.0"
s.author = "Brian Takita"
s.email = "(e-mail address removed)"
s.homepage = "http://TestSuiteRunner.rubyforge.org"
s.platform = Gem::platform::RUBY
s.summary = "Automatically runs all unit test in directory and
subdirectories."
s.files = FileList["{bin,tests,lib,docs}/**/*"].exclude("rdoc").to_a
s.require_path = "lib"
s.autorequire = "testsuiterunner"
s.test_file = "tests/ts_test_suite_runner.rb"
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
 
S

Stefan Lang

Hello,

When I run rake, I get the following error.

rake pkg/TestSuiteRunner-0.1.0.gem
(in C:/Code/RubyProjects/test_suite_runner)
rake aborted!
Don't know how to build task 'pkg/TestSuiteRunner-0.1.0.gem'

Does anybody know what I'm doing wrong? [...]
s.name = "Test_Suite_Runner"
^^^^^^^^^^^^^^^^^
I guess the task is called pkg/Test_Suite_Runner-0.1.0.gem

Stefan
 
B

Brian Takita

Thats it. s.name must equal beginning of the gem file name.

I changed
s.name = "Test_Suite_Runner"
to
s.name = TestSuiteRunner

Thank you,
Brian Takita
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top