[PATCH 3/3] ruby: add db.{set,get}_config

2023-03-31 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- bindings/ruby/database.c | 45 bindings/ruby/defs.h | 6 ++ bindings/ruby/init.c | 2 ++ 3 files changed, 53 insertions(+) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index

[PATCH 2/3] ruby: add directory.delete

2023-03-31 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- bindings/ruby/defs.h | 3 +++ bindings/ruby/directory.c | 19 +++ bindings/ruby/init.c | 1 + 3 files changed, 23 insertions(+) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index c4943681..3ef228b7 100644 ---

[PATCH 0/3] ruby: api updates

2023-03-31 Thread Felipe Contreras
These are some API updates I did years ago but didn't send for fear of distracting from more important patches. However, I was already butten by db.revision not being available. So here they are. If you want I can incrementally check all the API updates and implement them all in the ruby

[PATCH 1/3] ruby: add database.revision

2023-03-31 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- bindings/ruby/database.c | 18 ++ bindings/ruby/defs.h | 3 +++ bindings/ruby/init.c | 1 + 3 files changed, 22 insertions(+) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index b6de1254..4372afa1 100644 ---

Re: [PATCH 0/2] ruby: database open improvements

2023-03-31 Thread Felipe Contreras
On Fri, Mar 31, 2023 at 5:07 AM David Bremner wrote: > > Felipe Contreras writes: > > > Essentially we want to do notmuch_database_open_with_config() and load the > > default database. > > > > Applied to master. Thanks for this change, both are things I'd wanted to > fix. Good. Since you chose

[PATCH] ruby: db: reorganize initializer

2023-03-31 Thread Felipe Contreras
In order to make it more extensible. No functional changes. Signed-off-by: Felipe Contreras --- bindings/ruby/database.c | 52 bindings/ruby/defs.h | 2 -- bindings/ruby/init.c | 4 3 files changed, 32 insertions(+), 26 deletions(-) diff

Re: [PATCH 1/1] lib: replace some uses of Query::MatchAll with a thread-safe alternative

2023-03-31 Thread David Bremner
Kevin Boulain writes: > This replaces two instances of Xapian::Query::MatchAll with the > equivalent but thread-safe alternative Xapian::Query(std::string()). > Xapian::Query::MatchAll maintains an internal pointer to a refcounted > Xapian::Internal::QueryTerm. > Applied to master, thanks, and

Re: [PATCH 0/2] ruby: database open improvements

2023-03-31 Thread David Bremner
Felipe Contreras writes: > Essentially we want to do notmuch_database_open_with_config() and load the > default database. > Applied to master. Thanks for this change, both are things I'd wanted to fix. d ___ notmuch mailing list --