Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
html2haml requires hpricot but does not declare it as dependency #504
Hello, am i missing something, or is hpricot required but not declared as dependency of html2haml?
§ gem install haml Successfully installed haml-3.1.4 1 gem installed Installing ri documentation for haml-3.1.4... Installing RDoc documentation for haml-3.1.4... § html2haml LoadError: cannot load such file -- hpricot Use --trace for backtrace. § gem install hpricot Fetching: hpricot-0.8.6.gem (100%) Building native extensions. This could take a while... Successfully installed hpricot-0.8.6 1 gem installed Installing ri documentation for hpricot-0.8.6... Installing RDoc documentation for hpricot-0.8.6... § html2haml ^CInterrupt: Use --trace for backtrace.
I think it's not currently added as a dependency because not everybody needs html2haml, and hpricot has a C extension which can sometimes complicate installation of the gem.
Perhaps it would be more user-friendly to rescue from LoadError and display a more informative message telling people to how to install the gem. It's probably also a good idea to at least add it as a development dependency.