rdf-tabular 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/VERSION +1 -1
- data/etc/earl.ttl +1255 -708
- data/lib/rdf/tabular.rb +12 -11
- data/lib/rdf/tabular/metadata.rb +107 -254
- data/lib/rdf/tabular/reader.rb +2 -0
- data/lib/rdf/tabular/uax35.rb +324 -0
- data/spec/metadata_spec.rb +163 -78
- data/spec/suite_spec.rb +6 -12
- metadata +3 -2
data/spec/suite_spec.rb
CHANGED
@@ -66,22 +66,16 @@ describe RDF::Tabular::Reader do
|
|
66
66
|
end
|
67
67
|
expect(t.errors).to produce [], t
|
68
68
|
elsif t.json?
|
69
|
-
expect {
|
70
|
-
reader.to_json
|
71
|
-
}.to raise_error(RDF::Tabular::Error)
|
72
|
-
elsif t.evaluate?
|
73
|
-
expect {
|
74
|
-
graph << reader
|
75
|
-
}.to raise_error(RDF::ReaderError)
|
69
|
+
expect {reader.to_json}.to raise_error(RDF::Tabular::Error)
|
76
70
|
elsif t.validation?
|
77
71
|
expect {reader.validate!}.to raise_error(RDF::Tabular::Error)
|
72
|
+
else
|
73
|
+
expect {graph << reader}.to raise_error(RDF::ReaderError)
|
78
74
|
end
|
79
75
|
end
|
80
|
-
rescue IOError
|
81
|
-
# Special case
|
82
|
-
unless t.negative_test?
|
83
|
-
raise
|
84
|
-
end
|
76
|
+
rescue IOError
|
77
|
+
# Special case when Reader.initialize raises the error
|
78
|
+
raise unless t.negative_test?
|
85
79
|
end
|
86
80
|
end
|
87
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-tabular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcp47
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- lib/rdf/tabular/literal.rb
|
239
239
|
- lib/rdf/tabular/metadata.rb
|
240
240
|
- lib/rdf/tabular/reader.rb
|
241
|
+
- lib/rdf/tabular/uax35.rb
|
241
242
|
- lib/rdf/tabular/utils.rb
|
242
243
|
- lib/rdf/tabular/version.rb
|
243
244
|
- spec/format_spec.rb
|