Ali Polatel
5c00af46ec
ruby: Fix macros, use quoting
...
Fix Data_Get_Notmuch_* macro definitions broken by prev. commit
Adequate quoting for Data_Get_Notmuch_* macros
Remove duplicated RSTRING_PTR() macros, move it to defs.h
2011-10-04 16:57:33 +03:00
Ali Polatel
05dddf883d
ruby: be consistent with notmuch's coding style
...
No functional change, just indentation
2011-10-04 16:43:40 +03:00
Ali Polatel
898613116d
ruby: Add wrappers for database_find_message*
...
Two new wrappers:
Notmuch::Database.find_message(id) => Notmuch::Message or nil
Notmuch::Database.find_message_by_filename(path) => Notmuch::Message or nil
2011-10-04 16:06:20 +03:00
Ali Polatel
bbb41081d7
ruby: Wrap notmuch_database_{begin,end}_atomic
...
Adding ruby wrappers for functions:
- notmuch_database_begin_atomic()
- notmuch_database_end_atomic()
added by 957f1ba3fc
New functions:
Notmuch::Database.begin_atomic()
Notmuch::Database.end_atomic()
2011-09-24 15:43:43 +03:00
Ali Polatel
5c9e385591
ruby: Don't barf if an object is destroyed more than once
...
Raise RuntimeError instead.
Also revise Notmuch::Database a bit.
Add Notmuch::Database.open singleton method.
2010-06-06 09:18:00 +03:00
Ali Polatel
d2a457a5d8
ruby: Use rb_scan_args()
2010-06-06 09:17:57 +03:00
Ali Polatel
c7893408bb
ruby: Kill garbage collection related cruft.
...
Let the user destroy objects that she wants explicitly.
It's not possible to specify the order objects are garbage collected.
See id:86y6f8v838.fsf@harikalardiyari.ev on ruby-talk for more
information.
2010-06-06 09:17:47 +03:00
Ali Polatel
8312e7efea
ruby: fix documentation of DB.upgrade!
2010-06-06 09:17:06 +03:00
Ali Polatel
06bf04500b
Initial ruby bindings
2010-06-06 09:16:53 +03:00