method

__materialize__

ruby latest stable - Class: Bundler::LazySpecification

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

__materialize__()
public

No documentation available.

# File lib/bundler/lazy_specification.rb, line 71
    def __materialize__
      search_object = Bundler.feature_flag.specific_platform? || Bundler.settings[:force_ruby_platform] ? self : Dependency.new(name, version)
      @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name
        source.gemspec.tap {|s| s.source = source }
      else
        search = source.specs.search(search_object).last
        if search && Gem::Platform.new(search.platform) != Gem::Platform.new(platform) && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty?
          Bundler.ui.warn "Unable to use the platform-specific (#{search.platform}) version of #{name} (#{version}) "              "because it has different dependencies from the #{platform} version. "              "To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again."
          search = source.specs.search(self).last
        end
        search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
        search
      end
    end