lib/bootsnap/load_path_cache.rb in bootsnap-1.14.0 vs lib/bootsnap/load_path_cache.rb in bootsnap-1.15.0

- old
+ new

@@ -26,16 +26,16 @@ class << self attr_reader(:load_path_cache, :loaded_features_index, :enabled) alias_method :enabled?, :enabled remove_method(:enabled) - def setup(cache_path:, development_mode:, ignore_directories:) + def setup(cache_path:, development_mode:, ignore_directories:, readonly: false) unless supported? warn("[bootsnap/setup] Load path caching is not supported on this implementation of Ruby") if $VERBOSE return end - store = Store.new(cache_path) + store = Store.new(cache_path, readonly: readonly) @loaded_features_index = LoadedFeaturesIndex.new @load_path_cache = Cache.new(store, $LOAD_PATH, development_mode: development_mode) PathScanner.ignored_directories = ignore_directories if ignore_directories