提交 23c36725 编写于 作者: A Aaron Patterson

fix version update task to deal with .beta1.1

上级 4642d68d
......@@ -27,7 +27,7 @@
file = Dir[glob].first
ruby = File.read(file)
major, minor, tiny, pre = version.split('.')
major, minor, tiny, pre = version.split('.', 4)
pre = pre ? pre.inspect : "nil"
ruby.gsub!(/^(\s*)MAJOR(\s*)= .*?$/, "\\1MAJOR = #{major}")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册