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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bea45795551315414671bb114872e5cac5162e1ec2a27e05a9d4879120ab134
4
- data.tar.gz: a992b86dca4f494960654e4fc9435d7ed2ebaae59a4dd51c73c98213c36f8468
3
+ metadata.gz: b11b6279e5b2dd33f97dc182ce47f819373d3d1eaf684fd2bbd57dfeaa9a204b
4
+ data.tar.gz: 3df24ac7e33e3b607991160e785c041b82156fd58867e5ab02d357c609688329
5
5
  SHA512:
6
- metadata.gz: 827ef18bb7e6f5f299ce5ba7e570012e03a391b1b025a915b2ea0d3faa9bb42446393dddb41d015dade8889395c11b7413c9134af14d88c28c8caa15eca0c3c7
7
- data.tar.gz: 9c2109b329d2ea4e5417c4c86f026c49a039055a2151ba24963f920b70a6dfbf64417088fda6477aa5ce849bb692de1962f1dd9cdf6287c913623d966bffc26f
6
+ metadata.gz: b4eef8fbb4d236ce290ecdfe4f9af50a6b2cb513dd373aea852cc11b35c2f8b3e7cf786bc3cef883d1e14289685280eab49942fc630884eadbd842676ab71ca4
7
+ data.tar.gz: 8f6b98a5e5d32f5192a69f6cd77368a2643680346fc306335a0526185153065f784dc6ea4d3703ce58e203612e80358fe8e214829c4aa74158aeabeabc37f535
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.0.6
@@ -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
@@ -57,7 +57,7 @@ module RDF
57
57
 
58
58
  IQUERY = Regexp.compile("(?:#{IPCHAR}|#{IPRIVATE}|/|\\?)*").freeze
59
59
 
60
- IFRAGMENT = Regexp.compile("(?:#{IPCHAR}|/|\\?)*").freeze.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
- # Create derived components
669
- authority; userinfo; user; password; host; port
670
- @value = value.freeze
671
- @object = object.freeze
672
- @hash = hash.freeze
673
- super
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.5
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-10-15 00:00:00.000000000 Z
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.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.