Sha256: 147c37885daf780fe172b9ebd2f15da53c341cda9e383ff8803a4eb7bcc391eb

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

module Sbuilder


  def self.version
    File.readlines( File.join File.dirname( __FILE__ ), "../../VERSION" ).first.gsub( /\n/, "" )
  end

  def self.model_version
    return File.readlines( "VERSION" ).first.gsub( /\n/, "" ) if File.exist?( "VERSION" )
    return "Model version file #{Dir.pwd}/VERSION not found"
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tla-sbuilder-0.3.9 lib/utils/version.rb
tla-sbuilder-0.3.8 lib/utils/version.rb
tla-sbuilder-0.3.7 lib/utils/version.rb
tla-sbuilder-0.3.4 lib/utils/version.rb
tla-sbuilder-0.2.2 lib/utils/version.rb
tla-sbuilder-0.2.1 lib/utils/version.rb
tla-sbuilder-0.1.0 lib/utils/version.rb