lib/natives/catalog.rb in natives-catalog-0.2.1 vs lib/natives/catalog.rb in natives-catalog-0.3.0
- old
+ new
@@ -30,14 +30,15 @@
def to_hash
@catalogs.fetch(self.name, {})
end
- def native_packages_for(entry_name)
- Array(
+ def native_packages_for(*entry_names)
+ packages = Array(entry_names).flatten.map do |entry_name|
Selector.new(self.to_hash.fetch(entry_name, {})).
value_for(@platform, @platform_version, @package_provider)
- )
+ end
+ packages.flatten.compact
end
end
end