rdf-trix 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/etc/doap.xml +1 -1
- data/lib/rdf/trix.rb +2 -2
- data/lib/rdf/trix/writer.rb +9 -1
- data/lib/rdf/trix/writer/nokogiri.rb +1 -0
- data/lib/rdf/trix/writer/rexml.rb +1 -0
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f4d3626bb11b89693bf2bb817e62621873cec9d
|
4
|
+
data.tar.gz: 0eac6967d3e5ebf92862a852ec72f81daa3b73d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54b6a7ee00d9e039237fcdd15e2487b6fd49d1a8a533df1c422ebca8419de6b23241f7837e142d43a8fb7bbf38898fe2265d07ed0601c69d6f1c6eab917be78
|
7
|
+
data.tar.gz: 282b1b60aa9df13c1809175578a77a506112aa7d287c1e88dbb27342ee0faa5b07660d070f2de14e44ba137d1b58bb5561e121e75c37c343f86def7c5e5cec90
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
data/etc/doap.xml
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
<triple>
|
45
45
|
<uri>http://rubygems.org/gems/rdf-trix</uri>
|
46
46
|
<uri>http://usefulinc.com/ns/doap#download-page</uri>
|
47
|
-
<uri>http://
|
47
|
+
<uri>http://rubygems.org/gems/rdf-trix/</uri>
|
48
48
|
</triple>
|
49
49
|
<triple>
|
50
50
|
<uri>http://rubygems.org/gems/rdf-trix</uri>
|
data/lib/rdf/trix.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'rdf'
|
1
|
+
require 'rdf'
|
2
2
|
|
3
3
|
module RDF
|
4
4
|
##
|
@@ -21,7 +21,7 @@ module RDF
|
|
21
21
|
# end
|
22
22
|
# end
|
23
23
|
#
|
24
|
-
# @see http://
|
24
|
+
# @see http://rubygems.org/gems/rdf
|
25
25
|
# @see http://www.w3.org/2004/03/trix/
|
26
26
|
# @see http://www.hpl.hp.com/techreports/2004/HPL-2004-56.pdf
|
27
27
|
# @see http://swdev.nokia.com/trix/trix.html
|
data/lib/rdf/trix/writer.rb
CHANGED
@@ -105,7 +105,15 @@ module RDF::TriX
|
|
105
105
|
|
106
106
|
@encoding = (options[:encoding] || 'utf-8').to_s
|
107
107
|
initialize_xml(options)
|
108
|
-
|
108
|
+
|
109
|
+
super do
|
110
|
+
if block_given?
|
111
|
+
case block.arity
|
112
|
+
when 0 then instance_eval(&block)
|
113
|
+
else block.call(self)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
109
117
|
end
|
110
118
|
|
111
119
|
##
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-trix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdf-spec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.6'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-its
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.9'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: nokogiri
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.8'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.8'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: libxml-ruby
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.0'
|
111
111
|
description: RDF.rb extension for parsing/serializing TriX data.
|
112
112
|
email: public-rdf-ruby@w3.org
|
113
113
|
executables: []
|
@@ -142,17 +142,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 2.2.2
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
152
|
+
rubyforge_project:
|
153
|
+
rubygems_version: 2.6.12
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: TriX support for RDF.rb.
|
157
157
|
test_files: []
|
158
|
-
has_rdoc: false
|