aboutsummaryrefslogtreecommitdiff
path: root/ruby/package_dep_spec_constraint.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/package_dep_spec_constraint.cc')
-rw-r--r--ruby/package_dep_spec_constraint.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby/package_dep_spec_constraint.cc b/ruby/package_dep_spec_constraint.cc
index 52109a544..4184b4f4d 100644
--- a/ruby/package_dep_spec_constraint.cc
+++ b/ruby/package_dep_spec_constraint.cc
@@ -34,6 +34,7 @@ namespace
static VALUE c_name_constraint;
static VALUE c_package_name_part_constraint;
static VALUE c_category_name_part_constraint;
+ static VALUE c_version_constraint;
static VALUE c_in_repository_constraint;
static VALUE c_from_repository_constraint;
static VALUE c_installed_at_path_constraint;
@@ -73,6 +74,12 @@ namespace
new std::shared_ptr<const PackageDepSpecConstraint>(mm));
}
+ void visit(const VersionConstraint &)
+ {
+ value = Data_Wrap_Struct(c_version_constraint, 0, &Common<std::shared_ptr<const PackageDepSpecConstraint> >::free,
+ new std::shared_ptr<const PackageDepSpecConstraint>(mm));
+ }
+
void visit(const InRepositoryConstraint &)
{
value = Data_Wrap_Struct(c_in_repository_constraint, 0, &Common<std::shared_ptr<const PackageDepSpecConstraint> >::free,