rdf 1.1.13 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- (class << self; self; end).send(:define_method, name) { prop } unless name.to_s == "property"
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.13
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-05-12 00:00:00.000000000 Z
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.3
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.