Class: Yay
- Inherits:
-
Object
- Object
- Yay
- Defined in:
- lib/yay/colour_wheel.rb,
lib/yay/lexer.rb,
lib/yay/paths.rb,
lib/yay/errors.rb,
lib/yay/loader.rb,
lib/yay/parser.rb,
lib/yay/version.rb,
lib/yay/rule_set.rb,
lib/yay/installer.rb,
lib/yay/colourizer.rb,
lib/yay/parser_gen.rb,
lib/yay/application.rb,
lib/yay/lexer_regex.rb
Overview
To change this template, choose Tools | Templates and open the template in the editor.
Defined Under Namespace
Classes: AlreadyAssignedError, Application, CircularReferenceError, ColourWheel, Colourizer, CouldntFindFileError, Error, Installer, Lexer, Loader, NotAllowedError, Parser, ParserGen, Paths, RuleSet, TooManyColoursError, UnexpectedTokenError, UnresolvedSubstitutionError
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
Class Method Details
.version ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/yay/version.rb', line 7 def self.version @rev ||= begin begin rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip rescue Errno::ENOENT rev = "" end rev.empty? ? nil : " (#{rev})" end "#{VERSION}#@rev" end |