method

sorted

ruby latest stable - Class: Bundler::SpecSet

Method not available on this version

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

sorted()
private

No documentation available.

# File lib/bundler/spec_set.rb, line 137
    def sorted
      rake = @specs.find {|s| s.name == "rake" }
      begin
        @sorted ||= ([rake] + tsort).compact.uniq
      rescue TSort::Cyclic => error
        cgems = extract_circular_gems(error)
        raise CyclicDependencyError, "Your bundle requires gems that depend"            " on each other, creating an infinite loop. Please remove either"            " gem '#{cgems[1]}' or gem '#{cgems[0]}' and try again."
      end
    end