Skip to content
adamrodger edited this page Nov 4, 2012 · 2 revisions

tl;dr

In PowerShell:

git clone git://github.com/derickbailey/albacore.git -b dev ; gem install bundler ; bundle install ; rake install

How To Manually Build And Install The albacore Gem

If you would like to install the latest source code for albacore, and get all the new features and functionality (possibly in an unstable form), you can manually build and install the albacore gem. Follow these simple instructions and you will be good to go.

Step 1: Clone albacore

Use your Github account to fork albacore, or clone it directly from my public clone URL.

git clone git://github.com/Albacore/albacore.git albacore

Step 2: Install Required Dependencies

You will need the Bundler gem installed to install the other albacore dependencies

gem install bundler

If running on Windows you will also need the RubyInstaller Development Kit from http://rubyinstaller.org/downloads/, using the installation instructions from https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

In your local clone of albacore, run bundler

bundle install

This will install all of the gem dependencies that you need to build the albacore gem and add your own contributions to albacore.

Step 3: Build the gem

In your local clone of albacore, use rake to build the latest version of the albacore code into a gem.

rake build

this will produce an 'albacore-#.#.#.gem' file in the 'pkg' folder, where '#.#.#' is the version number. For example 'albacore-0.1.2.gem'*.

Note: Only files checked in to Git will be included in the built gem.

Step 4: Install the gem

After building the gem, you can install it from your local file system.

gem install -l pkg/albacore-#.#.#.gem

where '#.#.#' is the version number of the gem. For example 'albacore-0.1.2.gem'. Or, using rake:

rake install

It isn't necessary to run rake build if using rake install.

* Are you getting something like

Generated: albacore.gemspec
albacore.gemspec is valid.
rake aborted!
undefined method `write' for #<Syck::Emitter:0x2d0b628>

Then try

RUBYOPT='-rpsych' rake jeweler:gemspec jeweler:build

or for PowerShell:

$env:RUBYOPT='-rpsych' ; rake jeweler:gemspec jeweler:build

Albacore

Meta & Config

Tasks

Dev & Docs

Clone this wiki locally