json-ld 1.0.8 → 1.0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/json/ld/context.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDIxMWI3YzU4Y2NkNjI0ZTU3ZDdmMDIwMWYyZWI5Y2UzOTNmOGQxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmZlNTU2NDc0YzQ0NTRkY2YxNjQ5Y2E0MzdlYmQyYjI4NDQyZTMzZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODE4OTY2ODA5MDVmZTMwZThmYWYwOTc0MzEwNjk3MjdhOGExOTViNzgzZjdi
|
10
|
+
M2VjM2ZiZDA1YTQxYWY3MmE1N2JhODFiMzQxZTAzMzVmNWMzZWM4Nzg3MTRi
|
11
|
+
YWUwMzBjZGRlZjYzMTQ4YjE5ZWY3OGMwYWU5OGNhZDIyYTViY2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDRiNTE1OWUyYTFkYWNhNGJkZjdhNmVhZWRkNWJjN2I5NzRhNTg2ZTExZjI0
|
14
|
+
YTI4ZjFkYWE0NzEyNzFiODFmNmVmYzY3YzhkNjcyMzNlZTY2NGUwY2Y5ZDU3
|
15
|
+
OGJiM2VmMjBkOWViY2FkOTA3ZThlYzk2NmVlODRmNjNkZjQ2OTQ=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.8
|
1
|
+
1.0.8.1
|
data/lib/json/ld/context.rb
CHANGED
@@ -273,8 +273,18 @@ module JSON::LD
|
|
273
273
|
rescue JsonLdError
|
274
274
|
raise
|
275
275
|
rescue Exception => e
|
276
|
-
|
277
|
-
|
276
|
+
# Speical case for schema.org, until they get their act together
|
277
|
+
if context.to_s == 'http://schema.org/'
|
278
|
+
RDF::Util::File.open_file("http://json-ld.org/contexts/schema.org.jsonld") do |f|
|
279
|
+
context = JSON.parse(f.read)['@context']
|
280
|
+
if @options[:processingMode] == "json-ld-1.0"
|
281
|
+
context_no_base.provided_context = context.dup
|
282
|
+
end
|
283
|
+
end
|
284
|
+
else
|
285
|
+
debug("parse") {"Failed to retrieve @context from remote document at #{context_no_base.context_base.inspect}: #{e.message}"}
|
286
|
+
raise JsonLdError::LoadingRemoteContextFailed, "#{context_no_base.context_base}", e.backtrace if @options[:validate]
|
287
|
+
end
|
278
288
|
end
|
279
289
|
|
280
290
|
# 3.2.6) Set context to the result of recursively calling this algorithm, passing context no base for active context, context for local context, and remote contexts.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-ld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.8
|
4
|
+
version: 1.0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|