Sha256: 6c39b5cf26558535287529b791fd77c65f6e226e85a2fe0f416256e4d3ce82b4

Contents?: true

Size: 501 Bytes

Versions: 56

Compression:

Stored size: 501 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/require_files'
require_library %w(versionomy forwardable)

module FeduxOrgStdlib
  module VersionManagement
    # Software version
    class SoftwareVersion
      extend Forwardable

      def_delegators :@version, :to_s

      def initialize(version)
        @version = Versionomy.parse(version)
      end

      def update(*args)
        initialize(*args)
      end

      def bump(type)
        @version = @version.bump(type)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.11.18 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.17 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.16 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.15 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.14 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.12 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.11 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.9 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.8 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.7 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.6 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.5 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.4 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.3 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.2 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.1 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.11.0 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.10.9 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.10.8 lib/fedux_org_stdlib/version_management/software_version.rb
fedux_org-stdlib-0.10.7 lib/fedux_org_stdlib/version_management/software_version.rb