jduff/herbalist — Issue #1: only getting the numeric part back
Author: c4ftabrez
Created: 2012-01-20 11:53:18+00:00
State: open

Hi jduff,
This gem looks pretty interesting. Thanks for sharing!

I tried it out on rails console. The results I get are different from what you have in the documentation. I just get the numeric part; the unit and exponent are missing. I even made a call to Alchemist to make sure it was loaded. Here is the spool from my run:

ruby-1.9.2-p290 :013 > Herbalist.parse("a quarter cup")
=> 0.25
ruby-1.9.2-p290 :014 > Alchemist
=> Alchemist
ruby-1.9.2-p290 :015 > Herbalist.parse("a quarter cup")
=> 0.25
ruby-1.9.2-p290 :016 >

Am I doing something incorrectly?

Thanks,
Tabrez