Skip to content

Commit

Permalink
revised replacement in version.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
elorest committed Aug 3, 2017
1 parent 4050f1b commit 81b541b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crelease
version: 0.1.2
version: 0.1.3

authors:
- Isaac Sloan <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/crelease.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if new_version = ARGV[0]?
name = shard["name"].as_s
version = shard["version"].as_s

files = {"shard.yml" => "version: #{version}", "src/#{name}/version.cr" => %Q( VERSION = "#{version})}
files = {"shard.yml" => "version: #{version}", "src/#{name}/version.cr" => %Q("#{version}")}
files.each do |filename, version_str|
puts "Updating version numbers in #{filename}.".colorize(:light_magenta)
file_string = File.read(filename).gsub(version_str, version_str.gsub(version, new_version))
Expand Down
2 changes: 1 addition & 1 deletion src/crelease/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Crelease
VERSION = "0.1.2"
VERSION = "0.1.3"
end

0 comments on commit 81b541b

Please sign in to comment.