Commit b8fd4c2
committed
Release 1.99.0:
* Use correct include for Matchers in Reader/Writer
* This fixes an error that caused examples for RDF::Writer & RDF::Reader
to be passed over silently.
* Add a triple pattern matcher
* This matcher handles checking whether a given pattern is matched in a
`Queryable`. e.g. `it { is_expected.to match_triple_pattern [:s, :p, :o]`
* Add test for http_adaptor when Location is a relative URL.
* Allow Reader#for to call original
* This test failed if an implementation of Mutable calls `Reader#for` more than once. The change allows additional calls with other arguments to pass through to the original implementation.
* Enumerable#statements, #triples, #subjects, #objects, #predicates, #contexts, #quads now return an Array, not an Enumerator.
* Support using `graph_name` in addition to (as eventual replacement for) `context` (conditional on RDF::VERSION).
* `Enumerable#contexts` replaced with `Enumerable#graph_names`. Other `each` or `enum` of context removed in favor of graph enumerations.
* Correct behaviors for open_file:
* charset should be a downcased string.
* content_encoding reflects Content-Encoding, as an array of downcased strings.
* Non-UTF input is transformed to UTF-8, so that `external_encoding` is now "utf-8" with `charset` the original character set.
* Add tests for `Enumerable#terms`, `#has_term?`, `#each_term`, and `#enum_term`.
* Add specs for `Enumerable#project_graph`
* Use different kind of invalid statement for testing enumerable. Add test to verify that Writable will not add an incomplete statement.
* Expect inserting an incomplete statement to raise ArgumentError.File tree
23 files changed
+649
-425
lines changed- lib/rdf
- spec
- spec
23 files changed
+649
-425
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments