[Bps-public-commit] Shipwright branch, master, updated. d5f3812f4facfd0a68cdd05e7635ebba4f097a05
? sunnavy
sunnavy at bestpractical.com
Fri Nov 6 10:44:40 EST 2015
The branch, master has been updated
via d5f3812f4facfd0a68cdd05e7635ebba4f097a05 (commit)
from 2353fca86415cc2ee400366b4b7c9070e69cedb6 (commit)
Summary of changes:
lib/Shipwright/Source.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d5f3812f4facfd0a68cdd05e7635ebba4f097a05
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Nov 6 23:40:30 2015 +0800
support https source
diff --git a/lib/Shipwright/Source.pm b/lib/Shipwright/Source.pm
index e5bbe1f..d030fb4 100644
--- a/lib/Shipwright/Source.pm
+++ b/lib/Shipwright/Source.pm
@@ -90,10 +90,10 @@ sub type {
return 'Shipyard' if $$source =~ s/^(?:shipyard|shipwright)://i;
# prefix that can be omitted
- for my $type (qw/svn http ftp git/) {
+ for my $type (qw/svn http https ftp git/) {
if ( $$source =~ /^$type:(?!:\w+)/i ) {
$$source =~ s{^$type:(?!//)}{}i;
- return $type eq 'git' ? 'Git' : uc $type;
+ return $type eq 'git' ? 'Git' : $type eq 'https' ? 'HTTP' : uc $type;
}
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list