Sha256: 7a43d26130296ee83609da016010cc84cacfdac68dbfa1021f6b7b73e34c4d2c

Contents?: true

Size: 518 Bytes

Versions: 30

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true
class << $LOADED_FEATURES
  alias_method(:delete_without_bootsnap, :delete)
  def delete(key)
    Bootsnap::LoadPathCache.loaded_features_index.purge(key)
    delete_without_bootsnap(key)
  end

  alias_method(:reject_without_bootsnap!, :reject!)
  def reject!(&block)
    backup = dup

    # FIXME: if no block is passed we'd need to return a decorated iterator
    reject_without_bootsnap!(&block)

    Bootsnap::LoadPathCache.loaded_features_index.purge_multi(backup - self)
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bootsnap-1.9.4 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.9.3 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.9.2 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.9.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.9.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.8.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.8.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.7 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.6 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.5 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.4 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.3 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.2 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.1.pre1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.7.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.6.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.5.1-java lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.5.0-java lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.5.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb