2007-11-10 23:44:57 +03:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
#--
|
|
|
|
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
|
|
|
|
# All rights reserved.
|
|
|
|
# See LICENSE.txt for permissions.
|
|
|
|
#++
|
|
|
|
|
|
|
|
require 'rubygems'
|
|
|
|
require 'rubygems/gem_runner'
|
2008-04-01 02:40:06 +04:00
|
|
|
require 'rubygems/exceptions'
|
2007-11-10 23:44:57 +03:00
|
|
|
|
2011-03-07 11:44:45 +03:00
|
|
|
required_version = Gem::Requirement.new ">= 1.8.7"
|
2007-11-10 23:44:57 +03:00
|
|
|
|
2008-04-01 02:40:06 +04:00
|
|
|
unless required_version.satisfied_by? Gem.ruby_version then
|
2009-06-10 01:38:59 +04:00
|
|
|
abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
|
2007-11-10 23:44:57 +03:00
|
|
|
end
|
|
|
|
|
2009-06-10 01:38:59 +04:00
|
|
|
args = ARGV.clone
|
2007-11-10 23:44:57 +03:00
|
|
|
|
2008-04-01 02:40:06 +04:00
|
|
|
begin
|
|
|
|
Gem::GemRunner.new.run args
|
|
|
|
rescue Gem::SystemExitException => e
|
|
|
|
exit e.exit_code
|
|
|
|
end
|
2007-11-10 23:44:57 +03:00
|
|
|
|