File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"
3
3
gemspec
4
4
5
5
def location_for ( place , fake_version = nil )
6
- if place . is_a? ( String ) && place =~ /^(git[:@][^#]*)#(.*)/
6
+ if place . is_a? ( String ) && place =~ /^((?: git[:@]|https:) [^#]*)#(.*)/
7
7
[ fake_version , { git : $1, branch : $2, require : false } ] . compact
8
8
elsif place . is_a? ( String ) && place =~ /^file:\/ \/ (.*)/
9
9
[ '>= 0' , { path : File . expand_path ( $1) , require : false } ]
Original file line number Diff line number Diff line change 3
3
source ENV [ 'GEM_SOURCE' ] || 'https://rubygems.org'
4
4
5
5
def location_for ( place , fake_version = nil )
6
- if place . is_a? ( String ) && place =~ /^(git: [^#]*)#(.*)/
6
+ if place . is_a? ( String ) && place =~ /^((?: git[:@]|https:) [^#]*)#(.*)/
7
7
[ fake_version , { :git => $1, :branch => $2, :require => false } ] . compact
8
8
elsif place . is_a? ( String ) && place =~ /^file:\/ \/ (.*)/
9
9
[ '>= 0' , { :path => File . expand_path ( $1) , :require => false } ]
You can’t perform that action at this time.
0 commit comments