lib/homebrew_automation/bintray/version.rb
def gather_bottles
      resp = @client.get_all_files_in_version(@repo_name, @package_name, @version_name)
      _assert_match((200..207), resp.code)
      json = JSON.parse(resp.body)
      @logger.info!("All files in Bintray Version: #{json}")
      _assert_match(Array, json)
      pairs = json.map do |f|
        os = _parse_for_os(f['name'])
        checksum = f['sha256']
        [os, checksum]
      end.select { |o, _| not o.empty? }
      Hash[pairs]
    end
# Download metadata about files that exist on Bintray for this +Version+
#
# @return [Hash] mapping from OS (as appears in part of the filenames) to sha256 checksum
Download metadata about files that exist on Bintray for this +Version+
Download metadata about files that exist on Bintray for this + Version +
def gather_bottles
      resp = @client.get_all_files_in_version(@repo_name, @package_name, @version_name)
      _assert_match((200..207), resp.code)
      json = JSON.parse(resp.body)
      @logger.info!("All files in Bintray Version: #{json}")
      _assert_match(Array, json)
      pairs = json.map do |f|
        os = _parse_for_os(f['name'])
        checksum = f['sha256']
        [os, checksum]
      end.select { |o, _| not o.empty? }
      Hash[pairs]
    end
def gather_bottles resp = @client . get_all_files_in_version ( @repo_name , @package_name , @version_name ) _assert_match ( ( 200 .. 207 ) , resp . code ) json = JSON . parse ( resp . body ) @logger . info! ( "All files in Bintray Version: #{json}" ) _assert_match ( Array , json ) pairs = json . map do | f | os = _parse_for_os ( f [ 'name' ] ) checksum = f [ 'sha256' ] [ os , checksum ] end . select { | o , _ | not o . empty? } Hash [ pairs ] end
Download metadata about files that exist on Bintray for this +Version+
Download metadata about files that exist on Bintray for this + Version +
mapping from OS (as appears in part of the filenames) to sha256 checksum
mapping from OS ( as appears in part of the filenames ) to sha256 checksum
Hash