Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312693 - dev-ruby/haml-2.2.22: init.rb is not installed
Summary: dev-ruby/haml-2.2.22: init.rb is not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 19:23 UTC by Simon Wells
Modified: 2010-04-02 06:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.