From 44b7722f5a8111027d55c4f000b4992fb9c1781d Mon Sep 17 00:00:00 2001 From: Konstantin Munteanu Date: Thu, 26 May 2022 18:16:09 +0200 Subject: [PATCH] Build from ENV version --- .ruby-gemset | 2 +- .ruby-version | 2 +- db_lock.gemspec | 2 +- lib/db_lock/version.rb | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 lib/db_lock/version.rb diff --git a/.ruby-gemset b/.ruby-gemset index b0a8c92..e01bab8 100644 --- a/.ruby-gemset +++ b/.ruby-gemset @@ -1 +1 @@ -db-lock +db_lock diff --git a/.ruby-version b/.ruby-version index cb2b00e..ef538c2 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.1 +3.1.2 diff --git a/db_lock.gemspec b/db_lock.gemspec index 971e895..b177c1f 100644 --- a/db_lock.gemspec +++ b/db_lock.gemspec @@ -6,7 +6,7 @@ require 'db_lock/version' # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = 'db_lock' - s.version = DBLock::VERSION + s.version = ENV.fetch('VERSION', '0.8.3') s.licenses = ['MIT'] s.authors = ['mkon'] s.email = ['konstantin@munteanu.de'] diff --git a/lib/db_lock/version.rb b/lib/db_lock/version.rb deleted file mode 100644 index fdb5e69..0000000 --- a/lib/db_lock/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module DBLock - VERSION = '0.8.2'.freeze -end