rdf-turtle 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3cededb73cd8863f7a82386dc5ae0667edee714910a148df381402c8daf664
4
- data.tar.gz: 7952f03d779df79e0f02fd5c9281118afeb661fc810ada681e98e4b604941528
3
+ metadata.gz: '086c95b097002c034394631a59d5d4c52fe4403eaea9b68bf2d241b45951dca3'
4
+ data.tar.gz: 68fa875004dfcebf6295444ff9aa945689c58fe0c54d6b5e14ad91dc9d9f0d02
5
5
  SHA512:
6
- metadata.gz: 7d24d8479b3055dff29ac2c958532817d32860e419dd1d9e978ef63bfca8c8c08cf2da93b08353dc488b5489d20d83b2c33959277d3d8b2fd2c4a3d768bcd4bb
7
- data.tar.gz: 3a3f31bb8ca9e14228596de15a3108d9a30903f9ef947d6fa5338bd038684b44cdc8fee7aa3b4d3ce6f473bda11b8b0501bd6eab76585585863f3a98db25f2ba
6
+ metadata.gz: 2b69fe9cdd04a28078122d80f6d0e79a34b1223b9254aa4d4347714042cc0292a4d4051a6a3dae08305e999b63811a54dbfb491b7c2e0d394ebaab4f039ed011
7
+ data.tar.gz: 3686da200196de7c4e21eaf52a6e6ea927796cd4221722be9c6d7a8868faf0b2896a3713d684b1cadab9179b6b47673c5b8917c8376581f335b286c45fca7cb2
data/README.md CHANGED
@@ -140,11 +140,15 @@ An example of reading Freebase dumps:
140
140
  ## Implementation Notes
141
141
  This version uses a hand-written parser using the Lexer from the [EBNF][] gem instead of a general [EBNF][] LL(1) parser for faster performance.
142
142
 
143
+ ## Change Log
144
+
145
+ See [Release Notes on GitHub](https://github.com/ruby-rdf/rdf-turtle/releases)
146
+
143
147
  ## Dependencies
144
148
 
145
149
  * [Ruby](https://ruby-lang.org/) (>= 3.0)
146
150
  * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)
147
- * [EBNF][] (~> 2.4)
151
+ * [EBNF][] (~> 2.5)
148
152
 
149
153
  ## Installation
150
154
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.1
@@ -64,6 +64,14 @@ module RDF::Turtle
64
64
  end
65
65
  pfx_iri = prefix(ns)
66
66
  raise RDF::ReaderError.new("ERROR [line #{lineno}] prefix #{ns.inspect} is not defined", lineno: lineno) unless pfx_iri
67
+
68
+ # Unescape PN_LOCAL_ESC
69
+ suffix = suffix.gsub(PN_LOCAL_ESC) {|esc| esc[1]} if
70
+ suffix.match?(PN_LOCAL_ESC)
71
+
72
+ # Remove any redundant leading hash from suffix
73
+ suffix = suffix.sub(/^\#/, "") if pfx_iri.to_s.index("#")
74
+
67
75
  uri = RDF::URI(pfx_iri + suffix)
68
76
  uri.validate! if validate?
69
77
  uri
@@ -227,7 +227,14 @@ module RDF::Turtle
227
227
  error("undefined prefix", production: :pname, token: prefix)
228
228
  ''
229
229
  end
230
- suffix = suffix.to_s.sub(/^\#/, "") if base.index("#")
230
+
231
+ # Unescape PN_LOCAL_ESC
232
+ suffix = suffix.gsub(PN_LOCAL_ESC) {|esc| esc[1]} if
233
+ suffix.match?(PN_LOCAL_ESC)
234
+
235
+ # Remove any redundant leading hash from suffix
236
+ suffix = suffix.sub(/^\#/, "") if base.index("#")
237
+
231
238
  debug("pname", depth: options[:depth]) {"base: '#{base}', suffix: '#{suffix}'"}
232
239
  process_iri(base + suffix.to_s)
233
240
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-turtle
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.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: 2023-08-26 00:00:00.000000000 Z
11
+ date: 2024-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -30,14 +30,48 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.4'
33
+ version: '2.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.4'
40
+ version: '2.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: base64
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bigdecimal
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.1'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 3.1.5
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '3.1'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 3.1.5
41
75
  - !ruby/object:Gem::Dependency
42
76
  name: erubis
43
77
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +86,20 @@ dependencies:
52
86
  - - "~>"
53
87
  - !ruby/object:Gem::Version
54
88
  version: '2.7'
89
+ - !ruby/object:Gem::Dependency
90
+ name: getoptlong
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.2'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.2'
55
103
  - !ruby/object:Gem::Dependency
56
104
  name: htmlentities
57
105
  requirement: !ruby/object:Gem::Requirement