Skip to content

Commit 79670ad

Browse files
committed
Finish 3.2.2
2 parents 9b10cef + 0b257ae commit 79670ad

File tree

10 files changed

+173
-64
lines changed

10 files changed

+173
-64
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
ruby:
24-
- 2.6
25-
- 2.7
26-
- "3.0"
27-
- 3.1
28-
- ruby-head
29-
- jruby
23+
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
3024
gemfile:
3125
- Gemfile
3226
- Gemfile-pure
3327
steps:
3428
- name: Clone repository
35-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3630
- name: Set up Ruby
3731
uses: ruby/setup-ruby@v1
3832
with:
@@ -42,7 +36,7 @@ jobs:
4236
- name: Run tests
4337
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
4438
- name: Coveralls GitHub Action
45-
uses: coverallsapp/github-action@v1.1.2
39+
uses: coverallsapp/github-action@v2
4640
if: ${{ matrix.ruby == '3.0' && matrix.gemfile == 'Gemfile' }}
4741
with:
4842
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Update gh-pages with docs
1111
steps:
1212
- name: Clone repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Set up Ruby
1515
uses: ruby/setup-ruby@v1
1616
with:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gemspec
55
gem 'rdf', git: "https://github.com/ruby-rdf/rdf", branch: "develop"
66
gem 'rdf-aggregate-repo', git: "https://github.com/ruby-rdf/rdf-aggregate-repo", branch: "develop"
77
gem 'sparql', git: "https://github.com/ruby-rdf/sparql", branch: "develop"
8-
gem "nokogiri", '~> 1.10'
8+
gem "nokogiri", '~> 1.13', '>= 1.13.4'
99

1010
group :development, :test do
1111
gem 'ebnf', git: "https://github.com/dryruby/ebnf", branch: "develop"

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 a [SPARQL][] client for [RDF.rb][].
44

55
* <https://ruby-rdf.github.io/sparql-client/>
66

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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.1
1+
3.2.2

lib/sparql/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def self.parse_xml_bindings(xml, nodes = {}, library: :nokogiri)
540540
result.elements.each do |binding|
541541
name = binding.attr('name').to_sym
542542
value = binding.elements.first
543-
row[name] = parse_xml_value(value, nodes)
543+
row[name] = parse_xml_value(value, nodes) if value
544544
end
545545
RDF::Query::Solution.new(row)
546546
end
@@ -563,7 +563,7 @@ def self.parse_xml_bindings(xml, nodes = {}, library: :nokogiri)
563563
result.elements.each do |binding|
564564
name = binding.attributes['name'].to_sym
565565
value = binding.select { |node| node.kind_of?(::REXML::Element) }.first
566-
row[name] = parse_xml_value(value, nodes)
566+
row[name] = parse_xml_value(value, nodes) if value
567567
end
568568
RDF::Query::Solution.new(row)
569569
end

0 commit comments

Comments
 (0)