lib/dry/system/plugins/bootsnap.rb in dry-system-0.9.0 vs lib/dry/system/plugins/bootsnap.rb in dry-system-0.9.1

- old
+ new

@@ -16,15 +16,19 @@ system.use(:env) system.setting :bootsnap, DEFAULT_OPTIONS system.after(:configure, &:setup_bootsnap) end + # @api private + def self.dependencies + 'bootsnap' + end + # Set up bootsnap for faster booting # # @api public def setup_bootsnap return unless bootsnap_available? - require 'bootsnap' unless Object.const_defined?(:Bootsnap) ::Bootsnap.setup(config.bootsnap.merge(cache_dir: root.join('tmp/cache').to_s)) end # @api private def bootsnap_available?