json-ld 2.1.7 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/spec/flatten_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD::API do
6
5
  let(:logger) {RDF::Spec.logger}
data/spec/format_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
  require 'rdf/spec/format'
5
4
 
6
5
  describe JSON::LD::Format do
data/spec/frame_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD::API do
6
5
  let(:logger) {RDF::Spec.logger}
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
  require 'rdf/spec/writer'
5
4
 
6
5
  describe JSON::LD::API do
data/spec/reader_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
  require 'rdf/spec/reader'
5
4
 
6
5
  describe JSON::LD::Reader do
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD::Resource do
6
5
  subject {JSON::LD::Resource.new({'@id' => '_:foo', "http://schema.org/name" => "foo"})}
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
1
+ $:.unshift(File.join("../../lib", __FILE__))
2
2
  $:.unshift File.dirname(__FILE__)
3
3
 
4
4
  require "bundler/setup"
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
  require 'rdf/spec/writer'
5
4
  require 'json/ld/streaming_writer'
6
5
 
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/compact-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/error-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/expand-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
@@ -1,11 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
8
- require 'suite_helper'
6
+ require_relative 'suite_helper'
9
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/flatten-manifest.jsonld")
10
8
  describe m.name do
11
9
  m.entries.each do |t|
@@ -1,11 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
8
- require 'suite_helper'
6
+ require_relative 'suite_helper'
9
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/frame-manifest.jsonld")
10
8
  describe m.name do
11
9
  m.entries.each do |t|
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/fromRdf-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
data/spec/suite_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'json/ld'
2
- require 'support/extensions'
3
-
2
+ require_relative 'support/extensions'
4
3
 
5
4
  # For now, override RDF::Utils::File.open_file to look for the file locally before attempting to retrieve it
6
5
  module RDF::Util
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/remote-doc-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD do
6
5
  describe "test suite" do
7
- require 'suite_helper'
6
+ require_relative 'suite_helper'
8
7
  m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}tests/toRdf-manifest.jsonld")
9
8
  describe m.name do
10
9
  m.entries.each do |t|
data/spec/to_rdf_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
 
5
4
  describe JSON::LD::API do
6
5
  let(:logger) {RDF::Spec.logger}
data/spec/writer_spec.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- $:.unshift "."
3
- require 'spec_helper'
2
+ require_relative 'spec_helper'
4
3
  require 'rdf/spec/writer'
5
4
 
6
5
  describe JSON::LD::Writer do
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.2'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 2.2.8
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.2'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 2.2.8
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: multi_json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -48,16 +48,22 @@ dependencies:
48
48
  name: linkeddata
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.2'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '4.0'
54
57
  type: :development
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
- - - "~>"
61
+ - - ">="
59
62
  - !ruby/object:Gem::Version
60
63
  version: '2.2'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '4.0'
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: jsonlint
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +84,14 @@ dependencies:
78
84
  requirements:
79
85
  - - "~>"
80
86
  - !ruby/object:Gem::Version
81
- version: '2.17'
87
+ version: '2.18'
82
88
  type: :development
83
89
  prerelease: false
84
90
  version_requirements: !ruby/object:Gem::Requirement
85
91
  requirements:
86
92
  - - "~>"
87
93
  - !ruby/object:Gem::Version
88
- version: '2.17'
94
+ version: '2.18'
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: yajl-ruby
91
97
  requirement: !ruby/object:Gem::Requirement
@@ -104,100 +110,136 @@ dependencies:
104
110
  name: rdf-isomorphic
105
111
  requirement: !ruby/object:Gem::Requirement
106
112
  requirements:
107
- - - "~>"
113
+ - - ">="
108
114
  - !ruby/object:Gem::Version
109
115
  version: '2.0'
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '4.0'
110
119
  type: :development
111
120
  prerelease: false
112
121
  version_requirements: !ruby/object:Gem::Requirement
113
122
  requirements:
