-
Notifications
You must be signed in to change notification settings - Fork 63
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
Remove the explicit superclass from monkey-patch #1472
Conversation
This allows the monkey-patch to work with either rdf <= 3.2.4 or rdf >= 3.2.5 The monkey-patch is necessary to maintain the current behavior of nanosecond precision in dates Failing tests in hyrax revealed this so tests were added here to test this functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this to work!
it 'time zone must have semicolin to be a cannonical XMLSchema#dateTime' do | ||
expect(triple.to_s).to match(/\+01:00/) | ||
end | ||
|
||
context 'nanoseconds' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice coverage of possible conditions.
# TODO: Figure out how to contribute something upstream to avoid monkey-patching | ||
module RDF | ||
class Literal | ||
class DateTime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see the suggestion to remove < Literal
worked.
I'm running hyrax's tests against this branch: samvera/hyrax#5495 |
All of Hyrax's tests passed and I verified that the build was using rdf 3.2.5 for the ruby 2.6 and 2.7 builds and rdf < 3.2 for the ruby 2.5 build. |
Sorry, this doesn't fix #1471 quite yet, but when this gets into a release I'll work on backporting it and doing a 12.x release. |
Fixes #1466 an d #1471
This allows the monkey-patch to work with either rdf <= 3.2.4 or rdf >= 3.2.5
The monkey-patch is necessary to maintain the current behavior of nanosecond precision in dates
Failing tests in hyrax revealed this so tests were added here to test this functionality
Note that rdf 3.2.0+ require ruby >= 2.6 so the ruby 2.5 circleci builds should be testing with rdf < 3.2.5 while the ruby 2.6 and 2.7 builds should be testing with rdf = 3.2.5.