Issue/327 versioning (#345)
* Switch to semver format * Rewrite new version check to use Github Releases and cron * Styling * Remove v from in front of version * New version check test fix * Uncomment test case
This commit is contained in:
360
tests/data/releases.json
Normal file
360
tests/data/releases.json
Normal file
@@ -0,0 +1,360 @@
|
||||
[
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/13667336",
|
||||
"assets_url": "https://api.github.com/repos/nabeelio/phpvms/releases/13667336/assets",
|
||||
"upload_url": "https://uploads.github.com/repos/nabeelio/phpvms/releases/13667336/assets{?name,label}",
|
||||
"html_url": "https://github.com/nabeelio/phpvms/releases/tag/v7.0.0-beta",
|
||||
"id": 13667336,
|
||||
"node_id": "MDc6UmVsZWFzZTEzNjY3MzM2",
|
||||
"tag_name": "v7.0.0-beta",
|
||||
"target_commitish": "master",
|
||||
"name": "",
|
||||
"draft": false,
|
||||
"author": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"prerelease": true,
|
||||
"created_at": "2018-10-25T23:12:08Z",
|
||||
"published_at": "2018-10-25T23:21:26Z",
|
||||
"assets": [
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/9415556",
|
||||
"id": 9415556,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDk0MTU1NTY=",
|
||||
"name": "phpvms-v7.0.0-beta.tar.gz",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/gzip",
|
||||
"state": "uploaded",
|
||||
"size": 15567950,
|
||||
"download_count": 1503,
|
||||
"created_at": "2018-10-25T23:21:25Z",
|
||||
"updated_at": "2018-10-25T23:21:26Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-beta/phpvms-v7.0.0-beta.tar.gz"
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/9415555",
|
||||
"id": 9415555,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDk0MTU1NTU=",
|
||||
"name": "phpvms-v7.0.0-beta.tar.gz.sha256",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/octet-stream",
|
||||
"state": "uploaded",
|
||||
"size": 92,
|
||||
"download_count": 174,
|
||||
"created_at": "2018-10-25T23:21:24Z",
|
||||
"updated_at": "2018-10-25T23:21:24Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-beta/phpvms-v7.0.0-beta.tar.gz.sha256"
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/9415554",
|
||||
"id": 9415554,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDk0MTU1NTQ=",
|
||||
"name": "release_version",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/octet-stream",
|
||||
"state": "uploaded",
|
||||
"size": 21,
|
||||
"download_count": 630,
|
||||
"created_at": "2018-10-25T23:21:23Z",
|
||||
"updated_at": "2018-10-25T23:21:23Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-beta/release_version"
|
||||
}
|
||||
],
|
||||
"tarball_url": "https://api.github.com/repos/nabeelio/phpvms/tarball/v7.0.0-beta",
|
||||
"zipball_url": "https://api.github.com/repos/nabeelio/phpvms/zipball/v7.0.0-beta",
|
||||
"body": ""
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/9810818",
|
||||
"assets_url": "https://api.github.com/repos/nabeelio/phpvms/releases/9810818/assets",
|
||||
"upload_url": "https://uploads.github.com/repos/nabeelio/phpvms/releases/9810818/assets{?name,label}",
|
||||
"html_url": "https://github.com/nabeelio/phpvms/releases/tag/v7.0.0-alpha2",
|
||||
"id": 9810818,
|
||||
"node_id": "MDc6UmVsZWFzZTk4MTA4MTg=",
|
||||
"tag_name": "v7.0.0-alpha2",
|
||||
"target_commitish": "master",
|
||||
"name": null,
|
||||
"draft": false,
|
||||
"author": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"prerelease": false,
|
||||
"created_at": "2018-02-23T17:48:28Z",
|
||||
"published_at": "2018-02-23T17:57:13Z",
|
||||
"assets": [
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/6307893",
|
||||
"id": 6307893,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDYzMDc4OTM=",
|
||||
"name": "phpvms-v7.0.0-alpha2.tar.gz",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/gzip",
|
||||
"state": "uploaded",
|
||||
"size": 13122744,
|
||||
"download_count": 1522,
|
||||
"created_at": "2018-02-23T17:57:12Z",
|
||||
"updated_at": "2018-02-23T17:57:13Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-alpha2/phpvms-v7.0.0-alpha2.tar.gz"
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/6307896",
|
||||
"id": 6307896,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDYzMDc4OTY=",
|
||||
"name": "phpvms-v7.0.0-alpha2.tar.gz.sha256",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/octet-stream",
|
||||
"state": "uploaded",
|
||||
"size": 94,
|
||||
"download_count": 209,
|
||||
"created_at": "2018-02-23T17:57:13Z",
|
||||
"updated_at": "2018-02-23T17:57:13Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-alpha2/phpvms-v7.0.0-alpha2.tar.gz.sha256"
|
||||
}
|
||||
],
|
||||
"tarball_url": "https://api.github.com/repos/nabeelio/phpvms/tarball/v7.0.0-alpha2",
|
||||
"zipball_url": "https://api.github.com/repos/nabeelio/phpvms/zipball/v7.0.0-alpha2",
|
||||
"body": null
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/9526184",
|
||||
"assets_url": "https://api.github.com/repos/nabeelio/phpvms/releases/9526184/assets",
|
||||
"upload_url": "https://uploads.github.com/repos/nabeelio/phpvms/releases/9526184/assets{?name,label}",
|
||||
"html_url": "https://github.com/nabeelio/phpvms/releases/tag/v7.0.0-alpha1",
|
||||
"id": 9526184,
|
||||
"node_id": "MDc6UmVsZWFzZTk1MjYxODQ=",
|
||||
"tag_name": "v7.0.0-alpha1",
|
||||
"target_commitish": "master",
|
||||
"name": null,
|
||||
"draft": false,
|
||||
"author": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"prerelease": false,
|
||||
"created_at": "2018-02-04T18:49:50Z",
|
||||
"published_at": "2018-02-04T18:55:52Z",
|
||||
"assets": [
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/6096096",
|
||||
"id": 6096096,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDYwOTYwOTY=",
|
||||
"name": "phpvms-v7.0.0-alpha1.tar.gz",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/gzip",
|
||||
"state": "uploaded",
|
||||
"size": 13926978,
|
||||
"download_count": 289,
|
||||
"created_at": "2018-02-04T18:55:50Z",
|
||||
"updated_at": "2018-02-04T18:55:51Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-alpha1/phpvms-v7.0.0-alpha1.tar.gz"
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/nabeelio/phpvms/releases/assets/6096097",
|
||||
"id": 6096097,
|
||||
"node_id": "MDEyOlJlbGVhc2VBc3NldDYwOTYwOTc=",
|
||||
"name": "phpvms-v7.0.0-alpha1.tar.gz.sha256",
|
||||
"label": "",
|
||||
"uploader": {
|
||||
"login": "nabeelio",
|
||||
"id": 99736,
|
||||
"node_id": "MDQ6VXNlcjk5NzM2",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/99736?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nabeelio",
|
||||
"html_url": "https://github.com/nabeelio",
|
||||
"followers_url": "https://api.github.com/users/nabeelio/followers",
|
||||
"following_url": "https://api.github.com/users/nabeelio/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nabeelio/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nabeelio/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nabeelio/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nabeelio/orgs",
|
||||
"repos_url": "https://api.github.com/users/nabeelio/repos",
|
||||
"events_url": "https://api.github.com/users/nabeelio/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nabeelio/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"content_type": "application/octet-stream",
|
||||
"state": "uploaded",
|
||||
"size": 94,
|
||||
"download_count": 44,
|
||||
"created_at": "2018-02-04T18:55:52Z",
|
||||
"updated_at": "2018-02-04T18:55:52Z",
|
||||
"browser_download_url": "https://github.com/nabeelio/phpvms/releases/download/v7.0.0-alpha1/phpvms-v7.0.0-alpha1.tar.gz.sha256"
|
||||
}
|
||||
],
|
||||
"tarball_url": "https://api.github.com/repos/nabeelio/phpvms/tarball/v7.0.0-alpha1",
|
||||
"zipball_url": "https://api.github.com/repos/nabeelio/phpvms/zipball/v7.0.0-alpha1",
|
||||
"body": null
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user