Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The version.rb file was referring directly to Term::ANSIColor instead…
… of module Term; module ANSIColor

This means that it was failing on some versions of ruby (1.9.2 p290) for
me because the Term module was not declared beforehand.
  • Loading branch information
AndrewVos committed Sep 14, 2011
1 parent 8713898 commit ea6d3bd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/term/ansicolor/version.rb
@@ -1,8 +1,10 @@
module Term::ANSIColor
# Term::ANSIColor version
VERSION = '1.0.6'
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
module Term
module ANSIColor
# Term::ANSIColor version
VERSION = '1.0.6'
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
end
end

0 comments on commit ea6d3bd

Please sign in to comment.