vendor/gems/chriseppstein-compass-0.8.10/lib/compass/version.rb
def revision_from_git
      if File.exists?(scope('.git/HEAD'))
        rev = File.read(scope('.git/HEAD')).strip
        if rev =~ /^ref: (.*)$/
          rev = File.read(scope(".git/#{$1}")).strip
        end
      end
    end
# Returns a hash representing the version.
# The :major, :minor, and :teeny keys have their respective numbers.
# The :string key contains a human-readable string representation of the version.
# The :rev key will have the current revision hash.
#
# This method swiped from Haml and then modified, some credit goes to Nathan Weizenbaum
Returns a hash representing the version.
The :major, :minor, and :teeny keys have their respective numbers.
The :string key contains a human-readable string representation of the version.
The :rev key will have the current revision hash.

This method swiped from Haml and then modified, some credit goes to Nathan Weizenbaum
Returns a hash representing the version . The : major : minor and : teeny keys have their respective numbers . The : string key contains a human - readable string representation of the version . The : rev key will have the current revision hash . This method swiped from Haml and then modified some credit goes to Nathan Weizenbaum
def revision_from_git
      if File.exists?(scope('.git/HEAD'))
        rev = File.read(scope('.git/HEAD')).strip
        if rev =~ /^ref: (.*)$/
          rev = File.read(scope(".git/#{$1}")).strip
        end
      end
    end
def revision_from_git if File . exists? ( scope ( '.git/HEAD' ) ) rev = File . read ( scope ( '.git/HEAD' ) ) . strip if rev =~ / ^ref: (.*)$ / rev = File . read ( scope ( ".git/#{$1}" ) ) . strip end end end
Returns a hash representing the version.
Returns a hash representing the version .