rdf 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +1 -0
- data/VERSION +1 -1
- data/lib/rdf/mixin/writable.rb +1 -1
- data/lib/rdf/model/literal/double.rb +8 -1
- data/lib/rdf/vocab/schema.rb +966 -237
- data/lib/rdf/vocabulary.rb +2 -1
- metadata +3 -3
data/lib/rdf/vocabulary.rb
CHANGED
@@ -138,7 +138,8 @@ module RDF
|
|
138
138
|
Term.cache.delete(uri_str) # Clear any previous entry
|
139
139
|
prop = Term.intern(uri_str, attributes: options)
|
140
140
|
props[name.to_sym] = prop
|
141
|
-
|
141
|
+
# Define an accessor, except for problematic properties
|
142
|
+
(class << self; self; end).send(:define_method, name) { prop } unless %w(property hash).include?(name.to_s)
|
142
143
|
prop
|
143
144
|
end
|
144
145
|
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.1.
|
4
|
+
version: 1.1.14
|
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-
|
13
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
332
|
version: '0'
|
333
333
|
requirements: []
|
334
334
|
rubyforge_project: rdf
|
335
|
-
rubygems_version: 2.4.
|
335
|
+
rubygems_version: 2.4.7
|
336
336
|
signing_key:
|
337
337
|
specification_version: 4
|
338
338
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|