Sha256: 4bdbffceea131d88a1e853ec8e256bfa09e9951376bb3352a62cf6f6b775ff28
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 Bytes
Contents
# frozen_string_literal: true require 'xezat' module Xezat module Command class Bump def get_compilers(languages, _variables) Xezat.logger.debug('Collect compilers') compiler_file = File.expand_path(File.join(DATA_DIR, 'compilers.json')) compiler_candidates = JSON.parse(File.read(compiler_file)) compilers = [] languages.uniq.each do |language| next unless compiler_candidates.key?(language) compiler_candidate = compiler_candidates[language] compilers << compiler_candidate['package'].intern next unless compiler_candidate.key?('dependencies') compiler_candidate['dependencies'].each do |dependency| compilers << dependency.intern end end compilers.uniq end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xezat-0.2.0 | lib/xezat/command/bump/compiler.rb |
xezat-0.1.2 | lib/xezat/command/bump/compiler.rb |