diff --git a/Gemfile.lock b/Gemfile.lock index aaa4b02..62a7701 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - freshli-commons (0.6.0.pre.dev) + freshli-commons (0.6.1.pre.dev) aruba (~> 2.1.0) grpc rspec-expectations diff --git a/freshli-commons.gemspec b/freshli-commons.gemspec index 50934e3..7cd0aa4 100644 --- a/freshli-commons.gemspec +++ b/freshli-commons.gemspec @@ -1,13 +1,18 @@ # frozen_string_literal: true -require 'semver' +begin + require 'semver' + # rubocop:disable Style/FormatStringToken + semver_version = SemVer.find.format('%M.%m.%p%s%d') + # rubocop:enable Style/FormatStringToken +rescue LoadError + semver_version = '0.0.0' +end Gem::Specification.new do |spec| spec.name = 'freshli-commons' - # rubocop:disable Style/FormatStringToken - spec.version = SemVer.find.format('%M.%m.%p%s%d') - # rubocop:enable Style/FormatStringToken + spec.version = semver_version spec.authors = ['M. Scott Ford'] spec.email = ['scott@corgibytes.com']