cocoapods-binary/test/release_version.rb
2018-05-08 01:20:14 +08:00

18 lines
363 B
Ruby

# update version
version = ARGV[0]
if version == nil
puts "please input a version"
exit
end
path = "lib/cocoapods-binary/gem_version.rb"
content = <<-eos
module CocoapodsBinary
VERSION = "#{version}"
end
eos
File.write(path, content)
`git add -A; git commit -m "bump version"; git push`
`rake install`
`gem push pkg/cocoapods-binary-#{version}.gem`