1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[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

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