Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 312693

Summary: dev-ruby/haml-2.2.22: init.rb is not installed
Product: Gentoo Linux Reporter: Simon Wells <simonrwells>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon Wells 2010-04-01 19:23:06 UTC
This also applies to dev-ruby/haml-2.2.20

Due to structure of the haml gem the init.rb file is not installed into the filesystem.
This causes haml --rails PATH to fail

Reproducible: Always

Steps to Reproduce:
1. emerge haml
2. haml --rails /home/xxx/yyy

Actual Results:  
No such file or directory - /usr/lib64/ruby/gems/1.8/gems/haml-2.2.22/bin/../lib/haml/../../init.rb

The init.rb file created in the vendor/plugins/haml/ directory of the rails project is empty

Expected Results:  
Expected it to run without output, and the vendor/plugins/haml/init.rb should not be empty

The actual place init.rb needs to be installed is
/usr/lib(64)/ruby/gems/1.8/gems/haml-2.2.22/init.rb

If the init.rb file is copied to that location from an unpacked haml it appears to function properly,

This has been tested with Rails 2.3.5 including running the server with a haml file to ensure it is able to display it
Comment 1 Hans de Graaff gentoo-dev Security 2010-04-02 06:38:12 UTC
Thanks for reporting, this should now be fixed in haml-2.2.22-r1.