Sha256: 33eb93dcff4228ab2c3683a80346c67d842238d70ee963d67dd12538fe54876d

Contents?: true

Size: 686 Bytes

Versions: 39

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacRubyBase0
  class Application
    enable_simple_cache
    common_constructor :gemspec_dir do
      self.gemspec_dir = gemspec_dir.to_pathname
    end

    delegate :version, to: :self_gem

    def all_gems
      vendor_gems + [self_gem]
    end

    def vendor_dir
      gemspec_dir.join('vendor')
    end

    private

    def self_gem_uncached
      ::EacRubyGemsUtils::Gem.new(gemspec_dir)
    end

    def vendor_gems_uncached
      r = []
      vendor_dir.children.each do |c|
        vgem = ::EacRubyGemsUtils::Gem.new(c)
        r << vgem if vgem.gemfile_path.exist?
      end
      r
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
avm-tools-0.76.1 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.76.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.75.1 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.75.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.74.1 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.74.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
eac_ruby_base0-0.2.0 lib/eac_ruby_base0/application.rb
avm-tools-0.73.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.72.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.71.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.70.2 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.70.1 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.70.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.69.3 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
eac_ruby_base0-0.1.1 lib/eac_ruby_base0/application.rb
avm-tools-0.69.2 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.69.1 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.69.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.68.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb
avm-tools-0.67.0 vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb