lib/io_streams/bzip2/reader.rb in iostreams-0.15.0 vs lib/io_streams/bzip2/reader.rb in iostreams-0.16.0

- old
+ new

@@ -1,9 +1,9 @@ module IOStreams module Bzip2 class Reader # Read from a Bzip2 file or stream, decompressing the contents as it is read - def self.open(file_name_or_io, _=nil, &block) + def self.open(file_name_or_io, **args, &block) begin require 'rbzip2' unless defined?(RBzip2) rescue LoadError => e raise(LoadError, "Please install the 'rbzip2' gem for Bzip2 streaming support. #{e.message}") end