@@ -12,7 +12,7 @@ require 'getoptlong'
1212ASSERTOR = "https://greggkellogg.net/foaf#me"
1313RUN_TIME = Time . now
1414
15- def earl_preamble ( options )
15+ def earl_preamble ( ** options )
1616 options [ :output ] . write File . read ( File . expand_path ( "../../etc/doap#{ '-ntriples' if options [ :ntriples ] } .ttl" , __FILE__ ) )
1717 options [ :output ] . puts %(
1818<> foaf:primaryTopic <https://rubygems.org/gems/rdf#{ '-turtle' unless options [ :ntriples ] } > ;
@@ -43,7 +43,7 @@ def earl_preamble(options)
4343)
4444end
4545
46- def run_tc ( tc , options )
46+ def run_tc ( tc , ** options )
4747 STDERR . write "run #{ tc . name } "
4848
4949 if options [ :verbose ]
@@ -64,7 +64,7 @@ def run_tc(tc, options)
6464 logger : logger
6565 } . merge ( options )
6666
67- reader = RDF ::Reader . for ( tc . action ) . new ( tc . input , options )
67+ reader = RDF ::Reader . for ( tc . action ) . new ( tc . input , ** options )
6868
6969 graph = RDF ::Repository . new
7070 result = nil
@@ -139,7 +139,7 @@ opts = GetoptLong.new(
139139 [ "--verbose" , "-v" , GetoptLong ::NO_ARGUMENT ]
140140)
141141
142- def help ( options )
142+ def help ( ** options )
143143 puts "Usage: #{ $0} [options] [test-number ...]"
144144 puts "Options:"
145145 puts " --debug: Display detailed debug output"
157157
158158opts . each do |opt , arg |
159159 case opt
160- when '--help' then help ( options )
160+ when '--help' then help ( ** options )
161161 when '--dbg' then options [ :level ] = Logger ::DEBUG
162162 when '--earl'
163163 options [ :quiet ] = options [ :earl ] = true
@@ -175,14 +175,14 @@ end
175175
176176manifest = ( options [ :ntriples ] ? Fixtures ::SuiteTest ::NTBASE : Fixtures ::SuiteTest ::BASE ) + "manifest.ttl"
177177
178- earl_preamble ( options ) if options [ :earl ]
178+ earl_preamble ( ** options ) if options [ :earl ]
179179
180180result_count = { }
181181
182182Fixtures ::SuiteTest ::Manifest . open ( manifest ) do |m |
183183 m . entries . each do |tc |
184184 next unless ARGV . empty? || ARGV . any? { |n | tc . name . match ( /#{ n } / ) }
185- run_tc ( tc , options . merge ( result_count : result_count ) )
185+ run_tc ( tc , result_count : result_count , ** options )
186186 end
187187end
188188
0 commit comments