Commit Graph

1560 Commits

Author SHA1 Message Date
jNullj
60aa530966 fix [DockerVersion] service test (#10690)
* Update docker version tester to check Python instead of Memcached

Memcached tags don't follow semver, might fail depending on which  tag was last added.
Python seems to follow semver for all tags.
fixes #10689

* Update docker version tester to check docker-dev instead of python

its a depricated image and is not expected to change tags
tag is semver

* Update docker version tester to check example-voting-app-vote

deprecated yet by docker, i think we can count on that to be stable
2024-11-26 20:33:46 +00:00
chris48s
5cdef88bcc Add renderDateBadge helper; affects [aur BitbucketLastCommit chrome date eclipse factorio galaxytoolshed GiteaLastCommit GistLastCommit GithubCreatedAt GithubHacktoberfest GithubIssueDetail GithubLastCommit GithubReleaseDate GitlabLastCommit maven npm openvsx snapcraft SourceforgeLastCommit steam vaadin visualstudio wordpress] (#10682)
* add and consistently use parseDate and renderDateBadge helpers

also move

- age
- formatDate
- formatRelativeDate

to date.js

* fix bug in wordpress last update badge

* validate in formatDate() and age()

it is going to be unlikely we'll invoke either of these
directly now, but lets calidate here too

* remove unusued imports

* reverse colours for galaxy toolshed
2024-11-17 13:15:28 +00:00
chris48s
4132ca2e7e Add blog post about token pool, improve 'authorise our app' CTA (#10683)
* Add blog post about token pool, improve 'authorise our app' CTA

* simplify first sentence
2024-11-16 16:50:04 +00:00
chris48s
cbb7ab5e8b reduce overhead of NPM Last Update badge; test [npm] (#10666)
* reduce overhead of [NpmLastUpdate] badge

* use buildRoute for version without tag
2024-11-13 19:02:48 +00:00
chris48s
2bd926e65f rename postfix param to suffix (#10667) 2024-11-11 19:34:08 +00:00
jNullj
04638ab0ee Refactor - use renderVersionBadge - part 4 [githubrelease githubtag] (#10656)
* feat: add forcePrerelease option to renderVersionBadge function

Sometimes API would indicate if a version is pre-release while the version number does not have to be semantically a prerelease like in github-release service.
We don't use a isPrerelease that can also force a non-preleases as we trust here developer semantic over API tagging.

* refactor: GithubRelease to use renderVersionBadge

* refactor: GithubTag use renderVersionBadge

* refactor: change forcePrerelease to isPrerelease
2024-11-11 19:16:14 +00:00
jNullj
4d203e1937 fix [githubpipenv] service tests (#10658)
* fix failing test 'Locked version of VCS dependency'

replaced tested package which is missing with another example

* Add regex validator for commit hash format

* fix vcs dependency test to use pipenv's pypiserver
2024-11-11 19:15:35 +00:00
jNullj
8af909d118 fix [githubmanifest] service tests (#10657)
* Change badge label from 'version' to 'manifest' in GitHub manifest tests

* revert version label for failed paths
2024-11-10 13:09:27 +00:00
anatawa12
00d72da97e add [WingetVersion] Badge (#10245)
* feat: add winget version badge

* chore: accept dotted path instead of slashed

* test: add test for winget-version

* fix: remove debug code

* chore: use winget-specific version compare algorithm

* fix: support latest and unknown

* fix(winget/version): trailing '.0' handling is incorrect

* fix(winget/version): latest returns last newest version instead of the first newest version

* fix(winget/version): confusing subpackage and version name

* fix(winget/version): example for latest is incorrect

* add a couple of extra test cases for latest()

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2024-11-04 19:05:32 +00:00
usr3
4ec62fa445 Fix broken URL for pingpong.one (#10655)
Fix broken URL for https://pingpong.one for uptime status monitoring.
2024-11-04 11:40:03 +00:00
Pierre-Yves Bigourdan
57520a974f Remove [Nuget MyGet] color tests (#10654) 2024-11-02 18:34:25 +00:00
Ambati Mohan Kumar
8c7872a666 [npm] - Last update badge added (#10641)
* Added npm last update badge

* extended NpmBase class instead of BaseJsonService.

* added scoped packages to last update.

* introduced additionalQueryParamSchema

this is to add other query params schema, other than the one present in NpmBase.

* removed version query param

* in absence of modified date, it'll fetch created.

* removed version query param.

* added dist-tags.

* Update services/npm/npm-last-update.service.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* refactored handle method for dist-tags.

* Update services/npm/npm-last-update.service.js

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

* added date validation check.

* added date validation check.

* added date validation check.

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-11-02 17:37:07 +00:00
Pierre-Yves Bigourdan
ad82f7647a Add YouTube-specific privacy notes (#10646) 2024-11-02 11:20:57 +00:00
chris48s
20ae47e5ff cleanly handle null or undefined result from jsonpath-plus (#10645) 2024-11-02 09:50:34 +00:00
jNullj
cc90c190f2 Refactor - use renderVersionBadge - part 3 [luarocks gitlab nuget feedz] (#10630)
* Refactor luarocks to use renderVersionBadge

Loarocks does not appear to have version conventions and there are no issues in history that require usage of existing color usage.
For better consistency use color scheme as the rest of the badges.

Also add scm and cvs as preview in renderVersionBadge

* add missing test for version color formatter

* refactor nuget to use renderVersionBadge

* Refactor GitlabTag to use renderVersionBadge

* add comment about non-standard render of coljarsVersion

* Refactor FeedzVersionService to use renderVersionBadge from version.js

* Refactor nuget.tester.js to remove unnecessary version tests

* add missing label in gitlab-tag.spec
2024-10-27 13:35:03 +00:00
Ambati Mohan Kumar
5e40080099 [Scoop] Added scoop-license badge. (#10627)
* scoop-license service is added.

* refactored scoop badges - added scoop base

* refactor - description changed to base class.

* refactor - description changed to base class.

* Update services/scoop/scoop-license.tester.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* refactor - buckets variable is moved to base class, also updated tester with createTestService.

* moved queryParamSchema to base class.

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2024-10-25 16:35:16 +00:00
Aiden Gardner
4e4e3f82c6 [Chromewebstore] Extension size & last updated (#10613)
* Bump webextension-store-meta

* Add extension last updated

* Add extension size

* Run linter

* Rename last updated badge
2024-10-21 08:22:43 +00:00
jNullj
04f4fbd156 Deprecate HackageDeps service (#10618)
HackageDeps will allways return a landing page with 200 and no text about outdated packages.
The site is down and looking for someone to take over.
Therefor api information is false and non functional.
2024-10-20 20:05:23 +00:00
jNullj
66631524c5 Add [CratesUserDownloads] service and tester (#10619)
* add jsdoc for crates fetch func

* add BaseCratesUserService for user stats api route

part of solution for #10614

* Add CratesUserDownloads service and tester

This commit adds the CratesUserDownloads service and tester files. The CratesUserDownloads service shows the user total downloads at Crates.io.

as requested by #10614

* render userid in code block

* add non-exsistent user CratesUserDownloads test

userid for API usage is int32, therefor to minimize chance of user taking the id used the max value for int32 is used.

* fixed typo
2024-10-20 20:03:54 +00:00
jNullj
e7d76b117e refactor - usage renderVersionBadge - part 2 [amo archlinux aur bower cdnjs chromewebstore cocoapods conan conda cookbook cpan cran crates ctan curseforge debian docker dub eclipsemarketplace elmpackage f-droid factorio fedora feedz flathub galaxytoolshed gem gitea github gitlab greasyfork hackage hexpm homebrew itunes jenkins jetbrains jitpack jsr mavenmetadata modrinth nexus npm nuget openvsx opm ore packagist piwheels polymart pub puppetforge pypi ros scoop snapcraft spack spiget thunderstore twitch ubuntu vaadindirectory vcpkg visualstudioappcenter visualstudiomarketplace vpm wordpress] (#10615)
* use defaultLabel in renderVersionBadge without tag

As we refactor the codebase to use renderVersionBadge.
some badges need to show default label regardless of tag existance.
This is usefull for cases where the label is dynamic.

This change requires fixing test for npm, not sure how it worked before.

* Refactor AurVersion to use renderVersionBadge

part of #2026

* Refactor CondaVersion to use renderVersionBadge

part of #2026

* Refactor WordpressRequiresVersion to use renderVersionBadge

* add postfix option to renderVersionBadge

* add missing tests for renderVersionBadge

add defaultLabel without tag test
add postfix test
add test for all options together

* Refactor WordpressPluginTestedVersion to use renderVersionBadge

* add prefix override to renderVersionBadge

adds tests for all options with prefix as well

used for #2026 but also usefull for usage letting people override v prefix for versions all over the project once #2026 is done as requested for example in #10574

* Refactor RequiresPHPVersionForType to use renderVersionBadge
2024-10-20 21:55:58 +02:00
jNullj
0a57af28bd update failing test to use package iptables (#10616)
use iptables as its a stable long term package that uses more standard version numbers
archlinux uses upstream versions which makes version regex for tests hard to predict
2024-10-16 17:36:29 +00:00
Ambati Mohan Kumar
1d2bf19100 [Snapcraft] - Added snapcraft last update badge (#10610)
* Added badge for Maven-Cenral last update.

* Update services/maven-central/maven-central-last-update.service.js

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

* updated according to the review comments.

* added Snapcraft last updated badges.

* made changes according to the review.

---------

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-10-14 05:48:16 +00:00
Pierre-Yves Bigourdan
d502e7031f [GitHubHacktoberfest] 2024 support (#10612) 2024-10-13 18:15:07 +00:00
jNullj
a8a1e77433 change nexus test for valid version (#10609) 2024-10-13 17:11:40 +00:00
jNullj
d00c4de4a3 Refactor version rendering in [wordpress nexus] and [f-droid] services (#10608)
* Refactor version rendering in f-droid, nexus, and wordpress services

* add missing label in nexus test
2024-10-13 19:10:17 +02:00
Tapaj Kumar Das
8ed3dc8db4 add [homebrew] cask download badge (#10595)
* add homebrew cask download badge

* add homebrew cask download badge

* fix: updates test cases

* fix: updates test cases

* tidy up homebrew filenames and docs site titles

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2024-10-12 12:02:23 +00:00
jNullj
f767fabf43 remove prefix v for commit hash version (#10597)
* addv ignore commit hash

some services might return version as a commit hash like aur.
it makes no sense to prefix v before the commit.

Fixes #10591

* add addv commit hash tests

add both full commit hash and short commit hash tests to addv.
expected result - no v prefix.
2024-10-12 09:21:27 +00:00
Ambati Mohan Kumar
e3808c1738 [Maven] Added badge for Maven-Cenral last-update (#10301) (#10585)
* Added badge for Maven-Cenral last update.

* Update services/maven-central/maven-central-last-update.service.js

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

* updated according to the review comments.

---------

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-10-12 08:52:08 +00:00
chris48s
f3e0cc06f4 [DynamicXml] parse doc as html if served with text/html content type (#10607) 2024-10-12 08:07:28 +00:00
chris48s
2515cf9b27 Revert "Use old.stats.jenkins.io for JSON data (#10522)" (#10537)
This reverts commit 394a8271a6.
2024-09-30 10:09:27 +01:00
chris48s
da6002099f catch queries that cause TypeError (#10556) 2024-09-30 09:00:51 +00:00
chris48s
ec1b6c8dac [dynamicjson dynamicyaml dynamictoml] switch to jsonpath-plus (#10551) 2024-09-25 17:16:04 +01:00
Davide Piccinini
eca1b28234 [Snapcraft] license (#10520)
* Add snapcraft license. Update snapcraft version to inherit from snapcraft-base class. Add snapcraft base url in configurations.

* Fix spec tests after making method static

* remove snapcraft configurations, move into base class

* Update services/snapcraft/snapcraft-base.js

---------

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-09-15 15:34:02 +00:00
chris48s
9eaa2ed507 deprecate [wheelmap] service (#10538)
* deprecate [wheelmap] service

* remove app.json
2024-09-15 15:20:22 +00:00
Filipe Roque
394a8271a6 Use old.stats.jenkins.io for JSON data (#10522)
Related with
 - https://github.com/jenkins-infra/helpdesk/issues/4265
 - https://github.com/jenkins-infra/plugin-site/pull/1890
2024-09-13 15:39:42 +00:00
chris48s
cf656d3a4d catch xml ParseError (#10516) 2024-09-07 20:04:32 +01:00
Pierre-Yves Bigourdan
559c38f966 Remove failing [Packagist] tests (#10512) 2024-09-07 18:01:16 +00:00
Pierre-Yves Bigourdan
bbc8339789 Switch to shields server ID in [Discord] example and test (#10513) 2024-09-07 17:59:38 +00:00
chris48s
b0d9cb0894 migrate [MozillaObservatory] to /scan endpoint (#10491) 2024-09-07 17:56:45 +00:00
dependabot[bot]
ffd0903878 chore(deps): bump @xmldom/xmldom from 0.8.10 to 0.9.0; run [DynamicXml] (#10481)
* chore(deps): bump @xmldom/xmldom from 0.8.10 to 0.9.0

Bumps [@xmldom/xmldom](https://github.com/xmldom/xmldom) from 0.8.10 to 0.9.0.
- [Release notes](https://github.com/xmldom/xmldom/releases)
- [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xmldom/xmldom/compare/0.8.10...0.9.0)

---
updated-dependencies:
- dependency-name: "@xmldom/xmldom"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* invoke parseFromString with mimetype

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev>
2024-09-07 17:56:13 +00:00
Zijian Zang
ecb5bf2e07 fix incorrect codecov config link (#10511) 2024-09-07 14:38:34 +00:00
Joe Izzard
9717fc202f [OSSLifecycle OSSLifecycleRedirect] Add file_url param to pull from non-github sources (#10489)
* add file_url param

Add file_url param to allow pulling from non-github sources

* add test for file_url param

Add test using file_url variant of OSS Lifecycle badge using Netflix OSSTracker repo

* remove old pattern from main service

Remove all references and code for the old /{user}/{repo} and /{user}/{repo}/{branch} functionality.
This will be replaced by a redirect service.

Also updated all tests to use the new file_url method

* add osslifecycle redirector

add a redirector for the original osslifecycle pattern

* tweaks to docs and handle function

Tweak the Description to remove reference to GitHub as now works with any repository,
and updated handle function to remove reference to unused variables.
2024-09-05 16:06:15 +00:00
chris48s
d98ebbd883 remove intermediate variable (#10496) 2024-09-04 04:03:34 +00:00
chris48s
84897f3836 fix typo in pepy downloads (#10475) 2024-08-25 20:30:53 +01:00
Pierre-Yves Bigourdan
c874f1890c Use Ecologi API to power Treeware badges (#10467) 2024-08-21 17:35:45 +00:00
chris48s
dc57a8893c move go version badge to platform support category (#10444) 2024-08-15 22:39:07 +00:00
Eray Erdin (&mut self)
a583ca7105 [Crates] Implement Dependents Badge (#10438)
* add dependents service

* remove redundant timeout
2024-08-04 20:25:25 +00:00
Joey Li
bdf84f9f94 [Crates] Added crate size badge (#10421)
* add some basic tests for size badge

* add crate size to crates fetch

* add crate size service

* change test to reflect base-10 counting instead

* fix downloads tests to work with new crate_size scheme addition

* move handling of unknown size to handle
2024-08-04 12:35:28 +00:00
Pierre-Yves Bigourdan
1a09e9a30b Fix branch in [Bitrise] tests (#10439) 2024-08-04 05:50:44 +00:00
chris48s
da0fd70427 migrate [MozillaObservatory] to new API (#10402)
* migrate [MozillaObservatory] to new API

* remove timeouts

* prettier
2024-07-26 10:31:47 +01:00