Bug 683567

Summary: Echoe fails with undefined method 'desc' message with rake 0.9.0-0.3.beta.4
Product: [Fedora] Fedora Reporter: Marek Goldmann <mgoldman>
Component: rubygem-echoeAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mfojtik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-18 16:55:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Workaround patch none

Description Marek Goldmann 2011-03-09 17:59:56 UTC
Created attachment 483277 [details]
Workaround patch

Description of problem:

Latest package in Rawhide (rubygem-echoe-4.3.1-3.fc15) does not work with latest rubygem-rake (0.9.0-0.3.beta.4.fc15).

Version-Release number of selected component (if applicable):

rubygem-echoe-4.3.1-3.fc15

How reproducible:

Always.

Steps to Reproduce:
Try to create simple echoe task, like:

require 'rubygems'  
require 'echoe'

Echoe.new("boxgrinder-core") do |p|
  p.project     = "BoxGrinder"
  p.author      = "BoxGrinder Team"
end

Actual results:

rake/gempackagetask is deprecated.  Use rubygems/package_task instead
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
undefined method `desc' for #<Echoe:0x7f0ff65d50b8>
/usr/lib/ruby/gems/1.8/gems/echoe-4.3.1/lib/echoe.rb:420:in `define_tasks'
/usr/lib/ruby/gems/1.8/gems/echoe-4.3.1/lib/echoe.rb:299:in `initialize'

Expected results:

No error.

Additional info:

Adding require to echoe.rb:

require 'rake/dsl'

is a workaround. Attached patch.

Comment 1 Marek Goldmann 2011-08-18 16:55:42 UTC
Seems to be fixed in latest version.