114
- - - "~>"
123
+ - - ">="
115
124
  - !ruby/object:Gem::Version
116
125
  version: '2.0'
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '4.0'
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: rdf-spec
119
131
  requirement: !ruby/object:Gem::Requirement
120
132
  requirements:
121
- - - "~>"
133
+ - - ">="
122
134
  - !ruby/object:Gem::Version
123
135
  version: '2.2'
136
+ - - "<"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.0'
124
139
  type: :development
125
140
  prerelease: false
126
141
  version_requirements: !ruby/object:Gem::Requirement
127
142
  requirements:
128
- - - "~>"
143
+ - - ">="
129
144
  - !ruby/object:Gem::Version
130
145
  version: '2.2'
146
+ - - "<"
147
+ - !ruby/object:Gem::Version
148
+ version: '4.0'
131
149
  - !ruby/object:Gem::Dependency
132
150
  name: rdf-trig
133
151
  requirement: !ruby/object:Gem::Requirement
134
152
  requirements:
135
- - - "~>"
153
+ - - ">="
136
154
  - !ruby/object:Gem::Version
137
- version: '2.0'
155
+ version: '2.2'
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '4.0'
138
159
  type: :development
139
160
  prerelease: false
140
161
  version_requirements: !ruby/object:Gem::Requirement
141
162
  requirements:
142
- - - "~>"
163
+ - - ">="
143
164
  - !ruby/object:Gem::Version
144
- version: '2.0'
165
+ version: '2.2'
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '4.0'
145
169
  - !ruby/object:Gem::Dependency
146
170
  name: rdf-turtle
147
171
  requirement: !ruby/object:Gem::Requirement
148
172
  requirements:
149
- - - "~>"
173
+ - - ">="
150
174
  - !ruby/object:Gem::Version
151
- version: '2.0'
175
+ version: '2.2'
176
+ - - "<"
177
+ - !ruby/object:Gem::Version
178
+ version: '4.0'
152
179
  type: :development
153
180
  prerelease: false
154
181
  version_requirements: !ruby/object:Gem::Requirement
155
182
  requirements:
156
- - - "~>"
183
+ - - ">="
157
184
  - !ruby/object:Gem::Version
158
- version: '2.0'
185
+ version: '2.2'
186
+ - - "<"
187
+ - !ruby/object:Gem::Version
188
+ version: '4.0'
159
189
  - !ruby/object:Gem::Dependency
160
190
  name: rdf-vocab
161
191
  requirement: !ruby/object:Gem::Requirement
162
192
  requirements:
163
- - - "~>"
193
+ - - ">="
164
194
  - !ruby/object:Gem::Version
165
- version: '2.0'
195
+ version: '2.2'
196
+ - - "<"
197
+ - !ruby/object:Gem::Version
198
+ version: '4.0'
166
199
  type: :development
167
200
  prerelease: false
168
201
  version_requirements: !ruby/object:Gem::Requirement
169
202
  requirements:
170
- - - "~>"
203
+ - - ">="
171
204
  - !ruby/object:Gem::Version
172
- version: '2.0'
205
+ version: '2.2'
206
+ - - "<"
207
+ - !ruby/object:Gem::Version
208
+ version: '4.0'
173
209
  - !ruby/object:Gem::Dependency
174
210
  name: rdf-xsd
175
211
  requirement: !ruby/object:Gem::Requirement
176
212
  requirements:
177
- - - "~>"
213
+ - - ">="
178
214
  - !ruby/object:Gem::Version
179
- version: '2.0'
215
+ version: '2.2'
216
+ - - "<"
217
+ - !ruby/object:Gem::Version
218
+ version: '4.0'
180
219
  type: :development
181
220
  prerelease: false
182
221
  version_requirements: !ruby/object:Gem::Requirement
183
222
  requirements:
184
- - - "~>"
223
+ - - ">="
185
224
  - !ruby/object:Gem::Version
