Skip to content

Commit d75979c

Browse files
committed
Gemfile: remove location_for
This probably breaks on native Windows Signed-off-by: Tim Meusel <tim@bastelfreak.de>
1 parent 2abc128 commit d75979c

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

Gemfile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,12 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
22

33
require 'uri'
44

5-
def location_for(place)
6-
if place =~ /^((?:git[:@]|https:)[^#]*)#(.*)/
7-
[{ :git => $1, :branch => $2, :require => false }]
8-
elsif place.start_with?('file://')
9-
uri = URI(place)
10-
path =
11-
if uri.host && !uri.host.empty?
12-
"#{uri.host}#{uri.path}"
13-
else
14-
uri.path
15-
end
16-
['>= 0', { path: path, require: false }]
17-
else
18-
[place, { :require => false }]
19-
end
20-
end
21-
225
gem 'artifactory'
23-
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.105')
6+
gem 'packaging', '~> 0.105'
247
gem 'rake', '~> 13.0'
258
gem 'rubocop', '~> 1.86'
269
gem 'rubocop-rake', '~> 0.7'
27-
gem 'vanagon', *location_for(ENV['VANAGON_LOCATION'] || 'https://github.com/openvoxproject/vanagon#main')
10+
gem 'vanagon', (ENV['VANAGON_LOCATION'] || 'https://github.com/openvoxproject/vanagon#main')
2811
# Need to update the openssl gem on MacOS to avoid SSL errors. Doesn't hurt to have the newest
2912
# for all platforms.
3013
# https://www.rubyonmac.dev/certificate-verify-failed-unable-to-get-certificate-crl-openssl-ssl-sslerror

0 commit comments

Comments
 (0)