diff --git a/lib/template/version.rb b/lib/template/version.rb index b984bc9..a41f1b0 100644 --- a/lib/template/version.rb +++ b/lib/template/version.rb @@ -2,4 +2,5 @@ require_relative "../template" -Template::Version = Gem::Version.new("0.7.2") +Template::Version = + Gem::Version.new(File.read(File.expand_path("../../../VERSION", __FILE__))) diff --git a/template-ruby.gemspec b/template-ruby.gemspec index 034f6bf..abd2b9f 100644 --- a/template-ruby.gemspec +++ b/template-ruby.gemspec @@ -1,11 +1,8 @@ # frozen_string_literal: true -require "English" -require_relative "lib/template/version" - Gem::Specification.new do |s| s.name = "template-ruby" - s.version = ::Template::Version + s.version = File.read("VERSION").strip s.summary = "templating language" s.description = s.summary s.authors = ["Dorian MariƩ"]