From f26abece2f35c174d6cc5d45334e002e862bf21f Mon Sep 17 00:00:00 2001 From: RNachb Date: Tue, 17 Sep 2024 13:30:22 +0200 Subject: [PATCH 1/2] SI-428: Implementation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cae2f68..ed0b187 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ First you need to create the version file under `config/initializers/version.rb` ```ruby module YourApplication module Application - VERSION='x.x.x' - NAME='Your custom Application name' # this line is optional (see below) + VERSION = 'x.x.x' + NAME = 'Your custom Application name' # this line is optional (see below) end end ``` From 6ad37809d464e1c552fcd9d51fc265a357760637 Mon Sep 17 00:00:00 2001 From: Katrin Affolter Date: Tue, 10 Dec 2024 16:46:43 +0100 Subject: [PATCH 2/2] SI-428: make regex for version.rb more flexible in regards of whitespaces --- lib/tasks/version.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/version.rake b/lib/tasks/version.rake index f19cc6e..46ed7b1 100644 --- a/lib/tasks/version.rake +++ b/lib/tasks/version.rake @@ -48,7 +48,7 @@ namespace :version do puts "Updating #{version_file_path}..." content = File.read(version_file_path) File.open(version_file_path, 'w') do |f| - f.puts content.gsub(/VERSION = '#{old_version}'/, "VERSION = '#{new_version}'") + f.puts content.gsub(/VERSION ?= ?'#{old_version}'/, "VERSION = '#{new_version}'") end title = "## #{application_name} v#{new_version} (#{Date.today.strftime('%d.%m.%Y')})"