Skip to content

Commit efee0b8

Browse files
committed
Finish keyword-arguments
1 parent 5d90a01 commit efee0b8

10 files changed

Lines changed: 15 additions & 17 deletions

File tree

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ script: "bundle exec rspec spec"
44
env:
55
- CI=true
66
rvm:
7-
- 1.9.3
87
- 2.0
98
- 2.1
10-
- 2.2
11-
- jruby
9+
- 2.2.4
10+
- jruby-9.0.4.0
1211
- rbx-2
1312
gemfile:
1413
- Gemfile
@@ -20,4 +19,4 @@ cache: bundler
2019
sudo: false
2120
matrix:
2221
allow_failures:
23-
- rvm: jruby
22+
- rvm: rbx-2

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ end
1919
group :debug do
2020
gem "wirble"
2121
gem "ruby-debug", platforms: :jruby
22-
gem "debugger", platforms: :mri_19
23-
gem "byebug", platforms: [:mri_20, :mri_21]
22+
gem "byebug", platform: :mri
2423
end
2524

2625
platforms :rbx do

Gemfile-pure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ end
1818
group :debug do
1919
gem "wirble"
2020
gem "ruby-debug", platforms: :jruby
21-
gem "debugger", platforms: :mri_19
22-
gem "byebug", platforms: [:mri_20, :mri_21]
21+
gem "byebug", platform: :mri
2322
end
2423

2524
platforms :rbx do

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Install with `gem install rdf-rdfxml`
1818

1919
* 100% free and unencumbered [public domain](http://unlicense.org/) software.
2020
* Implements a complete parser for [RDF/XML][].
21-
* Compatible with Ruby >= 1.9.2.
21+
* Compatible with Ruby >= 2.0.
2222

2323
## Usage:
2424
Instantiate a parser and parse source, specifying type and base-URL
@@ -40,7 +40,7 @@ Write a graph to a file:
4040
end
4141

4242
## Dependencies
43-
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.1)
43+
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 2.0)
4444
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.6.0)
4545

4646
## Documentation

etc/earl.ttl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
55
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
66
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
7+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
78

89
<http://rubygems.org/gems/rdf-rdfxml> a doap:Project;
910
dc:creator <http://greggkellogg.net/foaf#me>;
@@ -28,7 +29,7 @@
2829
foaf:maker <http://greggkellogg.net/foaf#me> .
2930

3031
<> foaf:primaryTopic <http://rubygems.org/gems/rdf-rdfxml> ;
31-
dct:issued "2014-01-29T11:10:43-08:00"^^xsd:dateTime ;
32+
dc:issued "2014-01-29T11:10:43-08:00"^^xsd:dateTime ;
3233
foaf:maker <http://greggkellogg.net/foaf#me> .
3334

3435
<http://greggkellogg.net/foaf#me> a foaf:Person, earl:Assertor;

lib/rdf/rdfxml/reader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def add_error(node, message = "", &block)
283283
# @return [Statement] Added statement
284284
# @raise [RDF::ReaderError] Checks parameter types and raises if they are incorrect if validating.
285285
def add_triple(node, subject, predicate, object)
286-
statement = RDF::Statement.new(subject, predicate, object)
286+
statement = RDF::Statement(subject, predicate, object)
287287
add_debug(node) {"statement: #{statement}"}
288288
@callback.call(statement)
289289
end

lib/rdf/rdfxml/writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def render_property(predicate, objects, options = {}, &block)
234234
# Separate out the objects which are lists and render separately
235235
lists = objects.
236236
select(&:node?).
237-
map {|o| RDF::List.new(o, @graph)}.
237+
map {|o| RDF::List.new(subject: o, graph: @graph)}.
238238
select {|l| l.valid? && l.none?(&:literal?)}
239239

240240
unless lists.empty?

rdf-rdfxml.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
2020
gem.require_paths = %w(lib)
2121
gem.has_rdoc = false
2222

23-
gem.required_ruby_version = '>= 1.9.3'
23+
gem.required_ruby_version = '>= 2.0.0'
2424
gem.requirements = []
2525

2626
gem.add_runtime_dependency 'rdf', '~> 1.99'

spec/suite_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ def base
119119

120120
# Alias data and query
121121
def input
122-
RDF::Util::File.open_file(action)
122+
RDF::Util::File.open_file(action) {|f| f.read}
123123
end
124124

125125
def expected
126-
RDF::Util::File.open_file(result)
126+
RDF::Util::File.open_file(result) {|f| f.read}
127127
end
128128

129129
def evaluate?

spec/suite_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
specify "#{t.name}" do
1414
t.logger = RDF::Spec.logger
1515
t.logger.info t.inspect
16-
t.logger.info "source:\n#{t.input.read}"
16+
t.logger.info "source:\n#{t.input}"
1717

1818
reader = RDF::RDFXML::Reader.new(t.input,
1919
base_uri: t.base,

0 commit comments

Comments
 (0)