diff options
author | 2009-10-10 22:53:43 +0100 | |
---|---|---|
committer | 2009-10-11 17:16:34 +0100 | |
commit | 5c3b0a2054fa6b030e1c531476727ab649b1e500 (patch) | |
tree | fca9f2590e8e64134cc3b3f504eb3e250fff3cb8 /ruby | |
parent | a99f46ae26d0679ec1b815faf33787686b071000 (diff) | |
download | paludis-5c3b0a2054fa6b030e1c531476727ab649b1e500.tar.gz paludis-5c3b0a2054fa6b030e1c531476727ab649b1e500.tar.xz |
test labels, mapped to build: for now
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/dep_label.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ruby/dep_label.cc b/ruby/dep_label.cc index 9981bb4af..206b68864 100644 --- a/ruby/dep_label.cc +++ b/ruby/dep_label.cc @@ -46,6 +46,7 @@ namespace static VALUE c_dependencies_label; static VALUE c_dependencies_build_label; + static VALUE c_dependencies_test_label; static VALUE c_dependencies_compile_against_label; static VALUE c_dependencies_fetch_label; static VALUE c_dependencies_install_label; @@ -141,6 +142,12 @@ namespace new std::tr1::shared_ptr<const DependenciesLabel>(mm)); } + void visit(const DependenciesTestLabel &) + { + value = Data_Wrap_Struct(c_dependencies_test_label, 0, &Common<std::tr1::shared_ptr<const DependenciesLabel> >::free, + new std::tr1::shared_ptr<const DependenciesLabel>(mm)); + } + void visit(const DependenciesRunLabel &) { value = Data_Wrap_Struct(c_dependencies_run_label, 0, &Common<std::tr1::shared_ptr<const DependenciesLabel> >::free, @@ -244,6 +251,7 @@ namespace rb_define_method(c_dependencies_label, "to_s", RUBY_FUNC_CAST(&dependencies_label_text), 0); c_dependencies_build_label = rb_define_class_under(paludis_module(), "DependenciesBuildLabel", c_dependencies_label); + c_dependencies_test_label = rb_define_class_under(paludis_module(), "DependenciesTestLabel", c_dependencies_label); c_dependencies_run_label = rb_define_class_under(paludis_module(), "DependenciesRunLabel", c_dependencies_label); c_dependencies_post_label = rb_define_class_under(paludis_module(), "DependenciesPostLabel", c_dependencies_label); c_dependencies_install_label = rb_define_class_under(paludis_module(), "DependenciesInstallLabel", c_dependencies_label); |