[core] Updates Rakefile to use Fog::VERSION

No longer need to read in `lib/fog` to access the VERSION mostly because
we are already requiring it anyway in the Rakefile!

The #version method just repeats Fog::VERSION

`rake -T` works and changelog generates
This commit is contained in:
Paul Thornthwaite 2012-11-27 17:00:29 +00:00
parent 70d2b9caa6
commit a7a22cce33
1 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,7 @@ def name
end
def version
line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
Fog::VERSION
end
def date