Sha256: affb9deb5e2298e49f1a2a86cb348b5cd1a9f564dda9d932d71f94fe6370365a
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 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 FeduxOrgStdlib::Rake::Exceptions::VersionFileNotFound, JSON.dump(message: 'Cannot find version file') unless file file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fedux_org-stdlib-0.7.12 | lib/fedux_org_stdlib/versionable.rb |