Skip to content

Instantly share code, notes, and snippets.

@jarmo
jarmo / README.md
Created October 7, 2012 10:34 — forked from mattsears/README.md
Todo.rb: A simple command-line TODO manager written in Ruby

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

diff --git a/file.c b/file.c
index 3107895..8bb0839 100644
--- a/file.c
+++ b/file.c
@@ -5117,7 +5117,7 @@ rb_find_file_ext_safe(VALUE *filep, const char *const *ext, int safe_level)
if (!ext[0]) return 0;
if (f[0] == '~') {
- fname = file_expand_path_1(fname);
+ fname = rb_funcall(rb_cFile, rb_intern("expand_path"), 1, fname);