Sha256: fbe1a7716c71991436d074a74e588cd9b444a088fc9006fea10204924ee87b42
Contents?: true
Size: 532 Bytes
Versions: 55
Compression:
Stored size: 532 Bytes
Contents
# encoding: utf-8 require 'fedux_org_stdlib/rake/exceptions' module FeduxOrgStdlib module Versionable def version_file(working_directory = Dir.getwd) paths = [] paths << File.join(working_directory, 'lib', '*', 'version.rb') paths << File.join(working_directory, 'lib', '*', '*', 'version.rb') file = Dir.glob(paths.shift).first while !paths.blank? and file.blank? raise Exceptions::VersionFileNotFound, JSON.dump(message: 'Cannot find version file') unless file file end end end
Version data entries
55 entries across 55 versions & 1 rubygems