rdf 1.0.10 → 1.0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/VERSION +1 -1
- data/lib/rdf/reader.rb +11 -1
- metadata +55 -56
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MmYxNjVmODNjNDE0NWQ2OWI4MTVjZDRhNDE0NzFiYTgwMzk2NjkyZmMyODU3
|
10
|
-
NTI5YWQ3OTI4NWYxYThlNDk1ZGM4OGNhMGU0NzgzYmVkNzk1ZjIxZTJiM2Ix
|
11
|
-
YzlhMTEyNGEzMThhZjhiNzdjODA2ZjM5NmE0YjE1NGRhODhhYjE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Njg1NjhiNDllYjM1ZTBkMDEyMjgxMDJmNWYwMjRmOTgzNDc4NGYxNjlkNjQ5
|
14
|
-
YWU3YmEyMWFlOThiYTA3ZDY2NWFiOTA3NjNiYjliMTczMTlhNDM3MWU0OGM2
|
15
|
-
NmE0MDliODBjZTBjOTY3NzVlMmRjZDAyNmU2NTM4MzFiNDJjZDc=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f0968023ff3965f90f13a86a66e5bc8528924b88
|
4
|
+
data.tar.gz: 451f890cff435847bd47c9e1d4aad7e14338cb24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 57289d11511670c4a50b09d8f3f895695203c2c225ae84c846056820f971278f964608e8ce79b75f668d7b30581ce0175a3fe9aa50e7ffc93555939e428e582c
|
7
|
+
data.tar.gz: 82f1c2b0ad7acdb03f644ee6252263d69335951909c8610b6e7d365f23e44ed769dcd2f41504fc09a20988d3eacc01f14512170d5db5ce1febd87f47f051dde5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.10
|
1
|
+
1.0.10.1
|
data/lib/rdf/reader.rb
CHANGED
@@ -488,7 +488,17 @@ module RDF
|
|
488
488
|
@line = @line_rest || @input.readline
|
489
489
|
@line, @line_rest = @line.split("\r", 2)
|
490
490
|
@line = @line.to_s.chomp
|
491
|
-
|
491
|
+
begin
|
492
|
+
@line.encode!(encoding) if @line.respond_to?(:encode!)
|
493
|
+
rescue Encoding::UndefinedConversionError, Encoding::InvalidByteSequenceError, Encoding::ConverterNotFoundError
|
494
|
+
# It is likely the persisted line was not encoded on initial write
|
495
|
+
# (i.e. persisted via RDF <= 1.0.9 and read via RDF >= 1.0.10)
|
496
|
+
#
|
497
|
+
# Encoding::UndefinedConversionError is raised by MRI.
|
498
|
+
# Encoding::InvalidByteSequenceError is raised by jruby >= 1.7.5
|
499
|
+
# Encoding::ConverterNotFoundError is raised by jruby < 1.7.5
|
500
|
+
@line = RDF::NTriples::Reader.unescape(@line).encode!(encoding)
|
501
|
+
end
|
492
502
|
@line
|
493
503
|
end
|
494
504
|
|
metadata
CHANGED
@@ -1,89 +1,88 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.10
|
4
|
+
version: 1.0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
8
|
- Ben Lavender
|
9
9
|
- Gregg Kellogg
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
17
|
-
|
17
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '2.3'
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
|
-
- -
|
24
|
+
- - '>='
|
27
25
|
- !ruby/object:Gem::Version
|
28
26
|
version: '2.3'
|
27
|
+
prerelease: false
|
28
|
+
type: :runtime
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rdf-spec
|
31
|
-
|
31
|
+
version_requirements: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 1.0.9
|
36
|
-
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
39
37
|
requirements:
|
40
38
|
- - ~>
|
41
39
|
- !ruby/object:Gem::Version
|
42
40
|
version: 1.0.9
|
41
|
+
prerelease: false
|
42
|
+
type: :development
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rdf-rdfxml
|
45
|
-
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - '>='
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
|
-
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
53
51
|
requirements:
|
54
|
-
- -
|
52
|
+
- - '>='
|
55
53
|
- !ruby/object:Gem::Version
|
56
54
|
version: '0'
|
55
|
+
prerelease: false
|
56
|
+
type: :development
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rspec
|
59
|
-
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '2.14'
|
64
|
-
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
67
65
|
requirements:
|
68
|
-
- -
|
66
|
+
- - '>='
|
69
67
|
- !ruby/object:Gem::Version
|
70
68
|
version: '2.14'
|
69
|
+
prerelease: false
|
70
|
+
type: :development
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: yard
|
73
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0.8'
|
78
|
-
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
81
79
|
requirements:
|
82
|
-
- -
|
80
|
+
- - '>='
|
83
81
|
- !ruby/object:Gem::Version
|
84
82
|
version: '0.8'
|
85
|
-
|
86
|
-
|
83
|
+
prerelease: false
|
84
|
+
type: :development
|
85
|
+
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.
|
87
86
|
email: public-rdf-ruby@w3.org
|
88
87
|
executables:
|
89
88
|
- rdf
|
@@ -98,8 +97,19 @@ files:
|
|
98
97
|
- bin/rdf
|
99
98
|
- etc/doap.nt
|
100
99
|
- lib/df.rb
|
100
|
+
- lib/rdf.rb
|
101
101
|
- lib/rdf/cli.rb
|
102
102
|
- lib/rdf/format.rb
|
103
|
+
- lib/rdf/nquads.rb
|
104
|
+
- lib/rdf/ntriples.rb
|
105
|
+
- lib/rdf/query.rb
|
106
|
+
- lib/rdf/reader.rb
|
107
|
+
- lib/rdf/repository.rb
|
108
|
+
- lib/rdf/transaction.rb
|
109
|
+
- lib/rdf/util.rb
|
110
|
+
- lib/rdf/version.rb
|
111
|
+
- lib/rdf/vocab.rb
|
112
|
+
- lib/rdf/writer.rb
|
103
113
|
- lib/rdf/mixin/countable.rb
|
104
114
|
- lib/rdf/mixin/durable.rb
|
105
115
|
- lib/rdf/mixin/enumerable.rb
|
@@ -112,6 +122,13 @@ files:
|
|
112
122
|
- lib/rdf/mixin/writable.rb
|
113
123
|
- lib/rdf/model/graph.rb
|
114
124
|
- lib/rdf/model/list.rb
|
125
|
+
- lib/rdf/model/literal.rb
|
126
|
+
- lib/rdf/model/node.rb
|
127
|
+
- lib/rdf/model/resource.rb
|
128
|
+
- lib/rdf/model/statement.rb
|
129
|
+
- lib/rdf/model/term.rb
|
130
|
+
- lib/rdf/model/uri.rb
|
131
|
+
- lib/rdf/model/value.rb
|
115
132
|
- lib/rdf/model/literal/boolean.rb
|
116
133
|
- lib/rdf/model/literal/date.rb
|
117
134
|
- lib/rdf/model/literal/datetime.rb
|
@@ -123,33 +140,18 @@ files:
|
|
123
140
|
- lib/rdf/model/literal/time.rb
|
124
141
|
- lib/rdf/model/literal/token.rb
|
125
142
|
- lib/rdf/model/literal/xml.rb
|
126
|
-
- lib/rdf/model/literal.rb
|
127
|
-
- lib/rdf/model/node.rb
|
128
|
-
- lib/rdf/model/resource.rb
|
129
|
-
- lib/rdf/model/statement.rb
|
130
|
-
- lib/rdf/model/term.rb
|
131
|
-
- lib/rdf/model/uri.rb
|
132
|
-
- lib/rdf/model/value.rb
|
133
|
-
- lib/rdf/nquads.rb
|
134
143
|
- lib/rdf/ntriples/format.rb
|
135
144
|
- lib/rdf/ntriples/reader.rb
|
136
145
|
- lib/rdf/ntriples/writer.rb
|
137
|
-
- lib/rdf/ntriples.rb
|
138
146
|
- lib/rdf/query/hash_pattern_normalizer.rb
|
139
147
|
- lib/rdf/query/pattern.rb
|
140
148
|
- lib/rdf/query/solution.rb
|
141
149
|
- lib/rdf/query/solutions.rb
|
142
150
|
- lib/rdf/query/variable.rb
|
143
|
-
- lib/rdf/query.rb
|
144
|
-
- lib/rdf/reader.rb
|
145
|
-
- lib/rdf/repository.rb
|
146
|
-
- lib/rdf/transaction.rb
|
147
151
|
- lib/rdf/util/aliasing.rb
|
148
152
|
- lib/rdf/util/cache.rb
|
149
153
|
- lib/rdf/util/file.rb
|
150
154
|
- lib/rdf/util/uuid.rb
|
151
|
-
- lib/rdf/util.rb
|
152
|
-
- lib/rdf/version.rb
|
153
155
|
- lib/rdf/vocab/cc.rb
|
154
156
|
- lib/rdf/vocab/cert.rb
|
155
157
|
- lib/rdf/vocab/dc.rb
|
@@ -170,31 +172,28 @@ files:
|
|
170
172
|
- lib/rdf/vocab/wot.rb
|
171
173
|
- lib/rdf/vocab/xhtml.rb
|
172
174
|
- lib/rdf/vocab/xsd.rb
|
173
|
-
- lib/rdf/vocab.rb
|
174
|
-
- lib/rdf/writer.rb
|
175
|
-
- lib/rdf.rb
|
176
175
|
homepage: http://ruby-rdf.github.com/
|
177
176
|
licenses:
|
178
177
|
- Public Domain
|
179
178
|
metadata: {}
|
180
|
-
post_install_message:
|
179
|
+
post_install_message:
|
181
180
|
rdoc_options: []
|
182
181
|
require_paths:
|
183
182
|
- lib
|
184
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
185
184
|
requirements:
|
186
|
-
- -
|
185
|
+
- - '>='
|
187
186
|
- !ruby/object:Gem::Version
|
188
187
|
version: 1.8.7
|
189
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
189
|
requirements:
|
191
|
-
- -
|
190
|
+
- - '>='
|
192
191
|
- !ruby/object:Gem::Version
|
193
192
|
version: '0'
|
194
193
|
requirements: []
|
195
194
|
rubyforge_project: rdf
|
196
|
-
rubygems_version: 2.
|
197
|
-
signing_key:
|
195
|
+
rubygems_version: 2.1.9
|
196
|
+
signing_key:
|
198
197
|
specification_version: 4
|
199
198
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|
200
199
|
test_files: []
|