186
- version: '2.0'
225
+ version: '2.2'
226
+ - - "<"
227
+ - !ruby/object:Gem::Version
228
+ version: '4.0'
187
229
  - !ruby/object:Gem::Dependency
188
230
  name: rspec
189
231
  requirement: !ruby/object:Gem::Requirement
190
232
  requirements:
191
233
  - - "~>"
192
234
  - !ruby/object:Gem::Version
193
- version: '3.5'
235
+ version: '3.7'
194
236
  type: :development
195
237
  prerelease: false
196
238
  version_requirements: !ruby/object:Gem::Requirement
197
239
  requirements:
198
240
  - - "~>"
199
241
  - !ruby/object:Gem::Version
200
- version: '3.5'
242
+ version: '3.7'
201
243
  - !ruby/object:Gem::Dependency
202
244
  name: rspec-its
203
245
  requirement: !ruby/object:Gem::Requirement
@@ -349,81 +391,81 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
391
  version: '0'
350
392
  requirements: []
351
393
  rubyforge_project:
352
- rubygems_version: 2.6.12
394
+ rubygems_version: 2.6.14
353
395
  signing_key:
354
396
  specification_version: 4
355
397
  summary: JSON-LD reader/writer for Ruby.
356
398
  test_files:
399
+ - spec/spec_helper.rb
400
+ - spec/suite_error_spec.rb
357
401
  - spec/api_spec.rb
358
- - spec/compact_spec.rb
402
+ - spec/suite_from_rdf_spec.rb
359
403
  - spec/context_spec.rb
360
- - spec/expand_spec.rb
361
- - spec/flatten_spec.rb
362
- - spec/format_spec.rb
363
- - spec/frame_spec.rb
364
404
  - spec/from_rdf_spec.rb
405
+ - spec/suite_helper.rb
365
406
  - spec/reader_spec.rb
366
- - spec/resource_spec.rb
367
- - spec/spec_helper.rb
368
407
  - spec/streaming_writer_spec.rb
408
+ - spec/resource_spec.rb
409
+ - spec/suite_to_rdf_spec.rb
410
+ - spec/suite_remote_doc_spec.rb
411
+ - spec/format_spec.rb
412
+ - spec/frame_spec.rb
413
+ - spec/to_rdf_spec.rb
414
+ - spec/support/extensions.rb
415
+ - spec/flatten_spec.rb
416
+ - spec/suite_frame_spec.rb
369
417
  - spec/suite_compact_spec.rb
370
- - spec/suite_error_spec.rb
418
+ - spec/expand_spec.rb
371
419
  - spec/suite_expand_spec.rb
372
420
  - spec/suite_flatten_spec.rb
373
- - spec/suite_frame_spec.rb
374
- - spec/suite_from_rdf_spec.rb
375
- - spec/suite_helper.rb
376
- - spec/suite_remote_doc_spec.rb
377
- - spec/suite_to_rdf_spec.rb
378
- - spec/support/extensions.rb
379
- - spec/to_rdf_spec.rb
421
+ - spec/compact_spec.rb
380
422
  - spec/writer_spec.rb
381
- - spec/test-files/test-1-compacted.json
382
- - spec/test-files/test-1-context.json
383
- - spec/test-files/test-1-expanded.json
384
- - spec/test-files/test-1-input.json
385
- - spec/test-files/test-1-normalized.json
386
- - spec/test-files/test-1-rdf.ttl
387
- - spec/test-files/test-2-compacted.json
388
- - spec/test-files/test-2-context.json
389
- - spec/test-files/test-2-expanded.json
390
- - spec/test-files/test-2-input.json
391
- - spec/test-files/test-2-normalized.json
392
- - spec/test-files/test-2-rdf.ttl
393
423
  - spec/test-files/test-3-compacted.json
