Permalink
Browse files

Recognise https:// source URLs as public, like git:// and http://.

  • Loading branch information...
benhoskings committed Nov 15, 2011
1 parent 03bd25f commit 09f0419df70d3ed54c0d1b9c2e2c88f5090746fc
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/babushka/source.rb
  2. +1 −0 spec/babushka/source_spec.rb
View
@@ -42,7 +42,7 @@ def self.default_remote_for name
def self.discover_uri_and_type path
if path.nil?
[nil, :implicit]
- elsif path.to_s[/^(git|http|file):\/\//]
+ elsif path.to_s[/^(git|https?|file):\/\//]
[path.to_s, :public]
elsif path.to_s[/^(\w+@)?[a-zA-Z0-9.\-]+:/]
[path.to_s, :private]
@@ -23,6 +23,7 @@
[
'git://github.com/benhoskings/babushka-deps.git',
'http://github.com/benhoskings/babushka-deps.git',
+ 'https://github.com/benhoskings/babushka-deps.git',
'file:///Users/ben/babushka/deps'
].each {|uri|
Source.discover_uri_and_type(uri).should == [uri, :public]

0 comments on commit 09f0419

Please sign in to comment.