Skip to content

Commit 7371c04

Browse files
Bring original Gemfile back
1 parent d75979c commit 7371c04

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Gemfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@ 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 =~ /^file:\/\/(.*)/
9+
['>= 0', { :path => File.expand_path($1), :require => false }]
10+
else
11+
[place, { :require => false }]
12+
end
13+
end
14+
515
gem 'artifactory'
6-
gem 'packaging', '~> 0.105'
16+
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.105')
717
gem 'rake', '~> 13.0'
818
gem 'rubocop', '~> 1.86'
919
gem 'rubocop-rake', '~> 0.7'
10-
gem 'vanagon', (ENV['VANAGON_LOCATION'] || 'https://github.com/openvoxproject/vanagon#main')
20+
gem 'vanagon', *location_for(ENV['VANAGON_LOCATION'] || 'https://github.com/openvoxproject/vanagon#main')
1121
# Need to update the openssl gem on MacOS to avoid SSL errors. Doesn't hurt to have the newest
1222
# for all platforms.
1323
# https://www.rubyonmac.dev/certificate-verify-failed-unable-to-get-certificate-crl-openssl-ssl-sslerror

0 commit comments

Comments
 (0)