Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#777 closed defect (fixed)

Ruby API: no wrapper for metadata_keys_begin

Reported by: Do Owned by: Olly Betts
Priority: normal Milestone: 1.4.12
Component: Xapian-bindings (Ruby) Version: 1.4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description (last modified by Do)

Hello, there is no wrapper for metadata_keys_begin for RUBY API. Please add!

My version:

def metadata(term)
                        self.metadata_keys_end(term)) { |item|

Change History (7)

comment:1 by Do, 5 years ago

Description: modified (diff)

comment:2 by Olly Betts, 5 years ago

Component: OtherXapian-bindings (Ruby)
Milestone: 1.4.12
Status: newassigned
Version: 1.4.11

comment:3 by Olly Betts, 4 years ago

There are several other begin/end iterator methods which appear not to be handled:

$ grep 'rb_define_method.*[a-zA-Z0-9]_begin"'|grep -v _dangerous_
  rb_define_method(SwigClassQuery.klass, "get_unique_terms_begin", VALUEFUNC(_wrap_Query_get_unique_terms_begin), -1);
  rb_define_method(SwigClassQueryParser.klass, "stoplist_begin", VALUEFUNC(_wrap_QueryParser_stoplist_begin), -1);
  rb_define_method(SwigClassQueryParser.klass, "unstem_begin", VALUEFUNC(_wrap_QueryParser_unstem_begin), -1);
  rb_define_method(SwigClassDatabase.klass, "spellings_begin", VALUEFUNC(_wrap_Database_spellings_begin), -1);
  rb_define_method(SwigClassDatabase.klass, "synonyms_begin", VALUEFUNC(_wrap_Database_synonyms_begin), -1);
  rb_define_method(SwigClassDatabase.klass, "synonym_keys_begin", VALUEFUNC(_wrap_Database_synonym_keys_begin), -1);
  rb_define_method(SwigClassDatabase.klass, "metadata_keys_begin", VALUEFUNC(_wrap_Database_metadata_keys_begin), -1);

comment:4 by Olly Betts, 4 years ago

Added metadata_keys wrapper on master in 5b3439cc78f400b641ad815d4e6288e822f86c34.

comment:5 by Olly Betts, 4 years ago

I've wrapped all the other missing iterators on master in e2d3f3fa67deab6baad96f74bf3cce86edae2153.

comment:6 by Olly Betts, 4 years ago

Resolution: fixed
Status: assignedclosed

comment:7 by Do, 4 years ago


Note: See TracTickets for help on using tickets.