rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

RDoc ri store update corrupts visibility information

Open gettalong opened this issue 9 years ago • 1 comments

When creating an RDoc ri store and then later updating it, the visibility information is corrupted, ie. public or protected methods are shown as private methods.

Steps to reproduce (should be possible to reproduce with any Ruby files but for convenience):

$ git clone [email protected]:gettalong/cmdparse.git
$ cd cmdparse
$ rdoc -v
4.2.0
$ rdoc --op rdoc-op --ri --quiet lib                                              
$ grep public rdoc-op/CmdParse/CommandParser/parse-i.ri                          
Binary file rdoc-op/CmdParse/CommandParser/parse-i.ri matches
$ rdoc --op rdoc-op --ri --quiet lib
$ grep public rdoc-op/CmdParse/CommandParser/parse-i.ri 
$ grep private rdoc-op/CmdParse/CommandParser/parse-i.ri 
Binary file rdoc-op/CmdParse/CommandParser/parse-i.ri matches

gettalong avatar Mar 10 '15 11:03 gettalong

This is really strange, maybe easier to debug if we can get a failing test for it.

I'll see what I can do.

zzak avatar Dec 22 '15 09:12 zzak