Skip to content

Commit ee36569

Browse files
committed
Finish 3.3.0
2 parents 79670ad + 58bc635 commit ee36569

File tree

7 files changed

+23
-24
lines changed

7 files changed

+23
-24
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
23+
ruby: ['3.0', 3.1, 3.2, ruby-head, jruby]
2424
gemfile:
2525
- Gemfile
2626
- Gemfile-pure
@@ -37,6 +37,6 @@ jobs:
3737
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
3838
- name: Coveralls GitHub Action
3939
uses: coverallsapp/github-action@v2
40-
if: ${{ matrix.ruby == '3.0' && matrix.gemfile == 'Gemfile' }}
40+
if: ${{ matrix.ruby == '3.2' && matrix.gemfile == 'Gemfile' }}
4141
with:
4242
github-token: ${{ secrets.GITHUB_TOKEN }}

Gemfile

Lines changed: 2 additions & 2 deletions
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.13', '>= 1.13.4'
8+
gem "nokogiri", '~> 1.15', '>= 1.15.4'
99

1010
group :development, :test do
1111
gem 'ebnf', git: "https://github.com/dryruby/ebnf", branch: "develop"
@@ -15,7 +15,7 @@ group :development, :test do
1515
gem "rdf-xsd", git: "https://github.com/ruby-rdf/rdf-xsd", branch: "develop"
1616
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
1717
gem "redcarpet", platform: :ruby
18-
gem 'simplecov', '~> 0.21', platforms: :mri
18+
gem 'simplecov', '~> 0.22', platforms: :mri
1919
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
2020
end
2121

Gemfile-pure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ 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.8'
98

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ sparql.delete_data(data)
124124

125125
## Dependencies
126126

127-
* [Ruby](https://ruby-lang.org/) (>= 2.6)
128-
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
127+
* [Ruby](https://ruby-lang.org/) (>= 3.0)
128+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)
129129
* [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent) (~> 4.0, >= 4.0.1)
130-
* Soft dependency on [SPARQL](https://rubygems.org/gems/sparql) (~> 3.2)
131-
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.12)
130+
* Soft dependency on [SPARQL](https://rubygems.org/gems/sparql) (~> 3.3)
131+
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.15)
132132

133133
## Installation
134134

VERSION

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

sparql-client.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Gem::Specification.new do |gem|
2929
gem.bindir = %q(bin)
3030
gem.require_paths = %w(lib)
3131

32-
gem.required_ruby_version = '>= 2.6'
32+
gem.required_ruby_version = '>= 3.0'
3333
gem.requirements = []
34-
gem.add_runtime_dependency 'rdf', '~> 3.2', '>= 3.2.11'
34+
gem.add_runtime_dependency 'rdf', '~> 3.3'
3535
gem.add_runtime_dependency 'net-http-persistent', '~> 4.0', '>= 4.0.2'
36-
gem.add_development_dependency 'rdf-spec', '~> 3.2'
37-
gem.add_development_dependency 'sparql', '~> 3.2'
36+
gem.add_development_dependency 'rdf-spec', '~> 3.3'
37+
gem.add_development_dependency 'sparql', '~> 3.3'
3838
gem.add_development_dependency 'rspec', '~> 3.12'
3939
gem.add_development_dependency 'rspec-its', '~> 1.3'
40-
gem.add_development_dependency 'webmock', '~> 3.14'
40+
gem.add_development_dependency 'webmock', '~> 3.19'
4141
gem.add_development_dependency 'yard' , '~> 0.9'
4242

4343
gem.post_install_message = nil

spec/client_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def response(header)
5858

5959
it "handles successful response with plain header" do
6060
expect(subject).to receive(:request).and_yield response('text/plain')
61-
expect(RDF::Reader).to receive(:for).with(content_type: 'text/plain').and_call_original
62-
subject.query(query)
61+
expect(RDF::Reader).to receive(:for).with(content_type: 'application/n-triples').and_call_original
62+
subject.query(query, content_type: 'application/n-triples')
6363
end
6464

6565
it "handles successful response with boolean header" do
@@ -109,17 +109,17 @@ def response(header)
109109
end
110110

111111
it "handles successful response with custom headers" do
112-
expect(subject).to receive(:request).with(anything, {"Authorization" => "Basic XXX=="}).
113-
and_yield response('text/plain')
114-
subject.query(query, headers: {"Authorization" => "Basic XXX=="})
112+
expect(subject).to receive(:request).with(anything, {"Authorization" => "Basic XXX==", "Content-Type" => "application/n-triples"}).
113+
and_yield response('application/n-triples')
114+
subject.query(query, headers: {"Authorization" => "Basic XXX==", "Content-Type" => "application/n-triples"})
115115
end
116116

117117
it "handles successful response with initial custom headers" do
118118
options = {headers: {"Authorization" => "Basic XXX=="}, method: :get}
119119
client = SPARQL::Client.new('http://data.linkedmdb.org/sparql', **options)
120-
client.instance_variable_set :@http, double(request: response('text/plain'))
120+
client.instance_variable_set :@http, double(request: response('application/n-triples'))
121121
expect(Net::HTTP::Get).to receive(:new).with(anything, hash_including(options[:headers]))
122-
client.query(query)
122+
client.query(query, content_type: 'application/n-triples')
123123
end
124124

125125
it "enables overriding the http method" do
@@ -194,15 +194,15 @@ def response(header)
194194
to_return(body: '', status: 200, headers: { 'Content-Type' => 'application/n-triples'})
195195
subject.query(construct_query)
196196
expect(WebMock).to have_requested(:post, "http://data.linkedmdb.org/sparql").
197-
with(headers: {'Accept'=>'application/n-triples, text/plain, */*;q=0.1'})
197+
with(headers: {'Accept'=>'application/n-triples, */*;q=0.1'})
198198
end
199199

200200
it "uses application/n-triples for DESCRIBE" do
201201
WebMock.stub_request(:any, 'http://data.linkedmdb.org/sparql').
202202
to_return(body: '', status: 200, headers: { 'Content-Type' => 'application/n-triples'})
203203
subject.query(describe_query)
204204
expect(WebMock).to have_requested(:post, "http://data.linkedmdb.org/sparql").
205-
with(headers: {'Accept'=>'application/n-triples, text/plain, */*;q=0.1'})
205+
with(headers: {'Accept'=>'application/n-triples, */*;q=0.1'})
206206
end
207207

208208
it "uses application/sparql-results+json for SELECT" do

0 commit comments

Comments
 (0)