lib/flay.rb in flay-2.12.1 vs lib/flay.rb in flay-2.13.0

- old
+ new

@@ -1,25 +1,16 @@ #!/usr/bin/env ruby -w require "optparse" -require "rubygems" require "sexp_processor" require "ruby_parser" require "path_expander" require "timeout" require "zlib" -class File - RUBY19 = "<3".respond_to? :encoding unless defined? RUBY19 # :nodoc: - - class << self - alias :binread :read unless RUBY19 - end -end - class Flay - VERSION = "2.12.1" # :nodoc: + VERSION = "2.13.0" # :nodoc: class Item < Struct.new(:structural_hash, :name, :bonus, :mass, :locations) alias identical? bonus end @@ -157,11 +148,11 @@ warn "error loading #{plugin.inspect}: #{e.message}. skipping..." end end end @@plugins - rescue - # ignore + rescue => e + warn "Error loading plugins: #{e}" if option[:verbose] end # :stopdoc: attr_accessor :mass_threshold, :total, :identical, :masses attr_reader :hashes, :option