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

Allow both dry-validation 0.x and 1.x #4379

Merged
merged 2 commits into from Jun 22, 2020
Merged

Allow both dry-validation 0.x and 1.x #4379

merged 2 commits into from Jun 22, 2020

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Jun 19, 2020

This backports the changes done in master in 5d8819f but tries to avoid changing the interface through the use of a class method #call and a Dry::Validation::Result wrapping class using SimpleDelegator that defines #messages.

This allows downstream applications to upgrade to dry-validation 1.x which is necessary if the app uses the config gem and wants to use ruby 2.7. This unblocks Hyku from upgrading to Hyrax 2.7.2 and ruby 2.7 (see samvera/hyku#1630).

I ran the tests for WorkflowSchema and WorkflowImporter locally with dry-validation 0.13.3 (and dry-struct 0.6.0) as well as dry-validation 1.5.1 (and dry-struct 1.3.0).

@samvera/hyrax-code-reviewers

This backports the changes done in master in 5d8819f but tries to avoid changing the interface through the use of a class method #call and a Dry::Validation::Result wrapping class using SimpleDelegator that defines #messages.
@no-reply
Copy link
Member

this looks a bit like it might have broken due to an AF release, so i'm looking into that.

I ran into this issue when testing where ebnf 2.0 was released on Friday and was getting pulled in.  The only version of linkeddata which resolves then is 1.1.1 which has compatibility issues with rdf 3.x.  If ebnf is backed down to 1.x then I believe the correct version of linkeddata will be used but specifying the version of linkeddata better describes the true dependency requirement.
@cjcolvar
Copy link
Member Author

Waiting now for #4380 to be merged and this to be rebased on top of it.

@jeremyf jeremyf merged commit 0c894e4 into 2.x-stable Jun 22, 2020
@jeremyf jeremyf deleted the dry-validation-1 branch June 22, 2020 16:51
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.

None yet

3 participants