Skip to content

Commit

Permalink
Finish 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 16, 2019
2 parents ff9d21c + cc9812c commit 2f98a5d
Show file tree
Hide file tree
Showing 15 changed files with 385 additions and 331 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
@@ -1,24 +1,20 @@
language: ruby
bundler_args: --without debug
script: "bundle exec rspec spec"
before_install: "gem update --system"

env:
- CI=true
gemfile:
- Gemfile
- Gemfile-pure
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
- jruby-9
- rbx-3
- 2.6
- 2.7
- jruby
cache: bundler
sudo: false
matrix:
allow_failures:
- rvm: jruby-9
- rvm: rbx-3
- rvm: jruby
dist: trusty
5 changes: 2 additions & 3 deletions Gemfile
Expand Up @@ -5,7 +5,6 @@ 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 "jruby-openssl", platforms: :jruby
gem "nokogiri", '~> 1.8'

group :development, :test do
Expand All @@ -16,8 +15,8 @@ group :development, :test do
gem "rdf-xsd", git: "https://github.com/ruby-rdf/rdf-xsd", branch: "develop"
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
gem "redcarpet", platform: :ruby
gem 'simplecov', require: false, platform: :mri
gem 'coveralls', require: false, platform: :mri
gem 'simplecov', platforms: :mri
gem 'coveralls', '~> 0.8', platforms: :mri
end

group :debug do
Expand Down
6 changes: 2 additions & 4 deletions Gemfile-pure
Expand Up @@ -5,7 +5,6 @@ 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 "jruby-openssl", platforms: :jruby
#gem "nokogiri", '~> 1.8'

group :development, :test do
Expand All @@ -16,12 +15,11 @@ group :development, :test do
gem "rdf-xsd", git: "https://github.com/ruby-rdf/rdf-xsd", branch: "develop"
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
gem "redcarpet", platform: :ruby
gem 'simplecov', require: false, platform: :mri
gem 'coveralls', require: false, platform: :mri
gem 'simplecov', platforms: :mri
gem 'coveralls', '~> 0.8', platforms: :mri
end

group :debug do
gem 'shotgun'
gem "wirble"
gem "byebug", platforms: :mri
end
21 changes: 15 additions & 6 deletions README.md
Expand Up @@ -30,11 +30,20 @@ This is a [Ruby][] implementation of a [SPARQL][] client for [RDF.rb][].
require 'sparql/client'
sparql = SPARQL::Client.new("http://dbpedia.org/sparql")
```

### Querying a remote SPARQL endpoint with a custom User-Agent
By default, SPARQL::Client adds a `User-Agent` field to requests, but applications may choose to provide their own, using the `headers` option:

```ruby
require 'sparql/client'
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", headers: {'User-Agent' => 'MyBotName'})
```

### Querying a remote SPARQL endpoint with a specified default graph

```ruby
require 'sparql/client'
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", { :graph => "http://dbpedia.org" })
sparql = SPARQL::Client.new("http://dbpedia.org/sparql", { graph: "http://dbpedia.org" })
```


Expand Down Expand Up @@ -114,11 +123,11 @@ sparql.delete_data(data)

## Dependencies

* [Ruby](http://ruby-lang.org/) (>= 2.2.2)
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.0)
* [Net::HTTP::Persistent](http://rubygems.org/gems/net-http-persistent) (>= 1.4)
* Soft dependency on [SPARQL](http://rubygems.org/gems/sparql) (~> 3.0)
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.7)
* [Ruby](http://ruby-lang.org/) (>= 2.4)
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.1)
* [Net::HTTP::Persistent](http://rubygems.org/gems/net-http-persistent) (~> 3.1)
* Soft dependency on [SPARQL](http://rubygems.org/gems/sparql) (~> 3.1)
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.10)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.0.1
3.1.0

0 comments on commit 2f98a5d

Please sign in to comment.