== 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
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