Sha256: 18551cda7ff1df4fad54f1e6ae56c119752f653ba31220d739379167fb95e95b

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require 'yaml'

module Annotate
  def self.version
    version_file = File.dirname(__FILE__) + "/../VERSION.yml"
    if File.exist?(version_file)
      config = YAML.load(File.read(version_file))
      version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
    else
      version = "0.0.0"
    end
  end

  def self.load_tasks
    if File.exists?('Rakefile')
      load 'Rakefile'
      Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
      return true
    else
      return false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
miyucy-annotate-2.4.3 lib/annotate.rb