From f40f9b3848824a3d8a2c8b0c7fc8bfecb96e3677 Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Fri, 18 Oct 2024 12:15:25 +0200 Subject: [PATCH] ruby: Implement Enumerable for libdnf5::advisory::AdvisorySet. --- bindings/libdnf5/advisory.i | 9 +++++++++ 1 file changed, 9 insertions(+) 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)