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

Version Path
avm-eac_ruby_base1-0.35.1 lib/avm/eac_ruby_base1/source_generators/base/options.rb
eac_tools-0.96.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb
avm-eac_ruby_base1-0.35.0 lib/avm/eac_ruby_base1/source_generators/base/options.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb
avm-eac_ruby_base1-0.34.1 lib/avm/eac_ruby_base1/source_generators/base/options.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb
avm-eac_ruby_base1-0.34.0 lib/avm/eac_ruby_base1/source_generators/base/options.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb