Sha256: b02855519b829b40042b1105d9cfb515a3eb9e12603b70dd5c9f8a8af4bbcddf

Contents?: true

Size: 535 Bytes

Versions: 56

Compression:

Stored size: 535 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/rake/exceptions'

module FeduxOrgStdlib
  module Roles
    # Versionable
    module Versionable
      def version_file(working_directory = Dir.getwd)
        paths = []
        paths << File.join(working_directory, 'lib', '**', 'version.rb')

        file = Dir.glob(paths.shift).first while !paths.blank? && file.blank?

        fail FeduxOrgStdlib::Rake::Exceptions::VersionFileNotFound, JSON.dump(message: 'Cannot find version file') unless file

        file
      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/roles/versionable.rb
fedux_org-stdlib-0.11.17 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.16 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.15 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.14 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.12 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.11 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.9 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.8 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.7 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.6 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.5 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.4 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.3 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.2 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.1 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.11.0 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.10.9 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.10.8 lib/fedux_org_stdlib/roles/versionable.rb
fedux_org-stdlib-0.10.7 lib/fedux_org_stdlib/roles/versionable.rb