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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/VERSION +1 -1
  3. data/lib/json/ld/context.rb +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzllY2IzN2M4MjQ5MGUxMWQ0M2NhYTliZWFmMzUyYzZmMDYwODIxOQ==
4
+ OTQ4OTc2MWQ0M2FlYTFiNmEyMDM3ZmEzNWMxYTE2NDk2MjczYWZmMg==
5
5
  data.tar.gz: !binary |-
6
- OGM3NmQ5YTVhMDk3ZTE3NGZjNmM4MTc2NWQ0Y2NiNzhlZjllOWMxYw==
6
+ MTYzNzQ3ZGE1ZTlhY2MyYTBlMDBiODVlMDE3NTBhZmZkNGE1OTk2Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjkxY2E1ZGZiZDM2M2EyMDUwMTFmZGIwNmI2YTYyMGRkYzI5YzQ4OTRkMTFm
10
- N2VlZjE5OGEzN2FiMTcyY2U4MGVkOGMzN2RhOWIyZmQ2MTczMDNhMjI5NDli
11
- MTBmZTJkOWEzZWYzZjE0Mjk5Mjc1YzgwOTA3YzFlZGZmZWVmYTI=
9
+ NTEyZDU1ZWY0OWU1ZWJiNzY4YzQ4M2M3MmUyM2I4ODMyOGRkMjAxNDkwZjg0
10
+ YmZmNWIzZTQ0ZmRiZWFjMzAwZDg4NWQzNDU1MmM4YWUzYmM1M2IyYWUxY2Ux
11
+ NzVlOWFjNGM0N2NhZDJkNTI2MjVkNDdkNWQxYTE4Y2NlNzEzNDY=
12
12
  data.tar.gz: !binary |-
13
- NzNmZTU0YTA3OGQ0MmRjZjNlNzhlNzlkNzFlNDQ2OWY4YWM5MTIyNjA1MzFl
14
- MTYxNjZiMzFhZWIzNWNhM2I1YjE3ZDA4NDc4M2EwOGI0YjJkYzNkOTJlNDk0
15
- ZTliMTMwNDk5MWZmOGU2NjQ3NDFmYjkyMTE3NTRhN2NkYzVkYzk=
13
+ YzI5MzE5ZDBlOGEyNjIwMDA3YzhhZTNiNWJmOTkwZTRkZjU2OWM4Y2MwYTVl
14
+ MTZhNDQzYzg1ZDU1NmRjMGFjN2E1ZDdjZDU1ZjE0ZGM0Y2RjZDFhNTg2Njhi
15
+ M2VjMWQ5ZmE3M2E5MGI0NGRiY2U4N2JkOTgwNzNlZjYxOWE3ZTQ=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -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 #{context.inspect}: #{e.message}"}
270
- raise InvalidContext::InvalidRemoteContext, "#{context}", e.backtrace if @options[:validate]
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.3
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-06 00:00:00.000000000 Z
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.3
287
+ version: 1.9.2
288
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - ! '>='