Sha256: 29c9be1de10043c09764817000281f47ac45171b21d05fa83e4532c0809a3d35

Contents?: true

Size: 1.02 KB

Versions: 132

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base1/sources/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module EacRailsBase0
    module Sources
      class Base < ::Avm::EacRailsBase1::Sources::Base
        CONFIG_RU_SUBPATH = 'config.ru'
        EAC_RAILS_BASE0_GEMNAME = 'eac_rails_base0'
        EAC_RAILS_BASE0_TEST_NAME = 'eac_rails_base0'
        EAC_RAILS_BASE0_TEST_RAKE_TASK_NAME = 'eac_rails_base0:test'
        SUBS_INCLUDE_PATHS_DEFAULT = ['sub/*/*'].freeze

        def config_ru_path
          path.join(CONFIG_RU_SUBPATH)
        end

        def default_test_commands
          {
            EAC_RAILS_BASE0_TEST_NAME => eac_rails_base0_test_command
          }
        end

        def eac_rails_base0_test_command
          rake_test_command(EAC_RAILS_BASE0_TEST_RAKE_TASK_NAME)
        end

        def subs_include_paths_default
          SUBS_PATHS_DEFAULT
        end

        def valid?
          super && gemfile_lock_gem_version(EAC_RAILS_BASE0_GEMNAME).present?
        end
      end
    end
  end
end

Version data entries

132 entries across 132 versions & 2 rubygems

Version Path
eac_tools-0.13.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
avm-eac_rails_base0-0.6.0 lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.12.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.11.1 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.11.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.10.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.9.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
avm-eac_rails_base0-0.5.0 lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.8.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.7.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.6.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb
eac_tools-0.5.0 sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/sources/base.rb