Overview

== Getting Help

* http://yourmediashelf.com/activefedora
* Further documentation is available at <http://projects.mediashelf.us/show/active-fedora>
* Community Discussions & Mailing List are located at <http://groups.google.com/group/active-fedora>

== Installation

gem install ruby-fedora

irb

require 'ruby-fedora'
repository = Fedora::Repository.new('http://localhost:8080/fedora')
test_object = Fedora::FedoraObject.new(:label => 'test', :contentModel => 'Image', :state => 'A', :ownerID => 'fedoraAdmin')
repository.save(test_object)

objects = repository.find_objects('label~Image*')
object = repository.fetch_content('demo:1')


Check out spec/repository_spec.rb for more examples.

== Build Test/Specs

To run ruby-fedora specs, install the following gems:

 gem install facets mime-types rspec

To run the active-fedora specs, install the following gems:

 - ambition
 - syntax
 - ParseTree
 
Then run "rake spec"

== Package a new gem from ruby_fedora source

rake pkg


== TODO

 - remove anything in test/* that are no longer relevant

 == LICENSE:

 Copyright (c) 2009 Matt Zumwalt

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License (LGPL) as 
 published by the Free Software Foundation, either version 3 of the License, 
 or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/> or 
 see <http://www.gnu.org/licenses/lgpl.html>.

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.