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:
parent
70d2b9caa6
commit
a7a22cce33
1 changed files with 1 additions and 2 deletions
3
Rakefile
3
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue