Rakefile in dawnscanner-2.0.0.rc4 vs Rakefile in dawnscanner-2.0.0.rc5
- old
+ new
@@ -35,25 +35,21 @@
a=[]
File.open("VERSION", "r") do |f|
a = f.readlines
end
version = a[a.length - 1].split('-')[0]# .chomp
- codename = a[a.length - 1].split('-')[1]
File.open("./lib/dawn/version.rb", "w") do |f|
f.puts("module Dawn")
puts "#{branch_name}|"
if branch_name != "main"
av = version.split('.')
f.puts " VERSION = \"#{av[0]}.#{av[1]}.#{commit_hash.chop}\""
- f.puts " CODENAME = \"#{codename.lstrip!.chop}\""
f.puts " RELEASE = \"(development)\""
else
- puts "here"
f.puts " VERSION = \"#{version.rstrip!}\""
- f.puts " CODENAME = \"#{codename.lstrip!.chop}\""
f.puts " RELEASE = \"#{release}\""
end
f.puts " BUILD = \"#{build_number.chop}\""
f.puts " COMMIT = \"#{commit_hash.chop}\""
f.puts "end"