rdf-spec 3.1.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/VERSION +1 -1
- data/etc/doap.ttl +12 -41
- data/lib/rdf/spec/inspects.rb +3 -1
- data/lib/rdf/spec/literal.rb +1 -0
- data/lib/rdf/spec/matchers.rb +2 -2
- data/spec/spec_helper.rb +9 -2
- metadata +15 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3939d0995135927a6a5f4cfd52e938a4bec7e06c777f1788acb07e2a01d09204
|
4
|
+
data.tar.gz: 70819c16d0e0434e507cec8fcb25e2f8ebf023d1aae1904237f30e26be4a0be4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18d179b95e390b79a64272a3e35703bc7b9d584f7fb4331bd95e3067a7d700be2a9dc21e44558a01a5ddb19101515e4b63b51191d28d9d897841052d65314d76
|
7
|
+
data.tar.gz: a01edf7d8338178a1a14d30b4cdff3568136e26ee2c22dd6337af394be6c7704ed289e7a6a553df6248750c1a5dfa7de02a169efc182c62578eb1254a255de66
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ and shared examples for Ruby projects that use RDF.rb and RSpec.
|
|
5
5
|
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/rdf-spec.png)](https://badge.fury.io/rb/rdf-spec)
|
7
7
|
[![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)
|
9
9
|
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
|
10
10
|
|
11
11
|
## Documentation
|
@@ -30,8 +30,8 @@ Note that in most cases, if the instance is empty and mutable, the appropriate s
|
|
30
30
|
|
31
31
|
## Dependencies
|
32
32
|
|
33
|
-
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.
|
34
|
-
* [RSpec](https://rubygems.org/gems/rspec) (~> 3.
|
33
|
+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
|
34
|
+
* [RSpec](https://rubygems.org/gems/rspec) (~> 3.10)
|
35
35
|
|
36
36
|
## Installation
|
37
37
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.0
|
data/etc/doap.ttl
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
@base <https://rubygems.org/gems/rdf> .
|
1
|
+
@base <https://rubygems.org/gems/rdf-spec> .
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
4
4
|
@prefix dc: <http://purl.org/dc/terms/> .
|
@@ -6,53 +6,23 @@
|
|
6
6
|
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
7
7
|
|
8
8
|
<> a doap:Project ;
|
9
|
-
doap:name "RDF
|
10
|
-
doap:homepage <https://rubygems.org/gems/rdf> ;
|
9
|
+
doap:name "RDF::Spec" ;
|
10
|
+
doap:homepage <https://rubygems.org/gems/rdf-spec> ;
|
11
11
|
doap:license <https://unlicense.org/1.0/> ;
|
12
|
-
doap:shortdesc "
|
13
|
-
doap:description "RDF.rb
|
14
|
-
doap:created "2007-
|
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" ;
|
15
15
|
doap:programming-language "Ruby" ;
|
16
16
|
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
|
17
17
|
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
|
18
|
-
doap:
|
19
|
-
|
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> ;
|
23
20
|
doap:blog <https://ar.to/>, <https://greggkellogg.net/> ;
|
24
21
|
doap:developer <https://ar.to/#self>, <https://bhuga.net/#ben>, <https://greggkellogg.net/foaf#me> ;
|
25
22
|
doap:maintainer <https://greggkellogg.net/foaf#me> ;
|
26
|
-
doap:documenter <https://
|
27
|
-
|
28
|
-
|
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> .
|
56
26
|
|
57
27
|
<https://ar.to/#self> a foaf:Person ;
|
58
28
|
foaf:name "Arto Bendiken" ;
|
@@ -67,6 +37,7 @@
|
|
67
37
|
foaf:mbox_sha1sum "dbf45f4ffbd27b67aa84f02a6a31c144727d10af" ;
|
68
38
|
foaf:homepage <https://bhuga.net/> .
|
69
39
|
|
40
|
+
|
70
41
|
<https://greggkellogg.net/foaf#me> a foaf:Person ;
|
71
42
|
foaf:name "Gregg Kellogg" ;
|
72
43
|
foaf:mbox <mailto:gregg@greggkellogg.net> ;
|
data/lib/rdf/spec/inspects.rb
CHANGED
@@ -3,7 +3,9 @@ require 'rdf'
|
|
3
3
|
|
4
4
|
class RDF::Literal
|
5
5
|
def inspect
|
6
|
-
|
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})"
|
7
9
|
end
|
8
10
|
end
|
9
11
|
|
data/lib/rdf/spec/literal.rb
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
# include the examples for `RDF::Literal`, `RDF::Literal validation`,
|
6
6
|
# `RDF::Literal canonicalization`, and `RDF::Literal lookup`.
|
7
7
|
|
8
|
+
# @private
|
8
9
|
shared_examples 'RDF::Literal' do |value, datatype_uri|
|
9
10
|
include_examples 'RDF::Literal with datatype and grammar', value, datatype_uri
|
10
11
|
include_examples 'RDF::Literal equality', value, value
|
data/lib/rdf/spec/matchers.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rspec/matchers' # @see https://rubygems.org/gems/rspec
|
2
|
-
require '
|
2
|
+
require 'amazing_print'
|
3
3
|
|
4
4
|
module RDF; module Spec
|
5
5
|
##
|
@@ -273,7 +273,7 @@ module RDF; module Spec
|
|
273
273
|
@info = if (info.id rescue false)
|
274
274
|
info
|
275
275
|
elsif info.is_a?(Logger)
|
276
|
-
Info.new(logger: info)
|
276
|
+
Info.new({logger: info})
|
277
277
|
elsif info.is_a?(Hash)
|
278
278
|
Info.new(info[:id], info[:logger], info[:action], info[:result], info[:format], info[:base], info[:prefixes])
|
279
279
|
else
|
data/spec/spec_helper.rb
CHANGED
@@ -2,10 +2,17 @@ require "bundler/setup"
|
|
2
2
|
require 'rdf'
|
3
3
|
begin
|
4
4
|
require 'simplecov'
|
5
|
-
require '
|
5
|
+
require 'simplecov-lcov'
|
6
|
+
|
7
|
+
SimpleCov::Formatter::LcovFormatter.config do |config|
|
8
|
+
#Coveralls is coverage by default/lcov. Send info results
|
9
|
+
config.report_with_single_file = true
|
10
|
+
config.single_report_path = 'coverage/lcov.info'
|
11
|
+
end
|
12
|
+
|
6
13
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
7
14
|
SimpleCov::Formatter::HTMLFormatter,
|
8
|
-
|
15
|
+
SimpleCov::Formatter::LcovFormatter
|
9
16
|
])
|
10
17
|
SimpleCov.start do
|
11
18
|
add_filter "matchers.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf
|
@@ -18,62 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
22
|
-
- - ">="
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 3.1.8
|
21
|
+
version: '3.2'
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
24
|
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
requirements:
|
29
26
|
- - "~>"
|
30
27
|
- !ruby/object:Gem::Version
|
31
|
-
version: '3.
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 3.1.8
|
28
|
+
version: '3.2'
|
35
29
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
30
|
+
name: amazing_print
|
37
31
|
requirement: !ruby/object:Gem::Requirement
|
38
32
|
requirements:
|
39
33
|
- - "~>"
|
40
34
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
35
|
+
version: '1.4'
|
42
36
|
type: :runtime
|
43
37
|
prerelease: false
|
44
38
|
version_requirements: !ruby/object:Gem::Requirement
|
45
39
|
requirements:
|
46
40
|
- - "~>"
|
47
41
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
42
|
+
version: '1.4'
|
49
43
|
- !ruby/object:Gem::Dependency
|
50
44
|
name: rdf-isomorphic
|
51
45
|
requirement: !ruby/object:Gem::Requirement
|
52
46
|
requirements:
|
53
47
|
- - "~>"
|
54
48
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3.
|
49
|
+
version: '3.2'
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
53
|
requirements:
|
60
54
|
- - "~>"
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3.
|
56
|
+
version: '3.2'
|
63
57
|
- !ruby/object:Gem::Dependency
|
64
58
|
name: rspec
|
65
59
|
requirement: !ruby/object:Gem::Requirement
|
66
60
|
requirements:
|
67
61
|
- - "~>"
|
68
62
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
63
|
+
version: '3.10'
|
70
64
|
type: :runtime
|
71
65
|
prerelease: false
|
72
66
|
version_requirements: !ruby/object:Gem::Requirement
|
73
67
|
requirements:
|
74
68
|
- - "~>"
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: '3.
|
70
|
+
version: '3.10'
|
77
71
|
- !ruby/object:Gem::Dependency
|
78
72
|
name: rspec-its
|
79
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +102,14 @@ dependencies:
|
|
108
102
|
requirements:
|
109
103
|
- - "~>"
|
110
104
|
- !ruby/object:Gem::Version
|
111
|
-
version: '3.
|
105
|
+
version: '3.14'
|
112
106
|
type: :runtime
|
113
107
|
prerelease: false
|
114
108
|
version_requirements: !ruby/object:Gem::Requirement
|
115
109
|
requirements:
|
116
110
|
- - "~>"
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version: '3.
|
112
|
+
version: '3.14'
|
119
113
|
- !ruby/object:Gem::Dependency
|
120
114
|
name: yard
|
121
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,14 +196,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
196
|
requirements:
|
203
197
|
- - ">="
|
204
198
|
- !ruby/object:Gem::Version
|
205
|
-
version: '2.
|
199
|
+
version: '2.6'
|
206
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
201
|
requirements:
|
208
202
|
- - ">="
|
209
203
|
- !ruby/object:Gem::Version
|
210
204
|
version: '0'
|
211
205
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.3.3
|
213
207
|
signing_key:
|
214
208
|
specification_version: 4
|
215
209
|
summary: RSpec extensions for RDF.rb.
|