-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/changesets #44
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
Conversation
8eaf9e3 to
a137533
Compare
Recent changes expand changesets to be applicable to any mutable. Responsibility for applying the changeset atomically lives within this method in mutable, which can be called directly or through `Changeset#apply`.
Not every `Transaction` needs to keep an up-to-date `Changeset` in buffer. This change loosens the requirements. some of the tests are removed to the `rdf` test suite in `spec/transaction_spec.rb`.
`RDF::Transaction` subclasses will generally depend upon a specific `RDF::Repository`. It's best to expect the user of the shared examples to provide the repository class. This follows the pattern seen in the `RDF::Enumerable` examples and others.
a137533 to
d8498b0
Compare
|
This depends on ruby-rdf/rdf#250. One of the two will need to be merged before the other for CI to pass. |
|
I think that removing Enumerable from Queryable is something that should happen to 2.0, if at all, as it's a breaking change. If we leave it to 2.1, we'd be breaking semantic versioning. Most uses of Queryable methods (e.g.,
OTOH, for people to be able to use a Transaction consistently, it probably has to be Enumerable. We should probably go with your second solution and implement |
|
Otherwise, I think this is probably good to go. |
👍. If Transactions become |
d8498b0 to
9644ab9
Compare
This makes changes relevant for #250.