Sha256: 194fd2e4f8164d2dabe9527474003ca439750a242cc9ee1fa1b746480b891768

Contents?: true

Size: 772 Bytes

Versions: 67

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module EacRubyBase1
    module Sources
      class Base < ::Avm::EacGenericBase0::Sources::Base
        module Version
          # @return [Avm::VersionNumber]
          def version
            version_file.value.if_present { |v| ::Avm::VersionNumber.new(v) }
          end

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

          # @return [Avm::EacRubyBase1::Rubygems::VersionFile]
          def version_file
            ::Avm::EacRubyBase1::Rubygems::VersionFile.new(version_file_path)
          end

          def version_file_path
            path.join('lib', *gem_namespace_parts, 'version.rb')
          end
        end
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
avm-eac_ruby_base1-0.35.1 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.96.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.35.0 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.34.1 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.34.0 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.33.1 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.83.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.82.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.81.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.33.0 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.80.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.79.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.32.1 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.78.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
avm-eac_ruby_base1-0.32.0 lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.77.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
eac_tools-0.77.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb