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 ``` 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')})"