Sha256: deea13b6f840cf9ba58bf36d438de08266c5c3c75472d8d880f3266402121aaf

Contents?: true

Size: 949 Bytes

Versions: 66

Compression:

Stored size: 949 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'semver'
require 'albacore/logging'

module Albacore
  module AlbaSemVer
    class Error < StandardError
      attr_reader :original
      def initialize msg, original
        raise ArgumentError, "original is nil" unless original
        super msg
        @original = original
      end
      def message
        %Q{#{super.to_s}
#{@original.to_s}}
      end
    end
    class Cmd
      def initialize
      end
      def execute
        puts "TODO: execute versioning"
      end
    end
    class Config
      include Logging

      attr_accessor :tag

      def initialize
        begin
          @semver = SemVer.find
        rescue SemVerMissingError => e
          raise Error.new("could not find .semver file - please run 'semver init'", e)
        end
      end
    end
    class Task
      def initialize cmd
        @cmd = cmd
      end
      def execute
        @cmd.execute
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
albacore-3.0.1 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha.6 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha.5 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha.4 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha.3 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha.2 ./lib/albacore/tasks/albasemver.rb
albacore-3.0.0.pre.alpha ./lib/albacore/tasks/albasemver.rb
albacore-2.8.0 ./lib/albacore/tasks/albasemver.rb
albacore-2.7.0 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.8 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.7 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.6 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.4 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.3 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.2 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.1 ./lib/albacore/tasks/albasemver.rb
albacore-2.6.0 ./lib/albacore/tasks/albasemver.rb
albacore-2.5.14 ./lib/albacore/tasks/albasemver.rb
albacore-2.5.13 ./lib/albacore/tasks/albasemver.rb
albacore-2.5.11 ./lib/albacore/tasks/albasemver.rb