lib/deprecation_toolkit.rb in deprecation_toolkit-1.5.1 vs lib/deprecation_toolkit.rb in deprecation_toolkit-2.0.0

- old
+ new

@@ -1,9 +1,11 @@ # frozen_string_literal: true -load('tasks/ci_recorder.rake') +require "active_support" +load("tasks/ci_recorder.rake") + module DeprecationToolkit autoload :DeprecationSubscriber, "deprecation_toolkit/deprecation_subscriber" autoload :Configuration, "deprecation_toolkit/configuration" autoload :Collector, "deprecation_toolkit/collector" autoload :ReadWriteHelper, "deprecation_toolkit/read_write_helper" @@ -32,10 +34,7 @@ DeprecationSubscriber.attach_to(gem_name) end end end -unless defined?(RSpec) - require "deprecation_toolkit/minitest_hook" -end - +require "deprecation_toolkit/minitest_hook" unless defined? RSpec require "deprecation_toolkit/warning"