Sha256: 019b02c44b597ef505a2e7a086cc325e134e9517a5f37e7581a53543d17a311a

Contents?: true

Size: 863 Bytes

Versions: 191

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

191 entries across 191 versions & 5 rubygems

Version Path
rubygems-update-3.6.3 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.6.3 lib/bundler/match_remote_metadata.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bundler-2.5.5/lib/bundler/match_remote_metadata.rb
rubygems-update-3.6.2 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.6.2 lib/bundler/match_remote_metadata.rb
rubygems-update-3.6.1 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.6.1 lib/bundler/match_remote_metadata.rb
rubygems-update-3.6.0 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.6.0 lib/bundler/match_remote_metadata.rb
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/match_remote_metadata.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/match_remote_metadata.rb
rubygems-update-3.5.23 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.5.23 lib/bundler/match_remote_metadata.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/match_remote_metadata.rb
rubygems-update-3.5.22 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.5.22 lib/bundler/match_remote_metadata.rb
rubygems-update-3.5.21 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.5.21 lib/bundler/match_remote_metadata.rb
rubygems-update-3.5.20 bundler/lib/bundler/match_remote_metadata.rb
bundler-2.5.20 lib/bundler/match_remote_metadata.rb