rdf 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/format.rb +1 -1
- data/lib/rdf/model/uri.rb +10 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b11b6279e5b2dd33f97dc182ce47f819373d3d1eaf684fd2bbd57dfeaa9a204b
|
4
|
+
data.tar.gz: 3df24ac7e33e3b607991160e785c041b82156fd58867e5ab02d357c609688329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4eef8fbb4d236ce290ecdfe4f9af50a6b2cb513dd373aea852cc11b35c2f8b3e7cf786bc3cef883d1e14289685280eab49942fc630884eadbd842676ab71ca4
|
7
|
+
data.tar.gz: 8f6b98a5e5d32f5192a69f6cd77368a2643680346fc306335a0526185153065f784dc6ea4d3703ce58e203612e80358fe8e214829c4aa74158aeabeabc37f535
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.6
|
data/lib/rdf/format.rb
CHANGED
@@ -84,7 +84,7 @@ module RDF
|
|
84
84
|
when content_type
|
85
85
|
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
|
86
86
|
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7
|
87
|
-
mime_type = content_type.to_s.split(';').first # remove any media type parameters
|
87
|
+
mime_type = content_type.to_s.split(';').first.to_s # remove any media type parameters
|
88
88
|
|
89
89
|
# Ignore text/plain, a historical encoding for N-Triples, which is
|
90
90
|
# problematic in format detection, as many web servers will serve
|
data/lib/rdf/model/uri.rb
CHANGED
@@ -57,7 +57,7 @@ module RDF
|
|
57
57
|
|
58
58
|
IQUERY = Regexp.compile("(?:#{IPCHAR}|#{IPRIVATE}|/|\\?)*").freeze
|
59
59
|
|
60
|
-
IFRAGMENT = Regexp.compile("(?:#{IPCHAR}|/|\\?)*").freeze
|
60
|
+
IFRAGMENT = Regexp.compile("(?:#{IPCHAR}|/|\\?)*").freeze
|
61
61
|
|
62
62
|
ISEGMENT = Regexp.compile("(?:#{IPCHAR})*").freeze
|
63
63
|
ISEGMENT_NZ = Regexp.compile("(?:#{IPCHAR})+").freeze
|
@@ -223,6 +223,7 @@ module RDF
|
|
223
223
|
# @param [Boolean] canonicalize (false)
|
224
224
|
def initialize(*args, validate: false, canonicalize: false, **options)
|
225
225
|
@value = @object = @hash = nil
|
226
|
+
@mutex = Mutex.new
|
226
227
|
uri = args.first
|
227
228
|
if uri
|
228
229
|
@value = uri.to_s
|
@@ -665,12 +666,14 @@ module RDF
|
|
665
666
|
# @private
|
666
667
|
def freeze
|
667
668
|
unless frozen?
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
669
|
+
@mutex.synchronize do
|
670
|
+
# Create derived components
|
671
|
+
authority; userinfo; user; password; host; port
|
672
|
+
@value = value.freeze
|
673
|
+
@object = object.freeze
|
674
|
+
@hash = hash.freeze
|
675
|
+
super
|
676
|
+
end
|
674
677
|
end
|
675
678
|
self
|
676
679
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
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: 2018-
|
13
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
300
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.7.
|
301
|
+
rubygems_version: 2.7.6
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|