== Getting Help
* 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>
gem install ruby-fedora
repository = Fedora::Repository.new('http://localhost:8080/fedora')
test_object = Fedora::FedoraObject.new(:label => 'test', :contentModel => 'Image', :state => 'A', :ownerID => 'fedoraAdmin')
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:
Then run "rake spec"
== Package a new gem from ruby_fedora source
- remove anything in test/* that are no longer relevant
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
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.