Skip to content

Instantly share code, notes, and snippets.

@imownbey
Created June 11, 2009 20:24
Show Gist options
  • Save imownbey/128213 to your computer and use it in GitHub Desktop.
Save imownbey/128213 to your computer and use it in GitHub Desktop.
[~] $ rip install haml
Searching gems.github.com for haml...
ERROR: Could not find haml in any repository
Searching gems.rubyforge.org for haml...
running install hook for haml
Successfully installed haml (2.0.9)
[~] $ integrity launch
/Users/imownbey/.rip/active/lib/haml/version.rb:11:in `read': No such file or directory - /Users/imownbey/.rip/active/VERSION (Errno::ENOENT)
from /Users/imownbey/.rip/active/lib/haml/version.rb:11:in `version'
from /Users/imownbey/.rip/active/lib/haml.rb:1004
from /Users/imownbey/.rip/active/bin/../lib/integrity/../integrity.rb:4:in `require'
from /Users/imownbey/.rip/active/bin/../lib/integrity/../integrity.rb:4
from /Users/imownbey/.rip/active/bin/../lib/integrity/installer.rb:2:in `require'
from /Users/imownbey/.rip/active/bin/../lib/integrity/installer.rb:2
from /Users/imownbey/.rip/active/bin/integrity:2:in `require'
from /Users/imownbey/.rip/active/bin/integrity:2
[~] $ head -n 11 /Users/imownbey/.rip/active/lib/haml/version.rb
module Haml
module Version
# Returns a hash representing the version of Haml.
# The :major, :minor, and :teeny keys have their respective numbers.
# The :string key contains a human-readable string representation of the version.
# If Haml is checked out from Git,
# the :rev key will have the revision hash.
def version
return @@version if defined?(@@version)
numbers = File.read(scope('VERSION')).strip.split('.').map { |n| n.to_i }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment