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

Backported changes from master to 6-7-stable for rubydora 1.7.1+ compatibility #362

Merged
merged 1 commit into from
Feb 26, 2014
Merged

Backported changes from master to 6-7-stable for rubydora 1.7.1+ compatibility #362

merged 1 commit into from
Feb 26, 2014

Conversation

dchandekstark
Copy link
Member

Commits commits af2b925 and 4b5f0e6 to 6-7-stable

Requires rubydora ~> 1.7.1
Fixes #354

@@ -4,10 +4,10 @@ class DigitalObject < Rubydora::DigitalObject
attr_accessor :original_class

module DatastreamBootstrap
def datastream_object_for dsid, ds_spec=nil
def datastream_object_for dsid, options={}, ds_spec=nil
Copy link
Member Author

Choose a reason for hiding this comment

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

@jcoyne @Cam156 Can we do this in 6.7.x? Technically it's a change to the public API, which, unless we want to break semver, we can't really fix in 6.x, right? If that's the case, I think we'll have to limit AF < 7.0 to rubydora 1.7.0.

Copy link
Member

Choose a reason for hiding this comment

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

I think its fine. Rubydora had that erasure for a long time. It was probably a bug that they didn't match.

Copy link
Member

Choose a reason for hiding this comment

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

For the record, rubydora had that erasure since 0.4.0

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, then, let's do this, so we can push out a patch release. :)

@jcoyne
Copy link
Member

jcoyne commented Feb 26, 2014

👍

@test_datastream.controlGroup = 'M'
@test_datastream.dsLocation = "http://example.com/test/content/abcd"
@test_datastream.validate_content_present.should be_false
@test_datastream.validate_content_present.should be_true
@test_datastream.dsLocation = nil
Copy link
Contributor

Choose a reason for hiding this comment

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

@dchandekstark Why are you setting the dislocation to nil here? I'm not familiar with rubydora internals but this seems weird.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Cam156 in rubydora 1.7.1+ if controlGroup is M and dsLocation is present then has_content? returns true. This was done b/c Fedora can pull in the content to a managed ds by the url provided in dsLocation. It's reset to nil in the test so it doesn't interfere with the following lines.

@cjcolvar
Copy link
Member

That test looks way better. 👍

jcoyne added a commit that referenced this pull request Feb 26, 2014
Backported changes from master to 6-7-stable for rubydora 1.7.1+ compatibility
@jcoyne jcoyne merged commit 7101434 into samvera:6-7-stable Feb 26, 2014
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