XML-Mapping gem has really lame permission bug

You may have this error when require ‘xml/mapping’ in your ruby script:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- xml/mapping (LoadError)

Solution: go to the gem directory of XML-Mapping (mine is /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/) and chmod all files in this directory to 644.

Who is to point finger at here ? Rubygem or XML-Mapping authors ?

For some reason the default install has them installed with root-only permissions. I love how this is a Priority 3 bug assigned to nobody, and it blocks the use of this gem entirely.

Here's the fix (on OS X anyway)

sudo chmod -R a+r /Library/Ruby/Gems/1.8/gems/xml-mapping-0.8.1

Here's the thread to complain on.
views