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
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
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
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
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