33 lines
650 B
Ruby
33 lines
650 B
Ruby
#!/usr/bin/ruby
|
|
#
|
|
# This file was modified from the file generated by RubyGems.
|
|
#
|
|
# The application 'rspec-core' is installed as part of a gem, and
|
|
# this file is here to facilitate running it.
|
|
#
|
|
|
|
require 'rubygems'
|
|
|
|
version = "~> 2.14.0"
|
|
|
|
if ARGV.first
|
|
str = ARGV.first
|
|
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
|
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
|
|
version = $1
|
|
ARGV.shift
|
|
end
|
|
end
|
|
|
|
gem 'rspec-core', version
|
|
begin
|
|
gem 'rspec-mocks', version
|
|
gem 'rspec-expectations', version
|
|
rescue
|
|
end
|
|
begin
|
|
gem 'rspec', version
|
|
rescue
|
|
end
|
|
load Gem.bin_path('rspec-core', 'rspec', version)
|