Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Single quotes in description spoil the sake

#61

Steps to reproduce:

  1. Create a new rake task with a single quote in the description
  2. Import it as a sake task with sake -i
  3. Try to see your sake tasks with sake -T
  4. Ruby will crash and it will say that it can't parse

Can ruby2ruby produce double quoted output, or escape internal single quotes?

desc "My fancy task with 'strange' behavior"
task :foo do
  # ...
end

Produces a ~/.sake task like this

desc 'My fancy task with 'strange' behavior'
task :foo do
  # ...
end

Reported by Geoffrey Grosenbach · July 11th, 2007 @ 06:37 PM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to resolved

    Fixed, gem 1.0.8 has been pushed out to Rubyforge.

    http://require.errtheblog.com/pr...

    July 11th, 2007 @ 06:37 PM

  2. Geoffrey Grosenbach
    Geoffrey Grosenbach

    Disco, indeed!

    Thanks for the fix.

    July 11th, 2007 @ 06:37 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.