Sha256: 07caef48d4fcd3c87bf598f743015a504e1de35c8bcd1889c5aa8c288fa121cd

Contents?: true

Size: 601 Bytes

Versions: 19

Compression:

Stored size: 601 Bytes

Contents

# -*- coding: utf-8 -*-
module Gemirro
  ##
  # The VersionsFetcher class is used for retrieving the file that contains all
  # registered Gems and their versions.
  #
  # @!attribute [r] source
  # @return [Source]
  #
  class VersionsFetcher
    attr_reader :source

    ##
    # @param [Source] source
    #
    def initialize(source)
      @source = source
    end

    ##
    # @return [Gemirro::VersionsFile]
    #
    def fetch
      Gemirro.configuration.logger.info(
        "Updating #{source.name} (#{source.host})"
      )

      VersionsFile.load(source.fetch_versions)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gemirro-0.10.5 lib/gemirro/versions_fetcher.rb
gemirro-0.10.4 lib/gemirro/versions_fetcher.rb
gemirro-0.10.3 lib/gemirro/versions_fetcher.rb
gemirro-0.10.2 lib/gemirro/versions_fetcher.rb
gemirro-0.10.1 lib/gemirro/versions_fetcher.rb
gemirro-0.10.0 lib/gemirro/versions_fetcher.rb
gemirro-0.9.1 lib/gemirro/versions_fetcher.rb
gemirro-0.9.0 lib/gemirro/versions_fetcher.rb
gemirro-0.8.1 lib/gemirro/versions_fetcher.rb
gemirro-0.8.0 lib/gemirro/versions_fetcher.rb
gemirro-0.7.0 lib/gemirro/versions_fetcher.rb
gemirro-0.6.0 lib/gemirro/versions_fetcher.rb
gemirro-0.5.0 lib/gemirro/versions_fetcher.rb
gemirro-0.4.0 lib/gemirro/versions_fetcher.rb
gemirro-0.3.0 lib/gemirro/versions_fetcher.rb
gemirro-0.2.0 lib/gemirro/versions_fetcher.rb
gemirro-0.1.0 lib/gemirro/versions_fetcher.rb
gemirro-0.0.2 lib/gemirro/versions_fetcher.rb
gemirro-0.0.1 lib/gemirro/versions_fetcher.rb