Project

General

Profile

Actions

Bug #549

closed

ri -f html mungles constants

Added by trans (Thomas Sawyer) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-23 trunk 24250) [i386-darwin9.7.0]
Backport:
[ruby-core:18479]

Description

=begin
The example I'll use here is with Bacon. Regular output of 'ri Bacon' produces:

----------------------------------------------------------- Class: Bacon
Copyright (C) 2007, 2008 Christian Neukirchen
<purl.org/net/chneukirchen>

  Bacon is freely distributable under the terms of an MIT-style
  license. See COPYING or
  http://www.opensource.org/licenses/mit-license.php.

Constants:

  VERSION:         "1.0"
  Counter:         Hash.new(0)
  ErrorLog:        ""
  Shared:          Hash.new { |_, name|     raise NameError, "no such
                   context: #{name.inspect}"
  RestrictName:    //  unless defined? RestrictName
  RestrictContext: //  unless defined? RestrictContext

Class methods:

  summary_on_exit

However if we do 'ri -f html Bacon' we get:

Class: Bacon



Copyright (C) 2007, 2008 Christian Neukirchen <purl.org/net/chneukirchen>


Bacon is freely distributable under the terms of an MIT-style license. See COPYING or http://www.opensource.org/licenses/mit-license.php.


Constants:

"1.0"Hash.new(0)""Hash.new { |_, name| raise NameError, "no such context: #{name.inspect}"// unless defined? RestrictName// unless defined? RestrictContext

Class methods:

summary_on_exit

Notice that the constants are not displayed correctly.
=end

Actions #1

Updated by ko1 (Koichi Sasada) over 16 years ago

  • Assignee set to pragdave (Dave Thomas)

=begin

=end

Actions #2

Updated by ko1 (Koichi Sasada) over 16 years ago

=begin
who's ball?
=end

Actions #3

Updated by pragdave (Dave Thomas) over 16 years ago

  • Assignee changed from pragdave (Dave Thomas) to drbrain (Eric Hodel)

=begin
Eric now maintains ri/rdoc

Dave
=end

Actions #4

Updated by yugui (Yuki Sonoda) about 16 years ago

  • Due date set to 11/25/2008
  • Target version set to 1.9.1 Release Candidate

=begin

=end

Actions #5

Updated by yugui (Yuki Sonoda) about 16 years ago

=begin
I'll ask Eric whether it still happens.
=end

Actions #6

Updated by drbrain (Eric Hodel) about 16 years ago

  • Priority changed from Normal to 3

=begin
It does still happen, but this bug is not unique to 1.9. It should have been filed on the rdoc project on RubyForge.
=end

Actions #7

Updated by yugui (Yuki Sonoda) about 16 years ago

  • Due date changed from 11/25/2008 to 12/24/2008

=begin

=end

Actions #8

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Due date deleted (12/24/2008)
  • Priority changed from 3 to Normal
  • Target version changed from 1.9.1 Release Candidate to 1.9.2

=begin

=end

Actions #9

Updated by drbrain (Eric Hodel) over 15 years ago

  • ruby -v set to ruby 1.9.2dev (2009-07-23 trunk 24250) [i386-darwin9.7.0]

=begin
I've removed constant values from ri output in RDoc trunk. irb or ruby -e should be used instead.
=end

Actions #10

Updated by drbrain (Eric Hodel) over 14 years ago

  • Status changed from Open to Closed

=begin
Now checked in
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0