Sha256: 3c451207c67653139120b88ec6f6dff06c564ef743542335a96a2b16942da0b7

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

required_version = Gem::Requirement.new "> 1.8.5"

unless required_version.satisfied_by? Gem.ruby_version then
  abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
end

def install(lib)
  begin
    matches = Gem.source_index.find_name(lib)
    if matches.empty?
      puts "Installing #{lib}"
      Gem::GemRunner.new.run ['install', lib]
    else
      puts "Found #{lib} gem - skipping"
    end
  rescue Gem::SystemExitException => e
  end
end

puts "Installing required dependencies"
install 'rake'
install 'albacore'
install 'jeweler'
install 'rspec'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seabass-0.1.1 install_dependencies.rb
seabass-0.1.0 install_dependencies.rb