Sha256: a78a2d30a4ff49eebf0ed21c6662f8a4dbc1e6fb25c0e58744c09f9c207340e0

Contents?: true

Size: 620 Bytes

Versions: 53

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'avm/patches/eac_ruby_gems_utils/gem'
require 'avm/version'
require 'eac_ruby_utils/core_ext'

module Avm
  module Projects
    module Stereotypes
      class RubyGem
        module LocalProjectMixin
          # @return [EacRubyGemsUtils::Gem]
          def ruby_gem
            @ruby_gem ||= ::EacRubyGemsUtils::Gem.new(path)
          end

          def version
            ruby_gem.version.if_present { |v| ::Avm::Version.new(v) }
          end

          def version=(value)
            ruby_gem.version_file.value = value
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
avm-tools-0.102.2 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.102.1 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.102.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.101.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.100.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.99.1 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.99.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.98.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.97.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.96.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.95.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.94.3 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.94.2 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.94.1 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.94.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.93.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.92.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.91.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.90.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb
avm-tools-0.89.0 lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb