rdf 1.99.0 → 1.99.0.1
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.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a5bb609ce270bff7fabd013ca1d9857e053cce3
|
4
|
+
data.tar.gz: 24efb4c02cbfa0e47d7b8c0855176814d481e652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 560d81c31c0eee3106e08eacd6faa335c264891db3a05c1ad99751a8b26473596ceff1e1cc31ad104b42f93724bfcd8f8a0023d2fe18b7f012519ef855954b2e
|
7
|
+
data.tar.gz: b7f90d80cbf8beefd444051aa3f67600321344290979747c9adcb94e5ef8ef60c486fdc27c00e7541893e91eba9fe8f343d84adeebebd0ef3f878a7073fd098e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.99.0
|
1
|
+
1.99.0.1
|
data/lib/rdf.rb
CHANGED
@@ -59,12 +59,17 @@ module RDF
|
|
59
59
|
# Use const_missing instead of autoload to load most vocabularies so we can provide deprecation messages
|
60
60
|
def self.const_missing(constant)
|
61
61
|
if VOCABS.include?(constant.to_s.downcase.to_sym)
|
62
|
+
@vocab_fault ||= {}
|
63
|
+
raise "Class not found: RDF::#{constant}" if @vocab_fault[constant.to_s]
|
64
|
+
@vocab_fault[constant.to_s] = true
|
62
65
|
warn %([DEPRECATION] the #{constant} vocabulary will be moved to the rdf-vocab gem
|
63
66
|
for the RDF.rb 2.0 release. Use as RDF::Vocab::#{constant}, or include RDF::Vocab in the RDF module.
|
64
67
|
Called from #{Gem.location_of_caller.join(':')}
|
65
68
|
).gsub(/^\s+/, '') unless [:OWL, :RDFS, :RDFV, :XSD].include?(constant)
|
66
69
|
require "rdf/vocab/#{constant.to_s.downcase}"
|
67
|
-
const_get(constant)
|
70
|
+
klass = const_get(constant)
|
71
|
+
return klass if klass
|
72
|
+
raise "Class not found: RDF::#{constant}"
|
68
73
|
else
|
69
74
|
super
|
70
75
|
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: 1.99.0
|
4
|
+
version: 1.99.0.1
|
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: 2015-10
|
13
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
version: '0'
|
348
348
|
requirements: []
|
349
349
|
rubyforge_project: rdf
|
350
|
-
rubygems_version: 2.4.
|
350
|
+
rubygems_version: 2.4.8
|
351
351
|
signing_key:
|
352
352
|
specification_version: 4
|
353
353
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|