Skip to content

Commit

Permalink
read version from file
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Aug 20, 2024
1 parent 4e0e9ec commit 23e4fc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/template/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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__)))
5 changes: 1 addition & 4 deletions template-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -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é"]
Expand Down

0 comments on commit 23e4fc0

Please sign in to comment.