[PATCH 2/3] ruby: improve general data get helper

2021-05-03 Thread Felipe Contreras
There's no need to do Check_Type, Data_Get_Struct calls rb_data_object_get(), which already does that. Signed-off-by: Felipe Contreras --- bindings/ruby/defs.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index e95ea239..46e

[PATCH 0/3] ruby: cleanups

2021-05-03 Thread Felipe Contreras
This are simple cleanups that should not have any functional changes. Felipe Contreras (3): ruby: improve all Data_Get_Notmuch_* helpers ruby: improve general data get helper ruby: simplify data get helper bindings/ruby/defs.h | 84 1 file chang

[PATCH 1/3] ruby: improve all Data_Get_Notmuch_* helpers

2021-05-03 Thread Felipe Contreras
There's no need to repeat the same code over and over. Signed-off-by: Felipe Contreras --- bindings/ruby/defs.h | 81 1 file changed, 22 insertions(+), 59 deletions(-) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 48544ca2..e95ea239

[PATCH 3/3] ruby: simplify data get helper

2021-05-03 Thread Felipe Contreras
The type is not actually needed. Signed-off-by: Felipe Contreras --- bindings/ruby/defs.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 46e2caf8..edbcc729 100644 --- a/bindings/ruby/defs.h +++ b/bind

Re: [PATCH] Vim: Fix a deprecated call to the 'mail' gem

2021-05-03 Thread Jules Aguillon
Hi ! This is indeed fixed on master. My patch has the advantage of removing the extraneous "to string" and "parsing" steps but that's not a big deal. Thanks! On Sun, May 2, 2021 at 11:51 PM Felipe Contreras wrote: > On Sun, May 2, 2021 at 5:43 AM David Bremner wrote: > > > > Jules Aguillon wr