rdf-raptor 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/raptor/ffi.rb +8 -1
- data/lib/rdf/raptor/ffi/v2.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c42b95d9190c14c278a7070846273170d4a3729d
|
4
|
+
data.tar.gz: 498f96cf1f00e20fb06cb98611b8a1b42158ec76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd1d8457304c061a69c1e77d92ffb34b401783cf45b45bbbebc13cde84c3d7a0ec2fbb6a9543f3f3ffe89c8ad7debf320aece460b3c5a8c3d42b81fc1e9a86dc
|
7
|
+
data.tar.gz: 6930375299c6a2a6efb71179e8452c1e459b4b9ee832d1b3e536660fc611e122673b2f5fdf11f43eb3603ead34a1a83e801b678a4dd7a1955b245b5535b45c3c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/rdf/raptor/ffi.rb
CHANGED
@@ -175,11 +175,18 @@ module RDF::Raptor
|
|
175
175
|
@serializer.serialize_triple(subject, predicate, object)
|
176
176
|
end
|
177
177
|
|
178
|
+
##
|
179
|
+
# @return [void]
|
180
|
+
# @see RDF::Writer#write_prologue
|
181
|
+
def write_prologue
|
182
|
+
@serializer.prefix(self.prefixes)
|
183
|
+
super
|
184
|
+
end
|
185
|
+
|
178
186
|
##
|
179
187
|
# @return [void]
|
180
188
|
# @see RDF::Writer#write_epilogue
|
181
189
|
def write_epilogue
|
182
|
-
@serializer.prefix(self.prefixes)
|
183
190
|
@serializer.finish
|
184
191
|
super
|
185
192
|
end
|
data/lib/rdf/raptor/ffi/v2.rb
CHANGED
@@ -117,13 +117,14 @@ module RDF::Raptor::FFI
|
|
117
117
|
|
118
118
|
# @see http://librdf.org/raptor/api/raptor2-section-serializer.html
|
119
119
|
typedef :pointer, :raptor_serializer
|
120
|
+
typedef :string, :prefix
|
120
121
|
attach_function :raptor_new_serializer, [:raptor_world, :string], :raptor_serializer
|
121
122
|
attach_function :raptor_free_serializer, [:raptor_serializer], :void
|
122
123
|
attach_function :raptor_serializer_start_to_iostream, [:raptor_serializer, :raptor_uri, :raptor_iostream], :int
|
123
124
|
attach_function :raptor_serializer_start_to_filename, [:raptor_serializer, :string], :int
|
124
125
|
attach_function :raptor_serializer_serialize_statement, [:raptor_serializer, :raptor_statement], :int
|
125
126
|
attach_function :raptor_serializer_serialize_end, [:raptor_serializer], :int
|
126
|
-
attach_function :raptor_serializer_set_namespace, [:raptor_serializer, :raptor_uri, :
|
127
|
+
attach_function :raptor_serializer_set_namespace, [:raptor_serializer, :raptor_uri, :prefix], :int
|
127
128
|
#attach_function :raptor_serializer_set_error_handler, [:raptor_serializer, :pointer, :raptor_message_handler], :void
|
128
129
|
#attach_function :raptor_serializer_set_warning_handler, [:raptor_serializer, :pointer, :raptor_message_handler], :void
|
129
130
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-raptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|