Skip to content

Commit

Permalink
s/Perl6/Raku in more places
Browse files Browse the repository at this point in the history
This does not affect setting compilation, spectest or installing
modules with zef, so this feels clean to do now.
  • Loading branch information
lizmat committed Jun 17, 2021
1 parent 15d372e commit 48de177
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Perl6/World.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ class Perl6::World is HLL::World {
my $true := self.find_single_symbol('True', :setting-only);
my $spec := self.find_symbol(['CompUnit', 'DependencySpecification'], :setting-only).new(
:short-name($module_name),
:from(%opts<from> // 'Perl6'),
:from(%opts<from> // 'Raku'),
:auth-matcher(%opts<auth> // $true),
:api-matcher(%opts<api> // $true),
:version-matcher(%opts<ver> // $true),
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/CompUnit.pm6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class CompUnit {
has Str:D $.from is built(:bind) = 'Perl6';
has Str:D $.from is built(:bind) = 'Raku';
has Str:D $.short-name is built(:bind) is required;
has Version $.version is built(:bind);
has Str $.auth is built(:bind);
Expand Down
6 changes: 3 additions & 3 deletions src/core.c/CompUnit/DependencySpecification.pm6
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class CompUnit::DependencySpecification {
has str $.short-name is built(:bind) is required; # must be native
has str $.from is built(:bind) = 'Perl6'; # must be native
has str $.from is built(:bind) = 'Raku'; # must be native
has $.version-matcher is built(:bind) = True;
has $.auth-matcher is built(:bind) = True;
has $.api-matcher is built(:bind) = True;
Expand All @@ -10,7 +10,7 @@ class CompUnit::DependencySpecification {
method Str(CompUnit::DependencySpecification:D: --> Str:D) {
my $parts := nqp::list_s($!short-name);
nqp::push_s($parts,":from<$!from>")
if $!from ne 'Perl6';
if $!from ne 'Raku';
nqp::push_s($parts,":ver<$!version-matcher>")
unless nqp::eqaddr($!version-matcher,True);
nqp::push_s($parts,":auth<$!auth-matcher>")
Expand All @@ -25,7 +25,7 @@ class CompUnit::DependencySpecification {
"CompUnit::DependencySpecification.new(:short-name<$!short-name>"
);
nqp::push_s($parts,",:from<$!from>")
if $!from ne 'Perl6';
if $!from ne 'Raku';
nqp::push_s($parts,",:version-matcher<$!version-matcher>")
unless nqp::eqaddr($!version-matcher,True);
nqp::push_s($parts,",:auth-matcher<$!auth-matcher>")
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository/FileSystem.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class CompUnit::Repository::FileSystem
));
}
multi method candidates(CompUnit::DependencySpecification $spec) {
return Empty unless $spec.from eq 'Perl6';
return Empty unless $spec.from eq 'Raku';

my $distribution = self!distribution;

Expand Down
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository/Installation.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
));
}
multi method candidates(CompUnit::DependencySpecification $spec) {
return Empty unless $spec.from eq 'Perl6';
return Empty unless $spec.from eq 'Raku';

# $lookup is a file system resource that acts as a fast meta data lookup for a given module short name.
my $lookup = self!short-dir.add(nqp::sha1($spec.short-name));
Expand Down

0 comments on commit 48de177

Please sign in to comment.