Skip to content

Commit

Permalink
Add some more Distribution compatibility shim shit
Browse files Browse the repository at this point in the history
This will never end.
  • Loading branch information
ugexe committed Jun 3, 2018
1 parent e5005f4 commit 8a3536a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Zef/Distribution.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Zef::Distribution does Distribution is Zef::Distribution::DependencySpecif

method auth { with $!auth // $!author // $!authority { .Str } else { Nil } }
method ver { with $!ver // $!version { $!ver ~~ Version ?? $_ !! $!ver = Version.new($_ // 0) } }
method meta { $.hash }
method hash {
my %normalized = %(
:$!meta-version,
Expand Down Expand Up @@ -134,4 +133,7 @@ class Zef::Distribution does Distribution is Zef::Distribution::DependencySpecif
method auth { self.meta<auth> }
});
}

method meta { $.hash }
method content($name-path) { self.compat.content($name-path) }
}

0 comments on commit 8a3536a

Please sign in to comment.