Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit a7a22cce33b1e16f19dbefdfc86a6cd949270b0a 1 parent 70d2b9c
@tokengeek tokengeek authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Rakefile
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.