Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store derivatives on local file system instead of in repo. #194

Merged
merged 1 commit into from
Aug 24, 2015

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Aug 22, 2015

Fixes #188

@@ -13,10 +13,18 @@ def default_content_path
# Render the 404 page if the file doesn't exist.
# Otherwise renders the file.
def show
if file
unless file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're already doing a type check on file in the case statement, can you move this into the case statement?

case file
when ActiveFedora::File
#...
when nil
#...
else
#...
end

@mjgiarlo
Copy link
Member

Also, pls rebase!

rather than in Fedora. This is much faster than Fedora and avoids the
problem of differentiating files when there are multiple access copies
for different purposes (e.g. webm vs mp4, mp3 vs ogg) sharing a use predicate.
Fixes #188
mjgiarlo added a commit that referenced this pull request Aug 24, 2015
Store derivatives on local file system instead of in repo.
@mjgiarlo mjgiarlo merged commit e0782bb into master Aug 24, 2015
@mjgiarlo mjgiarlo deleted the store_derivatives_on_disk branch August 24, 2015 16:42
kevinreiss added a commit that referenced this pull request Aug 31, 2015
Update Derivative spec to look for filesystem derivatives. Ref #194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants