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
c8a88fe95d
ruby: Really add wrappers for database_find_message*
...
Commit 898613116d
only added wrapper
functions but did not register them. Register the functions in module's
initialization function.
2011-10-04 16:48:34 +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
59d2457bcc
ruby: New exception Notmuch::UnbalancedAtomicError
...
This exception wraps NOTMUCH_STATUS_UNBALANCED_ATOMIC which was added
with the commit e59cc0031f
.
2011-09-24 15:54:45 +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
90a66779e1
ruby: Add wrapper for message_get_filenames
2011-01-25 12:03:41 +02:00
Ali Polatel
02369d031c
ruby: Add wrappers for maildir sync. interface
...
New wrappers:
notmuch_message_maildir_flags_to_tags(): MESSAGE.maildir_flags_to_tags
notmuch_message_tags_to_maildir_flags(): MESSAGE.tags_to_maildir_flags
2011-01-25 12:03:37 +02:00
Ali Polatel
ed38940323
ruby: Add wrappers for query_get_s{ort,tring}
...
New wrappers:
notmuch_query_get_sort(): QUERY.sort
notmuch_query_get_query_string(): QUERY.to_s
2011-01-25 12:03:32 +02: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
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
06bf04500b
Initial ruby bindings
2010-06-06 09:16:53 +03:00