Add jsonpath support for checkver and hash extraction

Unravel if-blocks in checkver

Use new jsonpath for openssl, nuget, dart and bfg
This commit is contained in:
Richard Kuhnt 2017-03-03 21:15:37 +01:00
parent a454e72f69
commit 10a416552e
4 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{
"homepage": "https://rtyley.github.io/bfg-repo-cleaner/",
"license": "GPL",
"version": "1.12.15",
"version": "1.12.14",
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/1.12.15/bfg-1.12.15.jar",
"hash": "330af214a0fed320c591afc1046b0f31e8a438f290da09672973aeaa6411b09d",
"suggest": {
@ -17,7 +17,7 @@
",
"checkver": {
"url": "https://search.maven.org/solrsearch/select/?q=g:com.madgag+AND+a:bfg",
"re": "\"latestVersion\":\"([\\d.]+)\""
"jp": "$.response.docs[0].latestVersion"
},
"autoupdate": {
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/$version/bfg-$version.jar"

View File

@ -18,7 +18,7 @@
},
"checkver": {
"url": "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION",
"re": "\"version\":\\s*\"(.*)\","
"jp": "$.version"
},
"autoupdate": {
"architecture": {

View File

@ -1,13 +1,13 @@
{
"homepage": "https://www.nuget.org/",
"version": "3.5.0",
"version": "3.4.1",
"license": "Apache 2.0",
"url": "https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe",
"hash": "399ec24c26ed54d6887cde61994bb3d1cada7956c1b19ff880f06f060c039918",
"bin": "NuGet.exe",
"checkver": {
"url": "https://dist.nuget.org/index.json",
"re": "latest\", \"version\": \"([\\d.]+)\""
"jp": "$.artifacts[0].versions[0].version"
},
"autoupdate": {
"url": "https://dist.nuget.org/win-x86-commandline/v$version/NuGet.exe"

View File

@ -29,8 +29,8 @@
}
},
"hash": {
"mode": "extract",
"find": "$basename.*\\s.*\\s.*\\s.*\\s.*\"([\\da-f]{64})\"",
"mode": "json",
"jp": "$.files.$basename.sha256",
"url": "https://slproweb.com/download/win32_openssl_hashes.json"
}
}