394
- - spec/test-files/test-3-context.json
395
- - spec/test-files/test-3-expanded.json
396
- - spec/test-files/test-3-input.json
397
- - spec/test-files/test-3-normalized.json
398
- - spec/test-files/test-3-rdf.ttl
424
+ - spec/test-files/test-2-rdf.ttl
399
425
  - spec/test-files/test-4-compacted.json
400
- - spec/test-files/test-4-context.json
426
+ - spec/test-files/test-5-input.json
427
+ - spec/test-files/test-3-rdf.ttl
428
+ - spec/test-files/test-5-compacted.json
429
+ - spec/test-files/test-9-expanded.json
430
+ - spec/test-files/test-8-input.json
431
+ - spec/test-files/test-2-compacted.json
432
+ - spec/test-files/test-8-compacted.json
433
+ - spec/test-files/test-7-expanded.json
434
+ - spec/test-files/test-1-rdf.ttl
435
+ - spec/test-files/test-7-context.json
436
+ - spec/test-files/test-3-expanded.json
437
+ - spec/test-files/test-8-rdf.ttl
438
+ - spec/test-files/test-1-normalized.json
439
+ - spec/test-files/test-2-input.json
440
+ - spec/test-files/test-7-compacted.json
441
+ - spec/test-files/test-1-context.json
442
+ - spec/test-files/test-6-context.json
443
+ - spec/test-files/test-6-compacted.json
444
+ - spec/test-files/test-7-input.json
445
+ - spec/test-files/test-1-compacted.json
401
446
  - spec/test-files/test-4-expanded.json
447
+ - spec/test-files/test-9-compacted.json
448
+ - spec/test-files/test-4-context.json
402
449
  - spec/test-files/test-4-input.json
403
- - spec/test-files/test-4-rdf.ttl
404
- - spec/test-files/test-5-compacted.json
405
- - spec/test-files/test-5-context.json
406
- - spec/test-files/test-5-expanded.json
407
- - spec/test-files/test-5-input.json
450
+ - spec/test-files/test-3-context.json
408
451
  - spec/test-files/test-5-rdf.ttl
409
- - spec/test-files/test-6-compacted.json
410
- - spec/test-files/test-6-context.json
452
+ - spec/test-files/test-1-expanded.json
453
+ - spec/test-files/test-9-input.json
454
+ - spec/test-files/test-8-framed.json
455
+ - spec/test-files/test-5-expanded.json
456
+ - spec/test-files/test-3-normalized.json
457
+ - spec/test-files/test-2-expanded.json
411
458
  - spec/test-files/test-6-expanded.json
459
+ - spec/test-files/test-2-context.json
460
+ - spec/test-files/test-5-context.json
461
+ - spec/test-files/test-1-input.json
462
+ - spec/test-files/test-4-rdf.ttl
463
+ - spec/test-files/test-8-frame.json
412
464
  - spec/test-files/test-6-input.json
413
- - spec/test-files/test-6-rdf.ttl
414
- - spec/test-files/test-7-compacted.json
415
- - spec/test-files/test-7-context.json
416
- - spec/test-files/test-7-expanded.json
417
- - spec/test-files/test-7-input.json
418
- - spec/test-files/test-7-rdf.ttl
419
- - spec/test-files/test-8-compacted.json
420
465
  - spec/test-files/test-8-context.json
421
466
  - spec/test-files/test-8-expanded.json
422
- - spec/test-files/test-8-frame.json
423
- - spec/test-files/test-8-framed.json
424
- - spec/test-files/test-8-input.json
425
- - spec/test-files/test-8-rdf.ttl
426
- - spec/test-files/test-9-compacted.json
467
+ - spec/test-files/test-6-rdf.ttl
468
+ - spec/test-files/test-7-rdf.ttl
469
+ - spec/test-files/test-3-input.json
470
+ - spec/test-files/test-2-normalized.json
427
471
  - spec/test-files/test-9-context.json
428
- - spec/test-files/test-9-expanded.json
429
- - spec/test-files/test-9-input.json