zenhob / hcl

Command-line tool for manipulating Harvest timesheets
http://zenhob.github.io/hcl
MIT License
223 stars 45 forks source link

v0.1.1 upgrade breaks with chronic missing (even though it's there) #19

Closed jhedstrom closed 15 years ago

jhedstrom commented 15 years ago

I do have the chronic gem installed though...

jonathan@hyperion:~/git/hcl$ ls /var/lib/gems/1.8/gems/ chronic-0.2.3 highline-1.5.1 trollop-1.14

jonathan@hyperion:~/git/hcl$ hcl /home/jonathan/git/hcl/bin/../lib/hcl.rb:6:in require': no such file to load -- chronic (LoadError) from /home/jonathan/git/hcl/bin/../lib/hcl.rb:6 from /home/jonathan/git/hcl/bin/hcl:6:inrequire' from /home/jonathan/git/hcl/bin/hcl:6

zenhob commented 15 years ago

I think this is happening because rubygems is no longer being explicitly included by the hcl libs. As of v0.1.2 (53047ccb1e889ed2ed3464c7674da20acbed2e21) I'm requiring rubygems in bin/hcl which should fix the issue.

zenhob commented 15 years ago

You can also workaround this bug if needed:

$ export RUBYOPT=rubygems
$ hcl
zenhob commented 15 years ago

Fixed in 1cc8f7e32e8e787b1150dcb23dd3d11a90f4aa60.