Skip to content

Commit 81d1d90

Browse files
CopilotKnerio
andcommitted
Read version from VERSION file instead of hardcoded constant
Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com>
1 parent a77041e commit 81d1d90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

lib/sagittarius/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Sagittarius
4-
VERSION = '0.1.0'
4+
VERSION = File.read(File.expand_path('../../VERSION', __dir__)).strip.freeze
55
end

0 commit comments

Comments
 (0)