First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 132692
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Ruby Team <ruby@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stephen Tallowitz <dev@tallowitz.ch>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 132692 depends on: Show dependency tree
Bug 132692 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-08 09:13 0000
when updating rake to 0.7.0 I run into problems running 'rake appdoc':

... (many errors and warnings) ...
unrecognized option `--line-numbers --inline-source`
For help on options, try 'rdoc --help'

rdoc --help tells me that --line-numbers requires a numeric argument, so
obviously something has changed in the command line interface. Downgrading to
0.6.2 lets me run rake appdoc without any problems at all.

Steps to reproduce:
1. Install dev-ruby/rails-1.0.0
2. Upgrade dev-ruby/rake to 0.7.0
3. create a rails app, i.e. 'cd ~/; rails testapp'
4. cd to ~/testapp and run 'rake appdoc'

related bug, where >=rake-0.7.1 is required for >=rails-1.1.1:
https://bugs.gentoo.org/show_bug.cgi?id=129220

------- Comment #1 From Caleb Tennis 2006-05-08 10:23:26 0000 -------
Can you try with the latest rake and the latest rails?

------- Comment #2 From Stephen Tallowitz 2006-05-08 11:32:57 0000 -------
Latest version of rails and its dependencies works like a charm, of course.
The combination of rails 1.0.0 and rake 0.7.1 doesn't work either.
My real point being: installing the current stable rails (stable as in
gentoo-tree-stable) will not give you a fully working rails.
Quickest solution would be to restrict rails-1.0.0 dependency to something like
'>=dev-ruby/rake-0.6.2 <dev-ruby/rake-0.7.0'. Could be a bad idea if using the
slottable installation of rails 1.0 and rails 1.1. As pointed out in the other
bug, rails 1.1.1 requires rake-0.7.1.
Maybe patching rails 1.0 to work with current rake is the better solution?

------- Comment #3 From Caleb Tennis 2006-05-08 11:38:35 0000 -------
perhaps I should just remove the older versions from portage.

------- Comment #4 From Stephen Tallowitz 2006-05-08 12:26:49 0000 -------
I've found the cause. It's a bug that's been fixed already in rails-1.1.0.

/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/documentation.rake at the
top:

rdoc.options << '--line-numbers --inline-source'
is invalid. options is an array and each array element must be a single option
to supply to rdoc. correct version from rails-1.1.0:
rdoc.options << '--line-numbers' << '--inline-source'

My guess: rake is more tolerant in version 0.6.2 than in version 0.7.0

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2006-06-02 06:28:20 0000 -------
I've added a patch to fix the argument passing to be on the safe side (I think
there might still be people interested in rails 1.0).

First Last Prev Next    No search results available      Search page      Enter new bug