Sha256: 56e36752e53ca85f04920a689883d1fee191d2f89de6cd69e8dd280839aef041

Contents?: true

Size: 634 Bytes

Versions: 109

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true

require 'avm/projects/stereotype'
require 'avm/launcher/ruby/gem/specification'
require 'eac_ruby_utils/core_ext'

module Avm
  module Projects
    module Stereotypes
      class RubyGem
        require_sub __FILE__
        include Avm::Projects::Stereotype

        class << self
          def match?(path)
            Dir.glob(File.join(path.real, '*.gemspec')).any?
          end

          def color
            :red
          end

          def load_gemspec(gemspec_file)
            ::Avm::Launcher::Ruby::Gem::Specification.new(gemspec_file)
          end
        end
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
avm-tools-0.140.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.36.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.139.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.138.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.137.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.136.2 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.136.1 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.136.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.27.2 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.135.0 lib/avm/projects/stereotypes/ruby_gem.rb