From 9020d497b9c3b09ca4b1cb6f114c089c48308dac 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 | 5 +---- lib/db_lock/version.rb | 3 --- 4 files changed, 3 insertions(+), 9 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..a45c791 100644 --- a/db_lock.gemspec +++ b/db_lock.gemspec @@ -1,12 +1,9 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) -# Maintain your gem's version: -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