lib/bootstrap-email/setup.rb in bootstrap-email-1.1.7 vs lib/bootstrap-email/setup.rb in bootstrap-email-1.2.0

- old
+ new

@@ -1,29 +1,21 @@ # frozen_string_literal: true module BootstrapEmail class << self - def config - @config ||= BootstrapEmail::Config.new - @config + def static_config + @static_config ||= BootstrapEmail::ConfigStore.new end - def load_options(options) - @config ||= BootstrapEmail::Config.new - @config.load_options(options) - @config - end - def configure - @config ||= BootstrapEmail::Config.new - yield @config + yield static_config end def reset_config! - remove_instance_variable :@config if defined?(@config) + remove_instance_variable :@static_config if defined?(@static_config) end def clear_sass_cache! - FileUtils.rm_rf(BootstrapEmail.config.sass_cache_location) + FileUtils.rm_rf(BootstrapEmail::Config.new.sass_cache_location) end end end