json-ld 1.1.3 → 1.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3706821b8a066ed641ac19ac5d098cc8475e8a4
4
- data.tar.gz: 0aa9613452431fc878ce23724ee7830056ce52a4
3
+ metadata.gz: ca0e3cc4b404992e98906955e4f18b6db85b72ad
4
+ data.tar.gz: 23742db95aa45683dc15afb31dd5eb0b9d250b3a
5
5
  SHA512:
6
- metadata.gz: 4e539bb0fa82a1e0f3c7a30868f255812d8410cd437dcd5744171c0e34da2223b22e4b8bb6c195bb77ed328dc16234f5287b7c2920457e918691b7ba0a384733
7
- data.tar.gz: 1fdec19c7d4fc56d018bf102883be735c5f711ae233f844aeedb8ccb70747be9993c09092ccaf468fe54351af76fda6f0405278c44a56b3968974a0e11457b1b
6
+ metadata.gz: 39c2c3ab9f3bfda908845ecd2d24af85dda870a7b636079e8e0360e36682a662f3b9e61552542f4fc1b5e3708872b70be915c534e735214d3f3542cc44afa15e
7
+ data.tar.gz: b83c14a4a432554db8e87e93f54ab622fa462a30034fdb29a2fad4f2fe344aa0fe21092aa7b6d8e48220570f597a0ec2981af87644d15061a0c345a0507ac11c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.3.1
@@ -58,10 +58,13 @@ module JSON::LD
58
58
  ##
59
59
  # @private
60
60
  # @see RDF::Reader#each_triple
61
- def each_triple
62
- JSON::LD::API.toRdf(@doc, @options) do |statement|
63
- yield *statement.to_triple
61
+ def each_triple(&block)
62
+ if block_given?
63
+ JSON::LD::API.toRdf(@doc, @options) do |statement|
64
+ yield *statement.to_triple
65
+ end
64
66
  end
67
+ enum_for(:each_triple)
65
68
  end
66
69
  end
67
70
  end
@@ -4,6 +4,15 @@ require 'spec_helper'
4
4
  require 'rdf/spec/reader'
5
5
 
6
6
  describe JSON::LD::Reader do
7
+ let!(:doap) {File.expand_path("../../etc/doap.jsonld", __FILE__)}
8
+ let!(:doap_nt) {File.expand_path("../../etc/doap.nt", __FILE__)}
9
+ let!(:doap_count) {File.open(doap_nt).each_line.to_a.length}
10
+
11
+ before(:each) do
12
+ @reader_input = File.read(doap)
13
+ @reader = JSON::LD::Reader.new(@reader_input)
14
+ @reader_count = doap_count
15
+ end
7
16
  before :each do
8
17
  @reader = JSON::LD::Reader.new(StringIO.new(""))
9
18
  end
metadata CHANGED
@@ -1,163 +1,162 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - "~>"
22
+ - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.1'
25
+ prerelease: false
26
+ type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: equivalent-xml
29
- requirement: !ruby/object:Gem::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.4'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - "~>"
36
+ - - ~>
39
37
  - !ruby/object:Gem::Version
40
38
  version: '0.4'
39
+ prerelease: false
40
+ type: :development
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: open-uri-cached
43
- requirement: !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.0'
48
- - - ">="
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.0.5
51
- type: :development
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
51
+ requirement: !ruby/object:Gem::Requirement
54
52
  requirements:
55
- - - "~>"
53
+ - - ~>
56
54
  - !ruby/object:Gem::Version
57
55
  version: '0.0'
58
- - - ">="
56
+ - - '>='
59
57
  - !ruby/object:Gem::Version
60
58
  version: 0.0.5
59
+ prerelease: false
60
+ type: :development
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: yard
63
- requirement: !ruby/object:Gem::Requirement
63
+ version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0.8'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
68
+ requirement: !ruby/object:Gem::Requirement
71
69
  requirements:
72
- - - "~>"
70
+ - - ~>
73
71
  - !ruby/object:Gem::Version
74
72
  version: '0.8'
73
+ prerelease: false
74
+ type: :development
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
- requirement: !ruby/object:Gem::Requirement
77
+ version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2.14'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
82
+ requirement: !ruby/object:Gem::Requirement
85
83
  requirements:
86
- - - "~>"
84
+ - - ~>
87
85
  - !ruby/object:Gem::Version
88
86
  version: '2.14'
87
+ prerelease: false
88
+ type: :development
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rdf-spec
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
91
96
  requirement: !ruby/object:Gem::Requirement
92
97
  requirements:
93
- - - "~>"
98
+ - - ~>
94
99
  - !ruby/object:Gem::Version
95
100
  version: '1.1'
96
- type: :development
97
101
  prerelease: false
