1source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'
2
3def location_for(place, fake_version = nil)
4  if place =~ /^(git[:@][^#]*)#(.*)/
5    [fake_version, { :git => $1, :branch => $2, :require => false }].compact
6  elsif place =~ /^file:\/\/(.*)/
7    ['>= 0', { :path => File.expand_path($1), :require => false }]
8  else
9    [place, { :require => false }]
10  end
11end
12
13gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.99')
14gem 'fpm'
15