Sha256: 019b02c44b597ef505a2e7a086cc325e134e9517a5f37e7581a53543d17a311a

Contents?: true

Size: 863 Bytes

Versions: 192

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module Bundler
  module FetchMetadata
    # A fallback is included because the original version of the specification
    # API didn't include that field, so some marshalled specs in the index have it
    # set to +nil+.
    def matches_current_ruby?
      @required_ruby_version ||= _remote_specification.required_ruby_version || Gem::Requirement.default

      super
    end

    def matches_current_rubygems?
      # A fallback is included because the original version of the specification
      # API didn't include that field, so some marshalled specs in the index have it
      # set to +nil+.
      @required_rubygems_version ||= _remote_specification.required_rubygems_version || Gem::Requirement.default

      super
    end
  end

  module MatchRemoteMetadata
    include MatchMetadata

    prepend FetchMetadata
  end
end

Version data entries

192 entries across 192 versions & 6 rubygems

Version Path
rubygems-update-3.4.0 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.4.0 lib/bundler/match_remote_metadata.rb
rubygems-update-3.3.26 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.3.26 lib/bundler/match_remote_metadata.rb
rubygems-update-3.3.25 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.3.25 lib/bundler/match_remote_metadata.rb
rubygems-update-3.3.24 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.3.24 lib/bundler/match_remote_metadata.rb
rubygems-update-3.3.23 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.3.23 lib/bundler/match_remote_metadata.rb
rubygems-update-3.3.22 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.3.22 lib/bundler/match_remote_metadata.rb