diff options
Diffstat (limited to 'lib/bundler/templates/newgem/lib/newgem/version.rb.tt')
-rw-r--r-- | lib/bundler/templates/newgem/lib/newgem/version.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/lib/newgem/version.rb.tt b/lib/bundler/templates/newgem/lib/newgem/version.rb.tt index 389daf5048..518b4688a4 100644 --- a/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +++ b/lib/bundler/templates/newgem/lib/newgem/version.rb.tt @@ -1,7 +1,7 @@ <%- config[:constant_array].each_with_index do |c, i| -%> <%= " " * i %>module <%= c %> <%- end -%> -<%= " " * config[:constant_array].size %>VERSION = "0.1.0" +<%= " " * config[:constant_array].size %>VERSION = File.read(File.expand_path("<%= "../" * (config[:constant_array].size + 2) + "VERSION" %>", __FILE__)).strip.freeze <%- (config[:constant_array].size-1).downto(0) do |i| -%> <%= " " * i %>end <%- end -%> |