Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup of various things

Mostly things the create-new-project script did. :)
  • Loading branch information...
commit d3623aba02a1d64551af98e0b1d4e238dbc6a8ea 1 parent 98e75f0
@masak authored
View
2  .gitignore
@@ -1 +1,3 @@
data
+Makefile
+*.pir
View
2  Configure.pl
@@ -1,2 +1,2 @@
# Configure.pl - installer - see documentation in lib/Configure.pm
-use v6; BEGIN { @*INC.push( 'lib' ); }; use Configure;
+use v6; BEGIN { @*INC.unshift( 'lib' ); }; use Configure;
View
3  Makefile.in
@@ -2,8 +2,7 @@ PERL6=<PERL6>
PERL6LIB=<PERL6LIB>
RAKUDO_DIR=<RAKUDO_DIR>
-SOURCES=lib/Example/Hello.pm
-
+SOURCES=lib/Yarn.pm
PIRS=$(SOURCES:.pm=.pir)
View
13 lib/Configure.pm
@@ -44,7 +44,11 @@ else {
}
say "PERL6 $perl6";
-my $perl6lib = %*ENV<PWD> ~ '/lib';
+warn %*ENV<PERL6LIB>;
+warn %*ENV<PWD> ~ '/lib';
+my $perl6lib = ?%*ENV<PERL6LIB>.index(%*ENV<PWD> ~ '/lib')
+ ?? %*ENV<PERL6LIB>
+ !! %*ENV<PWD> ~ '/lib';
say "PERL6LIB $perl6lib";
# The perl6-examples/bin directory is a sibling of PERL6LIB
my $perl6bin = $perl6lib.subst( '/lib', '/bin' );
@@ -67,12 +71,7 @@ squirt( 'Makefile', $maketext );
# Job done.
.say for
'',
- q[Makefile is ready, running 'make' on it.];
-run('make');
-.say for
- q[Configure and 'make' have finished. ]
- ~ q[Use 'make help' to view other options.],
- '';
+ q[Makefile is ready, you can now run 'make' on it.];
# The opposite of slurp
View
11 lib/Example/Hello.pm
@@ -1,11 +0,0 @@
-class Example::Hello
-{
- method greet { return "hello" }
- method place { return "world" }
-}
-=begin pod
-=head1 NAME
-Example::Hello - canonical "hello, world!" example for proto
-=head1 AUTHOR
-masak (masak at github and @example.com)
-=end pod
View
10 t/01-simple.t
@@ -1,7 +1,5 @@
-use Example::Hello;
use Test;
-plan 3;
-my Example::Hello $greeter .= new;
-isa_ok( $greeter, 'Example::Hello', 'create object' );
-is( $greeter.greet, 'hello', 'greet' );
-is( $greeter.place, 'world', 'place' );
+
+plan 1;
+
+lives_ok({ use Yarn }, 'can use Yarn');
Please sign in to comment.
Something went wrong with that request. Please try again.