102
+ type: :development
103
+ - !ruby/object:Gem::Dependency
104
+ name: rdf-turtle
98
105
  version_requirements: !ruby/object:Gem::Requirement
99
106
  requirements:
100
- - - "~>"
107
+ - - ~>
101
108
  - !ruby/object:Gem::Version
102
109
  version: '1.1'
103
- - !ruby/object:Gem::Dependency
104
- name: rdf-turtle
105
110
  requirement: !ruby/object:Gem::Requirement
106
111
  requirements:
107
- - - "~>"
112
+ - - ~>
108
113
  - !ruby/object:Gem::Version
109
114
  version: '1.1'
110
- type: :development
111
115
  prerelease: false
116
+ type: :development
117
+ - !ruby/object:Gem::Dependency
118
+ name: rdf-trig
112
119
  version_requirements: !ruby/object:Gem::Requirement
113
120
  requirements:
114
- - - "~>"
121
+ - - ~>
115
122
  - !ruby/object:Gem::Version
116
123
  version: '1.1'
117
- - !ruby/object:Gem::Dependency
118
- name: rdf-trig
119
124
  requirement: !ruby/object:Gem::Requirement
120
125
  requirements:
121
- - - "~>"
126
+ - - ~>
122
127
  - !ruby/object:Gem::Version
123
128
  version: '1.1'
124
- type: :development
125
129
  prerelease: false
130
+ type: :development
131
+ - !ruby/object:Gem::Dependency
132
+ name: rdf-isomorphic
126
133
  version_requirements: !ruby/object:Gem::Requirement
127
134
  requirements:
128
- - - "~>"
135
+ - - ~>
129
136
  - !ruby/object:Gem::Version
130
137
  version: '1.1'
131
- - !ruby/object:Gem::Dependency
132
- name: rdf-isomorphic
133
138
  requirement: !ruby/object:Gem::Requirement
134
139
  requirements:
135
- - - "~>"
140
+ - - ~>
136
141
  - !ruby/object:Gem::Version
137
142
  version: '1.1'
138
- type: :development
139
143
  prerelease: false
144
+ type: :development
145
+ - !ruby/object:Gem::Dependency
146
+ name: rdf-xsd
140
147
  version_requirements: !ruby/object:Gem::Requirement
141
148
  requirements:
142
- - - "~>"
149
+ - - ~>
143
150
  - !ruby/object:Gem::Version
144
151
  version: '1.1'
145
- - !ruby/object:Gem::Dependency
146
- name: rdf-xsd
147
152
  requirement: !ruby/object:Gem::Requirement
148
153
  requirements:
149
- - - "~>"
154
+ - - ~>
150
155
  - !ruby/object:Gem::Version
151
156
  version: '1.1'
152
- type: :development
153
157
  prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '1.1'
159
- description: JSON::LD parses and serializes JSON-LD into RDF and implements expansion,
160
- compaction and framing API interfaces.
158
+ type: :development
159
+ description: JSON::LD parses and serializes JSON-LD into RDF and implements expansion, compaction and framing API interfaces.
161
160
  email: public-linked-json@w3.org
162
161
  executables:
163
162
  - jsonld
@@ -269,24 +268,24 @@ homepage: http://github.com/ruby-rdf/json-ld
269
268
  licenses:
270
269
  - Public Domain
271
270
  metadata: {}
272
- post_install_message:
271
+ post_install_message:
273
272
  rdoc_options: []
274
273
  require_paths:
275
274
  - lib
276
275
  required_ruby_version: !ruby/object:Gem::Requirement
277
276
  requirements:
278
- - - ">="
277
+ - - '>='
279
278
  - !ruby/object:Gem::Version
280
279
  version: 1.9.2
281
280
  required_rubygems_version: !ruby/object:Gem::Requirement
282
281
  requirements:
283
- - - ">="
282
+ - - '>='
284
283
  - !ruby/object:Gem::Version
285
284
  version: '0'
286
285
  requirements: []
287
286
  rubyforge_project: json-ld
288
287
  rubygems_version: 2.2.2
289
- signing_key:
288
+ signing_key:
290
289
  specification_version: 4
291
290
  summary: JSON-LD reader/writer for Ruby.
292
291
  test_files:
@@ -311,9 +310,9 @@ test_files:
311
310
  - spec/suite_helper.rb
312
311
  - spec/suite_remote_doc_spec.rb
313
312
  - spec/suite_to_rdf_spec.rb
314
- - spec/support/extensions.rb
315
313
  - spec/to_rdf_spec.rb
316
314
  - spec/writer_spec.rb
315
+ - spec/support/extensions.rb
317
316
  - spec/test-files/test-1-automatic.json
318
317
  - spec/test-files/test-1-compacted.json
319
318
  - spec/test-files/test-1-context.json