Skip to content

A Rails interface to the Fedora repository, akin to ActiveModel

License

Notifications You must be signed in to change notification settings

railstack/active_fedora

This branch is 202 commits behind samvera/active_fedora:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be1ec09 · Jan 26, 2018
May 10, 2016
Jan 26, 2018
Feb 28, 2014
Jan 26, 2018
Aug 26, 2016
Feb 27, 2013
Jul 11, 2013
Jun 10, 2014
May 30, 2017
Mar 1, 2017
Aug 11, 2016
Jun 13, 2017
Jan 25, 2017
Mar 17, 2014
Jun 13, 2017
Jan 25, 2017
Jan 2, 2013
Jul 25, 2017
Feb 4, 2016
Nov 7, 2017

Repository files navigation

Description

Build Status Version Dependencies Coverage Status

ActiveFedora is a Ruby gem for creating and managing objects in the Fedora Repository Architecture (http://fedora-commons.org). ActiveFedora is loosely based on “ActiveRecord” in Rails. Version 9.0+ works with Fedora 4 and prior versions work on Fedora 3. Version 9.2+ works with Solr 4.10. Version 10.0+ works with Fedora >= 4.5.1.

Getting Help

Installation

The gem is hosted on rubygems.

gem install active-fedora

Getting Started

The Dive into Hydra gives you a brief tour through ActiveFedora’s features on the command line.

Generators

You can generate a model inheriting from ActiveFedora::Base.

rails generate active_fedora:model Book

Testing (this Gem)

In order to run the RSpec tests, you need to have a copy of the ActiveFedora source code, and then run bundle install in the source directory. You can download the source code by doing the following:

git clone https://github.com/samvera/active_fedora.git
cd active_fedora
bundle install

Using the continuous integration server

You can test ActiveFedora using the same process as our continuous integration server. This will automatically pull down a copy of Solr and Fedora Content Repository.

The ci rake task will download solr and fedora, start them, and run the tests for you.

rake active_fedora:ci

Testing Manually

If you want to run the tests manually, follow these instructions:

solr_wrapper

To start FCRepo, open another shell and run:

fcrepo_wrapper -p 8986

Now you’re ready to run the tests. In the directory where active_fedora is installed, run:

rake spec

Acknowledgements

Creator: Matt Zumwalt (MediaShelf)

Developers: Justin Coyne, McClain Looney & Eddie Shin (MediaShelf), Rick Johnson (Notre Dame)

About

A Rails interface to the Fedora repository, akin to ActiveModel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 96.9%
  • XSLT 2.6%
  • HTML 0.5%