Skip to content

Commit 46ab36d

Browse files
committed
Finish 3.2.0
2 parents 918f701 + 20528c3 commit 46ab36d

File tree

12 files changed

+48
-80
lines changed

12 files changed

+48
-80
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: 9oh3FPpJIPhz4dxqpNINA5HWXXdFwuW32

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
env:
2424
CI: true
25+
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') }}
2526
strategy:
2627
fail-fast: false
2728
matrix:
2829
ruby:
29-
- 2.4
30-
- 2.5
3130
- 2.6
3231
- 2.7
3332
- 3.0
33+
- 3.1
3434
- ruby-head
3535
- jruby
3636
steps:
@@ -43,5 +43,9 @@ jobs:
4343
- name: Install dependencies
4444
run: bundle install --jobs 4 --retry 3
4545
- name: Run tests
46-
run: bundle exec rspec spec
47-
46+
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
47+
- name: Coveralls GitHub Action
48+
uses: coverallsapp/[email protected]
49+
if: "matrix.ruby == '3.0'"
50+
with:
51+
github-token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ group :debug do
1010
end
1111

1212
group :development, :test do
13-
gem 'simplecov', require: false, platforms: :mri
14-
gem 'coveralls', require: false, platforms: :mri
13+
gem 'simplecov', '~> 0.21', platforms: :mri
14+
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
1515
end

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ and shared examples for Ruby projects that use RDF.rb and RSpec.
55

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

1111
## Documentation
@@ -30,8 +30,8 @@ Note that in most cases, if the instance is empty and mutable, the appropriate s
3030

3131
## Dependencies
3232

