Sha256: ac8650e9247176c441f5b89aad19da08085fac36f368f000ef15574c82ffe2be
Contents?: true
Size: 953 Bytes
Versions: 8
Compression:
Stored size: 953 Bytes
Contents
# frozen_string_literal: true require 'avm/source_generators/base' require 'eac_ruby_utils/core_ext' module Avm module EacRubyBase1 module SourceGenerators class Base < ::Avm::SourceGenerators::Base module Options common_concern GEMFILE_LOCK_OPTION = :'gemfile-lock' OPTIONS = { GEMFILE_LOCK_OPTION => 'Run "bundle install" at the end' }.freeze module ClassMethods def option_list OPTIONS.merge(dependency_version_options).inject(super) { |a, e| a.option(*e) } end # @return [Hash<Symbol, String>] def dependency_version_options (common_dependency_gems + development_dependency_gems).sort.to_h do |gem_name| ["#{gem_name}_version".dasherize.to_sym, "Version for \"#{gem_name}\" gem."] end end end end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems