From 154bc2cfbfbb2fc9f278e77c348fcd6fa206c06c Mon Sep 17 00:00:00 2001 From: Anders Chen Date: Thu, 14 Dec 2023 16:23:19 +0700 Subject: [PATCH] Fix NSQ connection version string number --- CHANGELOG.md | 4 ++++ VERSION | 2 +- lib/version.rb | 6 +----- nsq-ruby.gemspec | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f77989..37ab35a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.4.1 + +* Client version connection string should also read from the VERSION file + ## 2.4.0 * Remove jeweler gem in favor of using a dynamic gemspec [#66](https://github.com/wistia/nsq-ruby/pull/66) diff --git a/VERSION b/VERSION index 197c4d5..005119b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.0 +2.4.1 diff --git a/lib/version.rb b/lib/version.rb index e40592e..54e8878 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -1,9 +1,5 @@ module Nsq module Version - MAJOR = 2 - MINOR = 3 - PATCH = 1 - BUILD = nil - STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.') + STRING = File.read(File.expand_path('../../VERSION', __FILE__)).strip end end diff --git a/nsq-ruby.gemspec b/nsq-ruby.gemspec index 6dafd1c..ed5eba2 100644 --- a/nsq-ruby.gemspec +++ b/nsq-ruby.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| "LICENSE.txt", "README.md" ] - s.files = Dir.glob('lib/**/*.rb') + ['README.md'] + s.files = Dir.glob('lib/**/*.rb') + ['README.md', 'VERSION'] s.homepage = "http://github.com/wistia/nsq-ruby".freeze s.licenses = ["MIT".freeze] s.rubygems_version = "2.6.8".freeze