diff --git a/bindings/libdnf5/advisory.i b/bindings/libdnf5/advisory.i index 7a74005e1..b867b22b9 100644 --- a/bindings/libdnf5/advisory.i +++ b/bindings/libdnf5/advisory.i @@ -6,6 +6,10 @@ %module "libdnf5/advisory" #endif +#if defined(SWIGRUBY) +%mixin libdnf5::advisory::AdvisorySet "Enumerable"; +#endif + %include %include @@ -57,3 +61,8 @@ %template(VectorAdvisoryReference) std::vector; add_iterator(AdvisorySet) + +#if defined(SWIGRUBY) +fix_swigtype_trait(libdnf5::advisory::Advisory) +#endif +add_ruby_each(libdnf5::advisory::AdvisorySet)