dshipper / Tigger

a beautifully simple, command-line based task management system that lives inside your git repo.
http://tiggerlovesdevs.com
Other
41 stars 6 forks source link

Ubuntu gem grit Issue #4

Closed theonewolf closed 13 years ago

theonewolf commented 13 years ago

Environment

Ubuntu 11.04: Linux wolf-ThinkPad-T400 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Ruby 1.8.7: ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] gem 1.3.7 grit 2.4.1 tigger commit 5eb01a2

I'm getting this error:

./post-commit:2:in `require': no such file to load -- grit (LoadError)

Not sure why, grit seems to be installed:

wolf@wolf-ThinkPad-T400:~/tasks/.git/hooks$ sudo gem install grit Successfully installed grit-2.4.1 1 gem installed Installing ri documentation for grit-2.4.1... Installing RDoc documentation for grit-2.4.1...

dshipper commented 13 years ago

I'm not sure what that issue is either. Do you by chance have RVM installed? What happens when you type: $ gem list | grep grit

theonewolf commented 13 years ago

Requested output:

wolf@wolf-ThinkPad-T400:~/tasks/Tigger$ gem list | grep grit grit (2.4.1)

Maybe we should right a simple test case in Ruby (I'm not a Ruby programmer)?

Also, path issues? Should I lookup where/how grit is installed?

dshipper commented 13 years ago

I'm not really a Ruby programmer either so I'm not quite sure how to attack this but I have an idea. If it works for you I'll add it to the project. So in the git repository you're trying to use tigger with type: $ .git/hooks/post-commit And at the top of the file that gets opened up (above "require 'grit'") write: require 'rubygems' Then try committing with that repo and let me know if it works!

theonewolf commented 13 years ago

Confirmed this works :) No more error messages for me. Thanks for being so prompt!

wolf@wolf-ThinkPad-T400:~/tasks$ git commit -m 'test' Running tigger.... Matching tasks and commit messages. Completed task:

dshipper commented 13 years ago

Awesome! Glad I could help :)