Skip to content

Commit de287a3

Browse files
committed
Finish 3.1.3
2 parents fbac9be + 8d00591 commit de287a3

File tree

11 files changed

+12
-21
lines changed

11 files changed

+12
-21
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: RoxdgPedMabKaRMN2QPrPD2pWVbaicMW1

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- 2.5
2424
- 2.6
2525
- 2.7
26-
#- 3.0 # Commented out until net-http-persistent is updaated
27-
#- ruby-head # Commented out until net-http-persistent is updaated
26+
- 3.0
27+
- ruby-head
2828
- jruby
2929
steps:
3030
- name: Clone repository

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ group :development, :test do
2424
gem 'erubis'
2525
gem 'simplecov', platforms: :mri
2626
gem 'coveralls', '~> 0.8', platforms: :mri
27-
gem 'awesome_print', github: 'akshaymohite/awesome_print'
2827
end

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a [Ruby][] implementation of [LD Patch][] for [RDF.rb][].
44

55
[![Gem Version](https://badge.fury.io/rb/ld-patch.png)](https://badge.fury.io/rb/ld-patch)
66
[![Build Status](https://github.com/ruby-rdf/ld-patch/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/ld-patch/actions?query=workflow%3ACI)
7-
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/github/ruby-rdf/ld-patch)
7+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/ld-patch?branch=develop)
88
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
99

1010
## Description

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
3.1.3

etc/doap.ttl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
doap:homepage <https://ruby-rdf.github.com/ld-patch> ;
1515
doap:license <https://unlicense.org/1.0/> ;
1616
doap:shortdesc "W3C Linked Data Patch Format for RDF.rb."@en ;
17-
doap:description """
18-
Implements the W3C Linked Data Patch Format and operations for RDF.rb.
19-
Makes use of the SPARQL gem for performing updates
20-
"""@en ;
17+
doap:description "Implements the W3C Linked Data Patch Format and operations for RDF.rb."@en ;
2118
doap:created "2015-08-23"^^xsd:date ;
2219
doap:programming-language "Ruby" ;
2320
doap:implements <http://www.w3.org/TR/ldpatch/> ;
@@ -31,11 +28,5 @@
3128
doap:maintainer <https://greggkellogg.net/foaf#me> ;
3229
doap:documenter <https://greggkellogg.net/foaf#me> ;
3330
foaf:maker <https://greggkellogg.net/foaf#me> ;
34-
dc:title "LD::Patch" ;
35-
dc:description """
36-
Implements the W3C Linked Data Patch Format and operations for RDF.rb.
37-
Makes use of the SPARQL gem for performing updates
38-
"""@en ;
39-
dc:date "2015-08-23"^^xsd:date ;
4031
dc:creator <https://greggkellogg.net/foaf#me> ;
4132
dc:isPartOf <https://rubygems.org/gems/rdf> .

lib/ld/patch/algebra/cut.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def execute(queryable, options = {})
4343
end
4444

4545
# Also delete triples having var in the object position
46-
queryable.query(object: var).each do |statement|
46+
queryable.query({object: var}).each do |statement|
4747
queryable.delete(statement)
4848
cut_count += 1
4949
end

lib/ld/patch/algebra/path.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def execute(queryable, options = {})
5252
case op
5353
when RDF::URI
5454
terms.map do |subject|
55-
queryable.query(subject: subject, predicate: op).map(&:object)
55+
queryable.query({subject: subject, predicate: op}).map(&:object)
5656
end.flatten
5757
when SPARQL::Algebra::Query
5858
# Get path solutions for each term for op
59-
op.execute(queryable, options.merge(terms: terms)).map do |soln|
59+
op.execute(queryable, **options.merge(terms: terms)).map do |soln|
6060
soln.path
6161
end.flatten
6262
else

lib/ld/patch/algebra/prefix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Prefix < SPARQL::Algebra::Operator::Binary
3131
# @see http://www.w3.org/TR/rdf-sparql-query/#sparqlAlgebra
3232
def execute(queryable, options = {}, &block)
3333
debug(options) {"Prefix"}
34-
@solutions = queryable.query(operands.last, options.merge(depth: options[:depth].to_i + 1), &block)
34+
@solutions = queryable.query(operands.last, **options.merge(depth: options[:depth].to_i + 1), &block)
3535
end
3636

3737
##

lib/ld/patch/algebra/reverse.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def execute(queryable, options = {})
3030
terms = Array(options.fetch(:terms))
3131

3232
results = terms.map do |object|
33-
queryable.query(object: object, predicate: op).map(&:subject)
33+
queryable.query({object: object, predicate: op}).map(&:subject)
3434
end.flatten
3535

3636
RDF::Query::Solutions.new(results.map {|t| RDF::Query::Solution.new(path: t)})

0 commit comments

Comments
 (0)