Skip to content

Commit a7f8bbe

Browse files
committed
prepend string version of version with v for version
1 parent d4a1326 commit a7f8bbe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/server/sonicpi/lib/sonicpi/spider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def __load_buffer(id)
304304
id = id.to_s
305305
raise "Aborting load: file name is blank" if id.empty?
306306
path = project_path + id + '.spi'
307-
s = "# Welcome to Sonic Pi v#{@version.to_s}"
307+
s = "# Welcome to Sonic Pi #{@version.to_s}"
308308
if File.exists? path
309309
s = IO.read(path)
310310
end

app/server/sonicpi/lib/sonicpi/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def to_s
4848
"#{@major}.#{@minor}.#{@patch}-#{@dev}"
4949
else
5050
if @patch == 0
51-
"#{@major}.#{@minor}"
51+
"v#{@major}.#{@minor}"
5252
else
53-
"#{@major}.#{@minor}.#{@patch}"
53+
"v#{@major}.#{@minor}.#{@patch}"
5454
end
5555
end
5656
end

0 commit comments

Comments
 (0)