Added a new port vagrant-gitlab that can be installed with gitlab on the same host. Currently I do not see another solution as other rubygem version that are installed by some ports are breaking gitlab and that was the reason to split this. Some maintainers to do test their changes against all ports which made this step necessary. You can also install gitlab in a jail to fix these problems. PR: 287926
26 lines
884 B
Ruby
26 lines
884 B
Ruby
# RubyEncoder v1.0 loader
|
|
_v = RUBY_VERSION.scan(/^\d+\.\d+\.\d+/)[0].delete('.')
|
|
_v = '' if _v.to_i < 190
|
|
_p = RUBY_PLATFORM.scan(/^([A-Za-z0-9_]+\.)?([A-Za-z0-9_]+)-([A-Za-z_]+)/)[0]
|
|
_p.shift
|
|
#_p = RUBY_PLATFORM.scan(/^([A-Za-z0-9_]+)-([A-Za-z_]+)/)[0]
|
|
_d = File.expand_path(File.dirname(__FILE__))
|
|
_f = [_d + '/rgloader' + _v + '.' + _p[1] + '.' + _p[0],
|
|
_d + '/rgloader' + _v + '.' + _p[1],
|
|
_d + '/rgloader' + _v.chop + '.' + _p[1] + '.' + _p[0],
|
|
_d + '/rgloader' + _v.chop + '.' + _p[1]]
|
|
|
|
_fl = false
|
|
for x in _f do
|
|
begin
|
|
require x
|
|
_fl = true
|
|
break
|
|
rescue LoadError
|
|
end
|
|
end
|
|
|
|
if not _fl then
|
|
raise LoadError, "The RubyEncoder loader is not installed. Please visit the http://www.rubyencoder.com/loaders/ RubyEncoder site to download the required loader for '"+_p[1]+"' and unpack it into '"+_d+"' directory to run this protected script."
|
|
end
|