Skip to content

Commit

Permalink
ruby: Implement Enumerable for libdnf5::advisory::AdvisorySet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackorp committed Oct 18, 2024
1 parent 744b1e7 commit f40f9b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bindings/libdnf5/advisory.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
%module "libdnf5/advisory"
#endif

#if defined(SWIGRUBY)
%mixin libdnf5::advisory::AdvisorySet "Enumerable";
#endif

%include <exception.i>
%include <std_vector.i>

Expand Down Expand Up @@ -57,3 +61,8 @@
%template(VectorAdvisoryReference) std::vector<libdnf5::advisory::AdvisoryReference>;

add_iterator(AdvisorySet)

#if defined(SWIGRUBY)
fix_swigtype_trait(libdnf5::advisory::Advisory)
#endif
add_ruby_each(libdnf5::advisory::AdvisorySet)

0 comments on commit f40f9b3

Please sign in to comment.