json-ld 1.0.3 → 1.0.4
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 +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTQ4OTc2MWQ0M2FlYTFiNmEyMDM3ZmEzNWMxYTE2NDk2MjczYWZmMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTYzNzQ3ZGE1ZTlhY2MyYTBlMDBiODVlMDE3NTBhZmZkNGE1OTk2Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTEyZDU1ZWY0OWU1ZWJiNzY4YzQ4M2M3MmUyM2I4ODMyOGRkMjAxNDkwZjg0
|
10
|
+
YmZmNWIzZTQ0ZmRiZWFjMzAwZDg4NWQzNDU1MmM4YWUzYmM1M2IyYWUxY2Ux
|
11
|
+
NzVlOWFjNGM0N2NhZDJkNTI2MjVkNDdkNWQxYTE4Y2NlNzEzNDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzI5MzE5ZDBlOGEyNjIwMDA3YzhhZTNiNWJmOTkwZTRkZjU2OWM4Y2MwYTVl
|
14
|
+
MTZhNDQzYzg1ZDU1NmRjMGFjN2E1ZDdjZDU1ZjE0ZGM0Y2RjZDFhNTg2Njhi
|
15
|
+
M2VjMWQ5ZmE3M2E5MGI0NGRiY2U4N2JkOTgwNzNlZjYxOWE3ZTQ=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/lib/json/ld/context.rb
CHANGED
@@ -159,7 +159,7 @@ module JSON::LD
|
|
159
159
|
# @param [String] value must be an absolute IRI
|
160
160
|
def base=(value)
|
161
161
|
if value
|
162
|
-
raise InvalidContext::InvalidBaseIRI, "@base must be a string: #{value.inspect}" unless value.is_a?(String)
|
162
|
+
raise InvalidContext::InvalidBaseIRI, "@base must be a string: #{value.inspect}" unless value.is_a?(String) || value.is_a?(RDF::URI)
|
163
163
|
@base = RDF::URI(value)
|
164
164
|
@base.canonicalize!
|
165
165
|
@base.fragment = nil
|
@@ -266,8 +266,8 @@ module JSON::LD
|
|
266
266
|
result = context
|
267
267
|
debug("parse") {"=> provided_context: #{context.inspect}"}
|
268
268
|
rescue Exception => e
|
269
|
-
debug("parse") {"Failed to retrieve @context from remote document at #{
|
270
|
-
raise InvalidContext::InvalidRemoteContext, "#{
|
269
|
+
debug("parse") {"Failed to retrieve @context from remote document at #{context_no_base.context_base.inspect}: #{e.message}"}
|
270
|
+
raise InvalidContext::InvalidRemoteContext, "#{context_no_base.context_base}", e.backtrace if @options[:validate]
|
271
271
|
end
|
272
272
|
when Hash
|
273
273
|
# If context has a @vocab member: if its value is not a valid absolute IRI or null trigger an INVALID_VOCAB_MAPPING error; otherwise set the active context's vocabulary mapping to its value and remove the @vocab member from context.
|
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.
|
4
|
+
version: 1.0.4
|
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-08-
|
11
|
+
date: 2013-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -284,7 +284,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
284
|
requirements:
|
285
285
|
- - ! '>='
|
286
286
|
- !ruby/object:Gem::Version
|
287
|
-
version: 1.9.
|
287
|
+
version: 1.9.2
|
288
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - ! '>='
|