PageRenderTime 108ms CodeModel.GetById 106ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/Ruby/bin/gem

http://github.com/agross/netopenspace
Ruby | 25 lines | 13 code | 6 blank | 6 comment | 0 complexity | eaea940c141fd48c901859364dccf530 MD5 | raw file
 1#!/usr/bin/env ruby
 2#--
 3# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
 4# All rights reserved.
 5# See LICENSE.txt for permissions.
 6#++
 7
 8require 'rubygems'
 9require 'rubygems/gem_runner'
10require 'rubygems/exceptions'
11
12required_version = Gem::Requirement.new ">= 1.8.7"
13
14unless required_version.satisfied_by? Gem.ruby_version then
15  abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
16end
17
18args = ARGV.clone
19
20begin
21  Gem::GemRunner.new.run args
22rescue Gem::SystemExitException => e
23  exit e.exit_code
24end
25