iownbey (owner)

Revisions

gist: 128213 Download_button fork
public
Public Clone URL: git://gist.github.com/128213.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[~] $ 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 }