Permalink
Browse files

fixed a problem with detecting the version in 1.8.7

  • Loading branch information...
srushti committed Apr 8, 2011
1 parent 5293ec3 commit 483eae002c9d974d52bf349d04aa7672da5cd3ed
Showing with 10 additions and 12 deletions.
  1. +8 −10 app/models/version.rb
  2. +1 −1 app/views/layouts/application.html.haml
  3. +1 −1 goldberg.gemspec
View
@@ -1,12 +1,10 @@
-module Goldberg
- module VERSION
- unless defined? MAJOR
- MAJOR = 0
- MINOR = 0
- TINY = 1
- BUILD = nil
+module Version
+ unless defined? MAJOR
+ MAJOR = 0
+ MINOR = 0
+ TINY = 1
+ BUILD = nil
- STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
- end
+ STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
end
-end
+end
@@ -34,4 +34,4 @@
%a{:href => 'http://c42.in'} C42 Engineering
Open Source
.version
- = "Version #{VERSION::STRING}"
+ = "Version #{Version::STRING}"
View
@@ -5,7 +5,7 @@ require 'goldberg/version'
Gem::Specification.new do |s|
s.name = "goldberg"
- s.version = Goldberg::VERSION::STRING
+ s.version = Version::STRING
s.authors = ["Sidu Ponnappa", "Niranjan Paranjape", "Srushti Ambekallu"]
s.email = ["sidu@c42.in", "niranjan@c42.in", "srushti@c42.in"]
s.homepage = "http://c42.in/open_source"

0 comments on commit 483eae0

Please sign in to comment.