Skip to content

Commit

Permalink
Finish 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jul 23, 2023
2 parents 9b10cef + 0b257ae commit 79670ad
Show file tree
Hide file tree
Showing 10 changed files with 173 additions and 64 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby:
- 2.6
- 2.7
- "3.0"
- 3.1
- ruby-head
- jruby
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
gemfile:
- Gemfile
- Gemfile-pure
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -42,7 +36,7 @@ jobs:
- name: Run tests
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2
if: ${{ matrix.ruby == '3.0' && matrix.gemfile == 'Gemfile' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Update gh-pages with docs
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gemspec
gem 'rdf', git: "https://github.com/ruby-rdf/rdf", branch: "develop"
gem 'rdf-aggregate-repo', git: "https://github.com/ruby-rdf/rdf-aggregate-repo", branch: "develop"
gem 'sparql', git: "https://github.com/ruby-rdf/sparql", branch: "develop"
gem "nokogiri", '~> 1.10'
gem "nokogiri", '~> 1.13', '>= 1.13.4'

group :development, :test do
gem 'ebnf', git: "https://github.com/dryruby/ebnf", branch: "develop"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a [Ruby][] implementation of a [SPARQL][] client for [RDF.rb][].

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

[![Gem Version](https://badge.fury.io/rb/sparql-client.png)](https://badge.fury.io/rb/sparql-client)
[![Gem Version](https://badge.fury.io/rb/sparql-client.svg)](https://badge.fury.io/rb/sparql-client)
[![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)
[![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)
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.1
3.2.2
4 changes: 2 additions & 2 deletions lib/sparql/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def self.parse_xml_bindings(xml, nodes = {}, library: :nokogiri)
result.elements.each do |binding|
name = binding.attr('name').to_sym
value = binding.elements.first
row[name] = parse_xml_value(value, nodes)
row[name] = parse_xml_value(value, nodes) if value
end
RDF::Query::Solution.new(row)
end
Expand All @@ -563,7 +563,7 @@ def self.parse_xml_bindings(xml, nodes = {}, library: :nokogiri)
result.elements.each do |binding|
name = binding.attributes['name'].to_sym
value = binding.select { |node| node.kind_of?(::REXML::Element) }.first
row[name] = parse_xml_value(value, nodes)
row[name] = parse_xml_value(value, nodes) if value
end
RDF::Query::Solution.new(row)
end
Expand Down
Loading

0 comments on commit 79670ad

Please sign in to comment.