json-ld 0.1.5 → 0.1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.5.1
@@ -166,7 +166,7 @@ module JSON::LD
166
166
  v = context.fetch(key, false)
167
167
  if v.nil? || v.is_a?(String)
168
168
  context.delete(key)
169
- debug("parse") {"Hash[#{key}] = #{v.inspect}"}
169
+ debug("parse") {"Set #{key} to #{v.inspect}"}
170
170
  new_ec.send(setter, v)
171
171
  elsif v
172
172
  raise InvalidContext::Syntax, "#{key.inspect} is invalid"
@@ -482,7 +482,7 @@ module JSON::LD
482
482
  when prefix == '_' && suffix then bnode(suffix)
483
483
  when iri.to_s[0,1] == "@" then iri
484
484
  when suffix.to_s[0,2] == '//' then uri(iri)
485
- when mappings.has_key?(prefix) then uri(mappings[prefix] + suffix.to_s)
485
+ when mappings.fetch(prefix, false) then uri(mappings[prefix] + suffix.to_s)
486
486
  when base then base.join(iri)
487
487
  when vocab then uri("#{vocab}#{iri}")
488
488
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-04 00:00:00.000000000 Z
12
+ date: 2012-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf