aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-05-03 18:56:55 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-05-03 18:56:55 +0100
commit81ecd4c931aadada6e0a2c4a62377ea68a66e7d0 (patch)
tree9b61d701cd3e26d2f090fef92c8973c42513ed73
parent0c878ed1bcb76903c26885c49dda0b3361e0e1ef (diff)
downloadpaludis-81ecd4c931aadada6e0a2c4a62377ea68a66e7d0.tar.gz
paludis-81ecd4c931aadada6e0a2c4a62377ea68a66e7d0.tar.xz
(ruby) Fix requirement class names
-rw-r--r--ruby/package_dep_spec_constraint.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby/package_dep_spec_constraint.cc b/ruby/package_dep_spec_constraint.cc
index 4d18e57..678a3e6 100644
--- a/ruby/package_dep_spec_constraint.cc
+++ b/ruby/package_dep_spec_constraint.cc
@@ -403,7 +403,7 @@ namespace
* Represents a /pkg name requirement in a PackageDepSpec.
*/
c_from_repository_requirement = rb_define_class_under(
- paludis_module(), "InRepositoryRequirement", c_package_dep_spec_requirement);
+ paludis_module(), "FromRepositoryRequirement", c_package_dep_spec_requirement);
rb_funcall(c_from_repository_requirement, rb_intern("private_class_method"), 1, rb_str_new2("new"));
rb_define_method(c_from_repository_requirement, "name", RUBY_FUNC_CAST(
&from_repository_requirement_name), 0);
@@ -414,7 +414,7 @@ namespace
* Represents a ::/ path requirement in a PackageDepSpec.
*/
c_installed_at_path_requirement = rb_define_class_under(
- paludis_module(), "InRepositoryRequirement", c_package_dep_spec_requirement);
+ paludis_module(), "InstalledAtPathRequirement", c_package_dep_spec_requirement);
rb_funcall(c_installed_at_path_requirement, rb_intern("private_class_method"), 1, rb_str_new2("new"));
rb_define_method(c_installed_at_path_requirement, "path", RUBY_FUNC_CAST(
&installed_at_path_requirement_path), 0);
@@ -425,7 +425,7 @@ namespace
* Represents a ::/? path requirement in a PackageDepSpec.
*/
c_installable_to_path_requirement = rb_define_class_under(
- paludis_module(), "InRepositoryRequirement", c_package_dep_spec_requirement);
+ paludis_module(), "InstallableToPathRequirement", c_package_dep_spec_requirement);
rb_funcall(c_installable_to_path_requirement, rb_intern("private_class_method"), 1, rb_str_new2("new"));
rb_define_method(c_installable_to_path_requirement, "path", RUBY_FUNC_CAST(
&installable_to_path_requirement_path), 0);
@@ -502,7 +502,7 @@ namespace
* Represents a [flag] requirement in a PackageDepSpec.
*/
c_choice_requirement = rb_define_class_under(
- paludis_module(), "KeyRequirement", c_package_dep_spec_requirement);
+ paludis_module(), "ChoiceRequirement", c_package_dep_spec_requirement);
rb_funcall(c_choice_requirement, rb_intern("private_class_method"), 1, rb_str_new2("new"));
}
}