Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby integration for Leiningen

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

lein-ruby

Ruby and RubyGems integration for Leiningen.

The goal of lein-ruby is to provide just enough support to easily bundle Ruby gems with Clojure applications.

Usage

Tasks

This plugin adds one task to Leiningen:

  • lein ruby CMD [ARGS...] - runs a Ruby command

You are responsible for adding the desired version of jruby-complete to your project's dependencies.

Hooks

The plugin also includes a set of hooks (in the leiningen.ruby.bundler namespace) which accomplish three things:

  • augment lein deps to install bundler and any gems specified in your project's Gemfile into vendor/gems

  • add vendor/gems to your project's classpath

  • package the gems in vendor/gems as part of your project's jar

Options

lein-ruby also introduces two options which can be set in your project.clj:

  • :ruby-version - the Ruby version to use for lein ruby: "1.8" or "1.9" (default)

  • :ruby-gem-dir - the directory to use for gems, relative to the project root (defaults to vendor/gems)

License

Copyright (C) 2012 MenTaLguY mental@rydia.net

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.