OVERVIEW

Project Ed
Homepage https://github.com/robgleeson/ed
Wiki https://github.com/robgleeson/ed/wiki
Documentation http://rubydoc.info/gems/ed/frames
Author Rob Gleeson

DESCRIPTION

Ed is a library that you can use to talk to Git from Ruby.
It is useful when you'd like to run Ruby code in the context of one or more
commits, tags, or branchs.

It can work with local or remote repositories, supports parallel access to
the same repository, and offers a thread-local cache to speed up costly clones.
The cache expires once the process exits, and as said, each thread has its
own cache.

It is also flexible(e.g: configurable) enough to cover some edge cases I have
thought of while writing Ed.

EXAMPLE

The example below shows how you can run the test suite of two different tags from a remote repository.
The examples directory has a few other examples you might want to check out.

1.

Run the tests for tag 'v0.1.0' and tag 'v0.2.0'.

Repository "git://github.com/robgleeson/observe.git" do  
  tag "v0.1.0" do |path|
    system "cd '#{path}' && rake test"
  end

  tag "v0.2.0" do |path|
    system "cd '#{path}' && rake test"
  end
end

PLATFORM SUPPORT

supported

  • CRuby 1.9

INSTALL

gem install ed

LICENSE

See LICENSE.txt