ruby: Add au.hash and fix checkver (#191)

This commit is contained in:
Hsiao-nan Cheung 2019-06-29 16:42:46 +08:00 committed by GitHub
parent bc71d70b14
commit 174efc0537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@
"post_install": "gem install rake", "post_install": "gem install rake",
"notes": "Install MSYS2 via 'scoop install msys2' and then run 'ridk install' to install the toolchain!", "notes": "Install MSYS2 via 'scoop install msys2' and then run 'ridk install' to install the toolchain!",
"checkver": { "checkver": {
"github": "https://github.com/oneclick/rubyinstaller2", "url": "https://raw.githubusercontent.com/oneclick/rubyinstaller.org-website/master/_data/downloads.yaml",
"re": "/releases/tag/(?:v|RubyInstaller-)?([\\d.]+(?:-[\\d])?)" "regex": "Ruby (\\S+)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
@ -41,6 +41,10 @@
"url": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-$version/rubyinstaller-$version-x86.7z", "url": "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-$version/rubyinstaller-$version-x86.7z",
"extract_dir": "rubyinstaller-$version-x86" "extract_dir": "rubyinstaller-$version-x86"
} }
},
"hash": {
"url": "https://raw.githubusercontent.com/oneclick/rubyinstaller.org-website/master/_data/downloads.yaml",
"regex": "(?sm)$basename[^.].*?$sha256"
} }
} }
} }