Sha256: 0682e64377ffd125e1ee864b7c1c78c1b03478ee99d199ebe568b7634aad073a

Contents?: true

Size: 876 Bytes

Versions: 3

Compression:

Stored size: 876 Bytes

Contents

Require
=======

Manage your project's dependencies with a pretty DSL.

* Gem activation
* Require calls
* Load paths
* Gemspec configuration

Install
-------

<pre>
sudo gem install require
</pre>

Example
-------

Create <code>require.rb</code> in your project's root directory:

<pre>
require 'rubygems'
require 'require'

Require File.dirname(__FILE__) do

  gem(:sinatra, '=0.9.4') { require 'sinatra/base' }
  gem(:haml, '=2.2.16') { require %w(haml sass) }

  lib do
    gem :sinatra
    gem :haml
    load_path 'vendor/authlogic/lib'
    require 'authlogic'
  end
end
</pre>

Then in your library file (<code>lib/whatever.rb</code>):

<pre>
require File.expand_path("#{File.dirname(__FILE_)}/../require")
Require.lib!
  # Activates sinatra and haml gems
  # Requires sinatra, haml, and sass
  # Adds vendor/authlogic/lib to the load paths
  # Requires authlogic
</pre>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
require-0.1.8 README.markdown
require-0.1.7 README.markdown
require-0.1.6 README.markdown