Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/version.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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')})"
Expand Down
Loading