re-use version in qqinput.rb
and add UTF-8 encoding comment for older Rubies
This commit is contained in:
parent
ce57d28b57
commit
bc67b5f691
|
@ -1,11 +1,12 @@
|
||||||
|
# encoding: UTF-8
|
||||||
class Qqinput < Cask
|
class Qqinput < Cask
|
||||||
version '2.8.86.400'
|
version '2.8.86.400'
|
||||||
sha256 '5b90cf604230013d5afa974b5b4835c0d6faf55da932cebce4f72478b5665a4d'
|
sha256 '5b90cf604230013d5afa974b5b4835c0d6faf55da932cebce4f72478b5665a4d'
|
||||||
|
|
||||||
url 'http://qqime.cdn.sogou.com/QQInput_Mac_Setup_2_8_86_400.dmg'
|
url "http://qqime.cdn.sogou.com/QQInput_Mac_Setup_#{version.gsub('.','_')}.dmg"
|
||||||
homepage 'http://qq.pinyin.cn/'
|
homepage 'http://qq.pinyin.cn/'
|
||||||
license :unknown
|
license :unknown
|
||||||
|
|
||||||
pkg '安装QQ输入法2.8.pkg'
|
pkg "安装QQ输入法#{version.sub(%r{^(\d+\.\d+).*},'\1')}.pkg"
|
||||||
uninstall :pkgutil => 'com.tencent.inputmethod.QQInput.*'
|
uninstall :pkgutil => 'com.tencent.inputmethod.QQInput.*'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue