lib/importo.rb in importo-2.0.5 vs lib/importo.rb in importo-3.0.9

- old
+ new

@@ -1,29 +1,24 @@ # frozen_string_literal: true -require 'axlsx' -require 'roo' -require 'roo-xls' -require 'slim' -require 'state_machines-activerecord' -# require 'active_storage/downloading' +require_relative "importo/engine" +require_relative "importo/acts_as_import_owner" +require_relative "importo/import_column" +require_relative "importo/import_helpers" +require_relative "importo/configuration" -require_relative 'importo/engine' -require_relative 'importo/acts_as_import_owner' -require_relative 'importo/import_column' -require_relative 'importo/import_helpers' -require_relative 'importo/configuration' - module Importo + extend Configurable + class Error < StandardError; end class DuplicateRowError < Error; end - class << self - attr_reader :config + class RetryError < StandardError + attr_reader :delay - def setup - @config = Configuration.new - yield config + def initialize(msg, delay) + super(msg) + @delay = delay end end end