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
eac_tools-0.27.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.134.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.26.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.25.1 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.25.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.24.1 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.133.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.24.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.23.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.132.1 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.22.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.132.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.21.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.20.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.19.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.18.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.131.0 lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.130.0 lib/avm/projects/stereotypes/ruby_gem.rb
eac_tools-0.17.0 sub/avm-tools/lib/avm/projects/stereotypes/ruby_gem.rb
avm-tools-0.129.1 lib/avm/projects/stereotypes/ruby_gem.rb