Skip to content

Commit 2f98a5d

Browse files
committed
Finish 3.1.0
2 parents ff9d21c + cc9812c commit 2f98a5d

15 files changed

+385
-331
lines changed

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
language: ruby
22
bundler_args: --without debug
33
script: "bundle exec rspec spec"
4-
before_install: "gem update --system"
5-
64
env:
75
- CI=true
86
gemfile:
97
- Gemfile
108
- Gemfile-pure
119
rvm:
12-
- 2.2
13-
- 2.3
1410
- 2.4
1511
- 2.5
16-
- jruby-9
17-
- rbx-3
12+
- 2.6
13+
- 2.7
14+
- jruby
1815
cache: bundler
1916
sudo: false
2017
matrix:
2118
allow_failures:
22-
- rvm: jruby-9
23-
- rvm: rbx-3
19+
- rvm: jruby
2420
dist: trusty

Gemfile

Lines changed: 2 additions & 3 deletions
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 "jruby-openssl", platforms: :jruby
98
gem "nokogiri", '~> 1.8'
109

1110
group :development, :test do
@@ -16,8 +15,8 @@ group :development, :test do
1615
gem "rdf-xsd", git: "https://github.com/ruby-rdf/rdf-xsd", branch: "develop"
1716
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
1817
gem "redcarpet", platform: :ruby
19-
gem 'simplecov', require: false, platform: :mri
20-
gem 'coveralls', require: false, platform: :mri
18+
gem 'simplecov', platforms: :mri
19+
gem 'coveralls', '~> 0.8', platforms: :mri
2120
end
2221

2322
group :debug do

Gemfile-pure

Lines changed: 2 additions & 4 deletions
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 "jruby-openssl", platforms: :jruby
98
#gem "nokogiri", '~> 1.8'
109

1110
group :development, :test do
@@ -16,12 +15,11 @@ group :development, :test do
1615
gem "rdf-xsd", git: "https://github.com/ruby-rdf/rdf-xsd", branch: "develop"
1716
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
1817
gem "redcarpet", platform: :ruby
19-
gem 'simplecov', require: false, platform: :mri
20-
gem 'coveralls', require: false, platform: :mri
18+
gem 'simplecov', platforms: :mri
19+
gem 'coveralls', '~> 0.8', platforms: :mri
2120
end
2221

2322
group :debug do
2423
gem 'shotgun'
25-
gem "wirble"
2624
gem "byebug", platforms: :mri
2725
end

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,20 @@ This is a [Ruby][] implementation of a [SPARQL][] client for [RDF.rb][].
3030
require 'sparql/client'
3131
sparql = SPARQL::Client.new("http://dbpedia.org/sparql")
3232
```
33+
34+
### Querying a remote SPARQL endpoint with a custom User-Agent
35+
By default, SPARQL::Client adds a `User-Agent` field to requests, but applications may choose to provide their own, using the `headers` option:
36+
37+
```ruby
38+
require 'sparql/client'
39+
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", headers: {'User-Agent' => 'MyBotName'})
40+
```
41+
3342
### Querying a remote SPARQL endpoint with a specified default graph
3443

3544
```ruby
3645
require 'sparql/client'
37-
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", { :graph => "http://dbpedia.org" })
46+
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", { graph: "http://dbpedia.org" })
3847
```
3948

4049

@@ -114,11 +123,11 @@ sparql.delete_data(data)
114123

115124
## Dependencies
116125

117-
* [Ruby](http://ruby-lang.org/) (>= 2.2.2)
118-
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.0)
119-
* [Net::HTTP::Persistent](http://rubygems.org/gems/net-http-persistent) (>= 1.4)
120-
* Soft dependency on [SPARQL](http://rubygems.org/gems/sparql) (~> 3.0)
121-
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.7)
126+
* [Ruby](http://ruby-lang.org/) (>= 2.4)
127+
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.1)
128+
* [Net::HTTP::Persistent](http://rubygems.org/gems/net-http-persistent) (~> 3.1)
129+
* Soft dependency on [SPARQL](http://rubygems.org/gems/sparql) (~> 3.1)
130+
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.10)
122131

123132
## Installation
124133

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.1
1+
3.1.0

0 commit comments

Comments
 (0)