Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a problem with detecting the version in 1.8.7

  • Loading branch information...
commit 483eae002c9d974d52bf349d04aa7672da5cd3ed 1 parent 5293ec3
@srushti srushti authored
View
18 app/models/version.rb
@@ -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
View
2  app/views/layouts/application.html.haml
@@ -34,4 +34,4 @@
%a{:href => 'http://c42.in'} C42 Engineering
Open Source
.version
- = "Version #{VERSION::STRING}"
+ = "Version #{Version::STRING}"
View
2  goldberg.gemspec
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.