Sha256: 951f4455e850c415fb5423b0ce33dc540aa5661ad3726ad7d221d47ab9eb69ce

Contents?: true

Size: 519 Bytes

Versions: 18

Compression:

Stored size: 519 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

18 entries across 18 versions & 1 rubygems

Version Path
bootsnap-1.18.4 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.18.3 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.18.2 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.18.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.18.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.17.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.17.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.16.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.15.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.14.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.13.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.12.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.11.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.11.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.10.3 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.10.2 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.10.1 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
bootsnap-1.10.0 lib/bootsnap/load_path_cache/core_ext/loaded_features.rb