Skip to content

Commit

Permalink
Tog::VERSION is now Tog::Version
Browse files Browse the repository at this point in the history
  • Loading branch information
aitor committed Oct 15, 2008
1 parent 40e7dbb commit 794d67c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/togify
Expand Up @@ -5,7 +5,7 @@ require 'rubigen'

if %w(-v --version).include? ARGV.first
require 'tog/version'
puts "#{File.basename($0)} #{Tog::VERSION::STRING}"
puts "#{File.basename($0)} #{Tog::Version::STRING}"
exit(0)
end

Expand Down
5 changes: 3 additions & 2 deletions config/hoe.rb
Expand Up @@ -10,13 +10,14 @@
EXTRA_DEPENDENCIES = [
['mislav-will_paginate', '>= 2.3.2'],
['rubigen', '>= 1.3.2'],
['tog-desert', '>= 0.3.4']
['tog-desert', '>= 0.3.4'],
['RedCloth', '>= 3.0.4']
]

REV = nil
# UNCOMMENT IF REQUIRED:
# REV = YAML.load(`svn info`)['Revision']
VERS = Tog::VERSION::STRING + (REV ? ".#{REV}" : "")
VERS = Tog::Version::STRING + (REV ? ".#{REV}" : "")

class Hoe
def extra_deps
Expand Down
15 changes: 8 additions & 7 deletions lib/tog/version.rb
@@ -1,18 +1,19 @@
module Tog
module VERSION #:nodoc:
module Version
MAJOR = 0
MINOR = 2
TINY = 1
# http://en.wikipedia.org/wiki/Moons_of_Jupiter
CODENAME = 'Adrastea'
TINY = 8
MODULE = 'Adrastea'
STRING = [MAJOR, MINOR, TINY].join('.')

class << self
def to_s
"#{CODENAME} #{STRING}"
STRING
end
def full_version
"#{MODULE} #{STRING}"
end
alias :to_str :to_s
end

end
end

0 comments on commit 794d67c

Please sign in to comment.