From: Brian Candler Date: 2009-12-05T00:07:07+09:00 Subject: Re: ruby language parser in ruby A minor problem with the redparse gem is that it gives most of the files root-only permissions. I just did 'sudo gem install redparse' $ pwd /usr/lib/ruby/gems/1.8/gems/redparse-0.8.3 $ ls -l lib total 96 drwxr-xr-x 2 root root 4096 2009-12-04 14:07 redparse -rwx------ 1 root root 89730 2009-12-04 14:07 redparse.rb $ ls -l lib/redparse total 188 -rwx------ 1 root root 2542 2009-12-04 14:07 babynodes.rb -rwx------ 1 root root 6348 2009-12-04 14:07 babyparser.rb -rwx------ 1 root root 10545 2009-12-04 14:07 decisiontree.rb -rw-r--r-- 1 root root 13385 2009-12-04 14:07 generate.rb -rwxr-xr-x 1 root root 134917 2009-12-04 14:07 node.rb -rwxr--r-- 1 root root 2041 2009-12-04 14:07 problemfiles.rb -rwx------ 1 root root 2664 2009-12-04 14:07 reg_more_sugar.rb -rwxr--r-- 1 root root 40 2009-12-04 14:07 version.rb Easily fixable of course: sudo bash find . -type f | xargs chmod +r find . -type d | xargs chmod +rx Most of those .rb files don't need +x either, since they don't have a shebang line. Looking at this code - I don't think I would dare hack it. I think ruby_parser is more what I was looking for. -- Posted via http://www.ruby-forum.com/.