Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Recognise https:// source URLs as public, like git:// and http://.
  • Loading branch information
benhoskings committed Nov 15, 2011
1 parent 03bd25f commit 09f0419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/babushka/source.rb
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions spec/babushka/source_spec.rb
Expand Up @@ -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]
Expand Down

0 comments on commit 09f0419

Please sign in to comment.