Skip to content

Commit

Permalink
Finish 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 20, 2020
2 parents 19eff8a + a80394e commit 37e1f07
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Expand Up @@ -28,9 +28,11 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to manage devel
enough, be assured we will eventually add you in there.
* Do note that in order for us to merge any non-trivial changes (as a rule
of thumb, additions larger than about 15 lines of code), we need an
explicit [public domain dedication][PDD] on record from you.
explicit [public domain dedication][PDD] on record from you,
which you will be asked to agree to on the first commit to a repo within the organization.
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.

[YARD]: https://yardoc.org/
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
[PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
[pr]: https://github.com/ruby-rdf/rdf-aggregate-repo/compare/
[PDD]: https://unlicense.org/#unlicensing-contributions
[pr]: https://github.com/ruby-rdf/rdf/compare/
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -44,7 +44,9 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
enough, be assured we will eventually add you in there.
* Do note that in order for us to merge any non-trivial changes (as a rule
of thumb, additions larger than about 15 lines of code), we need an
explicit [public domain dedication][PDD] on record from you.
explicit [public domain dedication][PDD] on record from you,
which you will be asked to agree to on the first commit to a repo within the organization.
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.

## License

Expand All @@ -54,4 +56,4 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
[RDF.rb]: https://ruby-rdf.github.com/
[YARD]: https://yardoc.org/
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
[PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
[PDD]: https://unlicense.org/#unlicensing-contributions
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.1.0
3.1.1
2 changes: 1 addition & 1 deletion etc/doap.ttl
Expand Up @@ -8,7 +8,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<> a doap:Project ;
doap:name "RDF::N3" ;
doap:name "RDF::OrderedRepo" ;
doap:homepage <https://github.com/ruby-rdf/rdf-ordered-repo> ;
doap:license <https://unlicense.org/1.0/> ;
doap:shortdesc "An order-preserving repository for RDF.rb."@en ;
Expand Down
2 changes: 1 addition & 1 deletion lib/rdf/ordered_repo.rb
Expand Up @@ -280,7 +280,7 @@ def delete_from(data, statement)
g = DEFAULT_GRAPH unless supports?(:graph_name)
g ||= DEFAULT_GRAPH

os = data[g][s][p].dup.delete(o)
os = data[g][s][p].dup.delete_if {|k,v| k == o}
ps = os.empty? ? data[g][s].dup.delete_if {|k,v| k == p} : data[g][s].merge(p => os)
ss = ps.empty? ? data[g].dup.delete_if {|k,v| k == s} : data[g].merge(s => ps)
return ss.empty? ? data.dup.delete_if {|k,v| k == g} : data.merge(g => ss)
Expand Down

0 comments on commit 37e1f07

Please sign in to comment.