Skip to content

Commit e7563b7

Browse files
committed
Make sure that super is called from write_prologue and write_epilogue.
1 parent 20c7892 commit e7563b7

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ source "http://rubygems.org"
22

33
gemspec
44

5-
gem 'rdf', github: "ruby-rdf/rdf", branch: "develop"
6-
gem 'ebnf', github: "gkellogg/ebnf", branch: "develop"
5+
gem 'rdf', git: "https://github.com/ruby-rdf/rdf", branch: "develop"
6+
gem 'ebnf', git: "https://github.com/gkellogg/ebnf", branch: "develop"
77

88
group :development do
99
gem "byebug", platforms: :mri
1010
gem 'psych', platforms: [:mri, :rbx]
1111
end
1212

1313
group :development, :test do
14-
gem 'json-ld', github: "ruby-rdf/json-ld", branch: "develop"
15-
gem 'rdf-spec', github: "ruby-rdf/rdf-spec", branch: "develop"
16-
gem 'rdf-isomorphic', github: "ruby-rdf/rdf-isomorphic", branch: "develop"
17-
gem 'rdf-vocab', github: "ruby-rdf/rdf-vocab", branch: "develop"
18-
gem 'sxp', github: "dryruby/sxp.rb", branch: "develop"
14+
gem 'json-ld', git: "https://github.com/ruby-rdf/json-ld", branch: "develop"
15+
gem 'rdf-spec', git: "https://github.com/ruby-rdf/rdf-spec", branch: "develop"
16+
gem 'rdf-isomorphic', git: "https://github.com/ruby-rdf/rdf-isomorphic", branch: "develop"
17+
gem 'rdf-vocab', git: "https://github.com/ruby-rdf/rdf-vocab", branch: "develop"
18+
gem 'sxp', git: "https://github.com/dryruby/sxp.rb", branch: "develop"
1919
gem "redcarpet", platforms: :ruby
2020
gem 'simplecov', require: false, platform: :mri
2121
gem 'coveralls', require: false, platform: :mri

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ An example of reading Freebase dumps:
7979

8080
r.each_statement {|stmt| puts stmt.to_ntriples}
8181
end
82+
8283
## Implementation Notes
8384
This version uses a hand-written parser using the Lexer from the [EBNF][] gem instead of a general [EBNF][] LL(1) parser for faster performance.
8485

lib/rdf/turtle/streaming_writer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def stream_prologue
1818
preprocess
1919
start_document
2020
@output.puts ""
21-
self
2221
end
2322

2423
##

lib/rdf/turtle/writer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def write_prologue
163163
stream_prologue
164164
else
165165
end
166+
super
166167
end
167168

168169
##

spec/freebase_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'spec_helper'
44
require 'rdf/spec/reader'
55

6-
describe "RDF::Turtle::FreebaseReader" do
6+
describe RDF::Turtle::FreebaseReader do
77
let!(:prefixes) {
88
%q(
99
@prefix ns: <http://rdf.freebase.com/ns/>.

0 commit comments

Comments
 (0)