Common DOR services, models, and utility classes used by the SULAIR Digital Library
Ruby XSLT
Latest commit 5e15f94 Jan 19, 2017 @jmartin-sul jmartin-sul committed on GitHub Merge pull request #307 from sul-dlss/badges
README: add gemnasium and gem version badges
Permalink
Failed to load latest commit information.
config Add missing configuration defaults Nov 22, 2016
lib
script remove extraneous displayType attribute from release tags and do not … Sep 27, 2016
spec Ensure collections are publishable Jan 19, 2017
.gitignore
.rspec
.rubocop.yml rubocop - move literalInCondition exception to rubocop.yml as it is i… Mar 11, 2016
.rubocop_todo.yml Remove Metadata Toolkit metadata handlers Nov 18, 2016
.travis.yml
Gemfile Support active-fedora versions 6.x through 8.x Oct 19, 2016
HISTORY.md relocate the stale history information into HISTORY.md Nov 17, 2015
LICENSE
README.md
Rakefile More rubocop compliance Dec 12, 2015
dor-services.gemspec

README.md

Build Status Coverage Status Dependency Status Gem Version

dor-services

Require the following:

require 'dor-services'

Configuration is handled through the Dor::Config object:

Dor::Config.configure do
  # Basic DOR configuration
  fedora.url  = 'https://dor-dev.stanford.edu/fedora'
  solr.url = 'http://dor-dev.stanford.edu/solr'

  # If using SSL certificates
  ssl do
    cert_file = File.dirname(__FILE__) + '/../certs/dummy.crt'
    key_file  = File.dirname(__FILE__) + '/../certs/dummy.key'
    key_pass  = 'dummy'
  end

  # If using SURI service
  suri do
    mint_ids = true
    url      = 'http://some.suri.host:8080'
    id_namespace = 'druid'
    user     = 'suriuser'
    password = 'suripword'
  end
end

Values can also be configured individually:

Dor::Config.suri.mint_ids(true)

Console

You can start a pry session with the dor-services gem loaded by executing the script at:

./script/console

It will need the following in order to execute:

./config/dev_console_env.rb
./config/certs/robots-dor-dev.crt
./config/certs/robots-dor-dev.key

To copy them from a known source:

scp sul-lyberservices-dev.stanford.edu:common-accessioning.old/common-accessioning/shared/config/certs/robots-dor-dev.* config/certs/
scp sul-lyberservices-dev.stanford.edu:common-accessioning.old/common-accessioning/shared/config/environments/development.rb config/dev_console_env.rb

Console is located in the ./script subdirectory so that it does not get installed by clients of the gem.

Copyright

Copyright (c) 2014 Stanford University Library. See LICENSE for details.