Sha256: db9b6623d09cdb146e974096380e8208a19e51d9a22e66f5f2c3fec2c2ced2f0

Contents?: true

Size: 833 Bytes

Versions: 4

Compression:

Stored size: 833 Bytes

Contents

require 'fileutils'
include FileUtils

require 'rubygems'

# Load essential gems. Exit if not available.
%w[rake active_record].each do |req_gem|
  begin
    require req_gem
  rescue LoadError
    puts "This Rakefile requires the '#{req_gem}' RubyGem."
    puts "Installation: gem install #{req_gem} -y"
    exit
  end  
end

# Load gem builder / ruby-forge integration gems. Complain but continue if not available.
%w[hoe].each do |req_gem|
  begin
    require req_gem
  rescue LoadError
    # The jruby platform is probably only used for testing. 
    # So if on jruby, do not even complain.
    if not RUBY_PLATFORM =~ /java/
      puts "Without #{req_gem} rake tasks to build the gem / integrate the RubyForge will not be available."
    end
  end
end

$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))

require 'rubyrep'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyrep-1.2.0 config/requirements.rb
rubyrep-1.1.2 config/requirements.rb
rubyrep-1.1.1 config/requirements.rb
rubyrep-1.1.0 config/requirements.rb