lib/io_streams/bzip2/writer.rb in iostreams-1.0.0.beta2 vs lib/io_streams/bzip2/writer.rb in iostreams-1.0.0.beta3

- old
+ new

@@ -1,10 +1,10 @@ module IOStreams module Bzip2 class Writer < IOStreams::Writer # Write to a stream, compressing with Bzip2 def self.stream(input_stream, original_file_name: nil, **_args) - Utils.load_dependency('rbzip2', 'Bzip2') unless defined?(RBzip2) + Utils.load_soft_dependency('rbzip2', 'Bzip2') unless defined?(RBzip2) begin io = RBzip2.default_adapter::Compressor.new(input_stream) yield io ensure