This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e1fc4b
commit c9443af
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
vendor/* | ||
output/* | ||
.bundle | ||
gems | ||
Gemfile.local | ||
Gemfile.lock | ||
*.log | ||
ext | ||
pkg | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
source ENV['GEM_SOURCE'] || "https://rubygems.org" | ||
|
||
def location_for(place) | ||
if place =~ /^((?:git[:@]|https:)[^#]*)#(.*)/ | ||
[{ :git => $1, :branch => $2, :require => false }] | ||
elsif place =~ /^file:\/\/(.*)/ | ||
['>= 0', { :path => File.expand_path($1), :require => false }] | ||
else | ||
[place, { :require => false }] | ||
end | ||
end | ||
|
||
gem 'artifactory' | ||
gem 'vanagon', *location_for(ENV['VANAGON_LOCATION'] || '~> 0.36') | ||
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.109') | ||
gem 'rake', '~> 13.0' | ||
|
||
eval_gemfile("#{__FILE__}.local") if File.exist?("#{__FILE__}.local") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'json' | ||
|
||
begin | ||
require 'packaging' | ||
Pkg::Util::RakeUtils.load_packaging_tasks | ||
rescue LoadError => e | ||
puts "Error loading packaging rake tasks: #{e}" | ||
end |