33-
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.0)
34-
* [RSpec](https://rubygems.org/gems/rspec) (~> 3.7)
33+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
34+
* [RSpec](https://rubygems.org/gems/rspec) (~> 3.10)
3535

3636
## Installation
3737

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
3.2.0

etc/doap.ttl

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,28 @@
1-
@base <https://rubygems.org/gems/rdf> .
1+
@base <https://rubygems.org/gems/rdf-spec> .
22
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix dc: <http://purl.org/dc/terms/> .
55
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
66
@prefix doap: <http://usefulinc.com/ns/doap#> .
77

88
<> a doap:Project ;
9-
doap:name "RDF.rb" ;
10-
doap:homepage <https://rubygems.org/gems/rdf> ;
9+
doap:name "RDF::Spec" ;
10+
doap:homepage <https://rubygems.org/gems/rdf-spec> ;
1111
doap:license <https://unlicense.org/1.0/> ;
12-
doap:shortdesc "A Ruby library for working with Resource Description Framework (RDF) data."@en ;
13-
doap:description "RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data."@en ;
14-
doap:created "2007-10-23" ;
12+
doap:shortdesc "RSpec extensions for RDF.rb."@en ;
13+
doap:description "RDF.rb extension that provides RSpec matchers and shared examples for RDF objects."@en ;
14+
doap:created "2007-02-03" ;
1515
doap:programming-language "Ruby" ;
1616
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
1717
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
18-
doap:implements <http://www.w3.org/TR/rdf11-concepts/>,
19-
<http://www.w3.org/TR/n-quads/>,
20-
<http://www.w3.org/TR/n-triples/> ;
21-
doap:download-page <https://rubygems.org/gems/rdf/> ;
22-
doap:bug-database <https://github.com/ruby-rdf/rdf/issues> ;
18+
doap:download-page <> ;
19+
doap:bug-database <https://github.com/ruby-rdf/rdf-spec/issues> ;
2320
doap:blog <https://ar.to/>, <https://greggkellogg.net/> ;
2421
doap:developer <https://ar.to/#self>, <https://bhuga.net/#ben>, <https://greggkellogg.net/foaf#me> ;
2522
doap:maintainer <https://greggkellogg.net/foaf#me> ;
26-
doap:documenter <https://ar.to/#self>, <https://bhuga.net/#ben>, <https://greggkellogg.net/foaf#me> ;
27-
doap:helper [a foaf:Person ;
28-
foaf:name "Călin Ardelean" ;
29-
foaf:mbox_sha1sum "274bd18402fc773ffc0606996aa1fb90b603aa29"] ;
30-
doap:helper [a foaf:Person ;
31-
foaf:name "Danny Gagne" ;
32-
foaf:mbox_sha1sum "6de43e9cf7de53427fea9765706703e4d957c17b"] ;
33-
doap:helper [a foaf:Person ;
34-
foaf:name "Joey Geiger" ;
35-
foaf:mbox_sha1sum "f412d743150d7b27b8468d56e69ca147917ea6fc"] ;
36-
doap:helper [a foaf:Person ;
37-
foaf:name "Fumihiro Kato" ;
38-
foaf:mbox_sha1sum "d31fdd6af7a279a89bf09fdc9f7c44d9d08bb930"] ;
39-
doap:helper [a foaf:Person ;
40-
foaf:name "Naoki Kawamukai" ;
41-
foaf:mbox_sha1sum "5bdcd8e2af4f5952aaeeffbdd371c41525ec761d"] ;
42-
doap:helper [a foaf:Person ;
43-
foaf:name "Hellekin O. Wolf" ;
44-
foaf:mbox_sha1sum "c69f3255ff0639543cc5edfd8116eac8df16fab8"] ;
45-
doap:helper [a foaf:Person ;
46-
foaf:name "John Fieber" ;
47-
foaf:mbox_sha1sum "f7653fc1ac0e82ebb32f092389bd5fc728eaae12"] ;
48-
doap:helper [a foaf:Person ;
49-
foaf:name "Keita Urashima" ;
50-
foaf:mbox_sha1sum "2b4247b6fd5bb4a1383378f325784318680d5ff9"] ;
51-
doap:helper [a foaf:Person ;
52-
foaf:name "Pius Uzamere" ;
53-
foaf:mbox_sha1sum "bedbbf2451e5beb38d59687c0460032aff92cd3c"] ;
54-
foaf:maker <https://ar.to/#self> ;
55-
dc:creator <https://ar.to/#self> .
23+
doap:documenter <https://greggkellogg.net/foaf#me> ;
24+
foaf:maker <https://greggkellogg.net/foaf#me> ;
25+
dc:creator <https://greggkellogg.net/foaf#me> .
5626

5727
<https://ar.to/#self> a foaf:Person ;
5828
foaf:name "Arto Bendiken" ;
@@ -67,6 +37,7 @@
6737
foaf:mbox_sha1sum "dbf45f4ffbd27b67aa84f02a6a31c144727d10af" ;
6838
foaf:homepage <https://bhuga.net/> .
6939

40+
7041
<https://greggkellogg.net/foaf#me> a foaf:Person ;
7142
foaf:name "Gregg Kellogg" ;
7243
foaf:mbox <mailto:[email protected]> ;

lib/rdf/spec/inspects.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
class RDF::Literal
55
def inspect
6-
"\"#{escape(value)}\" R:L:(#{self.class.to_s.match(/([^:]*)$/)})"
6+
klass = self.class.to_s.match(/([^:]*)$/).to_s
7+
dt = self.datatype
8+
"\"#{escape(value)}\"#{('@' + self.language.to_s) if self.language?} R:L:(#{klass == 'Literal' && dt ? dt : klass})"
79
end
810
end
911

lib/rdf/spec/literal.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# include the examples for `RDF::Literal`, `RDF::Literal validation`,
66
# `RDF::Literal canonicalization`, and `RDF::Literal lookup`.
77

8+
# @private
89
shared_examples 'RDF::Literal' do |value, datatype_uri|
910
include_examples 'RDF::Literal with datatype and grammar', value, datatype_uri
1011
include_examples 'RDF::Literal equality', value, value

lib/rdf/spec/matchers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'rspec/matchers' # @see https://rubygems.org/gems/rspec
2-
require 'awesome_print'
2+
require 'amazing_print'
33

44
module RDF; module Spec
55
##
@@ -273,7 +273,7 @@ def io_name
273273
@info = if (info.id rescue false)
274274
info
275275
elsif info.is_a?(Logger)
276-
Info.new(logger: info)
276+
Info.new({logger: info})
277277
elsif info.is_a?(Hash)
278278
Info.new(info[:id], info[:logger], info[:action], info[:result], info[:format], info[:base], info[:prefixes])
279279
else

0 commit comments

Comments
 (0)