aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 21:22:37 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 21:22:37 +0000
commitdc6cdcbdc1430403fb52ad4baf859d09b5bed1c4 (patch)
tree54eb5c530f87fda06c5476e144fcab59f352dc90 /ruby
parent0c8eeda99a0bbef95e7729369ee293f526cd76a0 (diff)
downloadpaludis-dc6cdcbdc1430403fb52ad4baf859d09b5bed1c4.tar.gz
paludis-dc6cdcbdc1430403fb52ad4baf859d09b5bed1c4.tar.xz
Put repo mask info directly in the mask
Diffstat (limited to 'ruby')
-rw-r--r--ruby/mask.cc2
-rw-r--r--ruby/package_id_TEST.rb2
2 files changed, 0 insertions, 4 deletions
diff --git a/ruby/mask.cc b/ruby/mask.cc
index 0cac96e19..93ca902bb 100644
--- a/ruby/mask.cc
+++ b/ruby/mask.cc
@@ -215,8 +215,6 @@ namespace
* A RepositoryMask is a Mask that signifies that a PackageID has been marked as masked by a Repository.
*/
c_repository_mask = rb_define_class_under(paludis_module(), "RepositoryMask", c_mask);
- rb_define_method(c_repository_mask, "mask_key_name",
- RUBY_FUNC_CAST((&MaskMetadataKey<RepositoryMask,&RepositoryMask::mask_key_name>::fetch)), 0);
/*
* Document-class: Paludis::UnsupportedMask
diff --git a/ruby/package_id_TEST.rb b/ruby/package_id_TEST.rb
index 5e5992ab3..46a0c46ee 100644
--- a/ruby/package_id_TEST.rb
+++ b/ruby/package_id_TEST.rb
@@ -181,7 +181,6 @@ module Paludis
assert_equal 1, masks.length
mask = masks.first
assert_kind_of RepositoryMask, mask
- assert_equal "repository_mask", mask.mask_key_name
end
def test_hash
@@ -246,7 +245,6 @@ module Paludis
def test_repository_mask_info_keys
assert_kind_of MetadataRepositoryMaskInfoKey, pid_testrepo["repository_mask"]
assert_kind_of RepositoryMaskInfo, pid_testrepo["repository_mask"].value
- assert pid_testrepo["repository_mask"].value.mask_file =~ %r[package_id_TEST_dir/testrepo/profiles/package.mask$]
assert_equal ["this is", "a test"], pid_testrepo["repository_mask"].value.comment
assert_nil pid_testrepo["profile_mask"].value
end