-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from projecthydra-labs/parent_becomes_in
Fix 211 - Rework association names. drop parent_ and child_
- Loading branch information
Showing
13 changed files
with
341 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,30 +4,30 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'hydra/works/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "hydra-works" | ||
spec.name = 'hydra-works' | ||
spec.version = Hydra::Works::VERSION | ||
spec.authors = ["Justin Coyne"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Justin Coyne'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = %q{Fundamental repository data model for hydra} | ||
spec.description = %q{Using this data model should enable easy collaboration amongst hydra projects.} | ||
spec.homepage = "" | ||
spec.license = "APACHE2" | ||
spec.homepage = '' | ||
spec.license = 'APACHE2' | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency "hydra-pcdm", "~> 0.1" | ||
spec.add_dependency "hydra-derivatives", "~> 2.0" | ||
spec.add_dependency "activefedora-aggregation", "~> 0.4" | ||
spec.add_dependency "active-fedora", "~> 9.2" | ||
spec.add_dependency 'hydra-pcdm', '~> 0.2' | ||
spec.add_dependency 'hydra-derivatives', '~> 2.0' | ||
spec.add_dependency 'active-fedora', '>= 9.4.1' | ||
spec.add_dependency 'activefedora-aggregation', '~> 0.4' | ||
|
||
spec.add_development_dependency "bundler", "~> 1.7" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec-rails", "~> 3.1" | ||
spec.add_development_dependency "engine_cart", "~> 0" | ||
spec.add_development_dependency "sqlite3" | ||
spec.add_development_dependency 'bundler', '~> 1.7' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec-rails', '~> 3.1' | ||
spec.add_development_dependency 'engine_cart', '~> 0' | ||
spec.add_development_dependency 'sqlite3' | ||
spec.add_development_dependency 'jettywrapper', '>= 2.0.0' | ||
spec.add_development_dependency 'coveralls' | ||
spec.add_development_dependency 'rspec' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
module Hydra::Works | ||
# Do not allow aggregation of child objects | ||
module BlockChildObjects | ||
def child_objects=(_objects) | ||
fail StandardError, "method `child_objects=' not allowed for #{self}" | ||
def objects=(_objects) | ||
fail StandardError, "method `objects=' not allowed for #{self}" | ||
end | ||
|
||
def objects | ||
fail StandardError, "method `objects' not allowed for #{self}" | ||
end | ||
|
||
def child_objects=(new_objects) | ||
warn '[DEPRECATION] `child_objects=` is deprecated in Hydra::Works. Please use `objects=` instead. This has a target date for removal of 10-31-2015' | ||
self.objects = new_objects | ||
end | ||
|
||
def child_objects | ||
fail StandardError, "method `child_objects' not allowed for #{self}" | ||
warn '[DEPRECATION] `child_objects` is deprecated in Hydra::Works. Please use `objects` instead. This has a target date for removal of 10-31-2015' | ||
objects | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Hydra | ||
module Works | ||
VERSION = '0.1.0' | ||
VERSION = '0.2.0' | ||
end | ||
end |
Oops, something went wrong.