- Implement a Rails Engine with
engine_namedefined - Expect host application to use
mountif they want to inherit routes
Example:
module Hydra##Simple Subject
BuiltWorkPlace
CulturalContext
Function
GenreForm
Geographic
Iconography
ScientificName
StylePeriod
| <mads:Topic> | |
| <mads:authoritativeLabel>Cosmology</mads:authoritativeLabel> | |
| <mads:elementList rdf:parseType="Collection"> | |
| <mads:TopicElement> | |
| <mads:elementValue>Cosmology</mads:elementValue> | |
| </mads:TopicElement> | |
| </mads:elementList> | |
| </mads:Topic> | |
| <mads:Temporal> |
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.13' | |
| gem "active-fedora", :git => "git://github.com/projecthydra/active_fedora.git", :branch => "rdf_nested_attributes" |
| makes_derivatives_of :content, when: :mime_type, is_one_of: 'application/pdf', | |
| derivatives: { :thumb => "100x100>" } | |
| makes_derivatives_of :content, when: :mime_type, is_one_of: 'audio/wav', | |
| derivatives: { :mp3 => {format: 'mp3'}, :ogg => {format: 'ogg'} }, processors: :audio | |
| # -g 30 enforces keyframe generation every second (30fps) | |
| # -b:v is the video bitrate | |
| # -acodec is the audio codec | |
| size_attributes = "-s 320x240" |
| # | |
| # Custom processActions | |
| # | |
| # Prepend to the default processQueue: | |
| $.blueimp.fileupload.prototype.options.processQueue.unshift( | |
| { | |
| action: 'prepS3Upload', | |
| # Use the action as prefix for the "@" options: | |
| prefix: true, | |
| fileTypes: '@', |
| # spec/support/matchers/api_responses.rb | |
| # | |
| # RSpec matchers for API default JSON responses. | |
| # Creates a matcher like respond_forbidden or respond_not_found corresponding to each of the Api::V1.default_responses | |
| # Accepts optional overrides to the expected response body. | |
| # @example Override the description expected in the JSON body of a :forbidden response | |
| # expect(response).to respond_forbidden(description:"You can't create for that identity") | |
| ::Api::V1.default_responses.each_pair do |response_type,default_response_body| | |
| RSpec::Matchers.define "respond_#{response_type.to_s}".to_sym do |expectation_options| |