Commit Graph
670 Commits
Author SHA1 Message Date
Kevin LockeandPaul Melnikow ced7f16645 [PATCH v2] Add support for swagger.io validator
The OpenAPI Specification (formerly known as the Swagger RESTful API
Documentation Specification) defines a format for describing RESTful
APIs.  The Swagger project provides a set of tools for working with this
format, including a hosted validator which provides a validation badge
and JSON result.[1]  This commit adds shields.io support for this badge.

The service currently only provides validation of files conforming to
version 2.0 of the OpenAPI Specification.  This commit adds a path
component for specifying the version under the assumption that the
validator may support version 3.0 or later as they are released.

It accepts the URL to validate as two path components, a scheme followed
by the rest of the URL, to match the convention used for the JIRA host
and webpage online shields.

Changes in v2:
- Use bitbucket in try.html example for clarity.
- Change /v/ in URL to /valid/ to avoid conflict with v=version.

1.  https://github.com/swagger-api/validator-badge

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2017-03-30 11:41:21 -04:00
Pavel DjundikandPaul Melnikow 84e2d6d7e3 Use spaces in "up to date" and "out of date" statuses 2017-03-30 00:04:37 -04:00
Thaddee TylandPaul Melnikow a0e6a6aeba Use new Buffer() instead of Buffer()
The following warning is emitted by Node.js:

> DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new
> Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or
> `Buffer.alloc()` instead.

This patch removes this warning.
2017-03-29 18:28:48 -04:00
Paul MelnikowandThaddee Tyl b410b0b7e7 Remove Talk.ai which no longer exists
No response at guest.talk.ai talk.ai, and nothing in google either
2017-03-29 20:14:26 +02:00
Paul MelnikowandThaddee Tyl d985f81f8e Disallow undefined variables 2017-03-29 20:09:30 +02:00
Paul MelnikowandThaddee Tyl 5a83b6c4a6 Show correct hostname and port in try.html URL 2017-03-29 19:58:14 +02:00
Sebastian HoßandPaul Melnikow 7fad7268ef use greater-equals for SonarQube tech_debt colors
Projects that have '0' technical debt would otherwise receive a
lightgrey badge instead of a brightgreen one.

Signed-off-by: Sebastian Hoß <mail@shoss.de>
2017-03-29 13:24:39 -04:00
Akihiro UchidaandPaul Melnikow 7eeef988ba Fix imagelayers.io badges (#706)
Resolves #712
2017-03-28 00:30:32 -04:00
Paul Melnikow e8988a985c Clean lint from #1275 2017-03-27 17:18:50 -04:00
DanialandPaul Melnikow 7843331f5f Add badge "404 | badge not found"
For invalid url specified ending in "svg, png, gif, jpg or json"
2017-03-27 16:58:24 -04:00
Paul Melnikow 0def6470a7 Disallow variable redeclaration 2017-03-26 20:02:56 -04:00
Thaddee Tyl 11b6e06f2f Organize local modules in lib 2017-03-26 22:57:55 +02:00
Paul Melnikow 47a8bf51dc First pass for linting on PRs 2017-03-20 16:54:27 -04:00
Thaddee Tyl bf373d11cd Fix incorrect sendBadge() parameter order 2017-02-18 22:58:46 +01:00
Thaddee Tyl a4a46b070c Foolproof Bitbucket pull request
- Use metric() for the displayed number
- Use encodeURI() for API parameters
- Explicitly use a condition expression instead of a number where a boolean is expected

Part of #790.
2017-02-11 00:09:44 +01:00
Thaddee Tyl 4c2b2f4852 Merge branch 'bitbucket' 2017-02-10 23:50:41 +01:00
chapulinaandThaddee Tyl 976e5f2ee0 Bitbucket open pull requests 2017-02-10 23:50:34 +01:00
Thaddee Tyl 7c8b0e3d32 Contain all private files in private/ 2017-02-05 16:24:35 +01:00
Thaddee Tyl 6258968d66 Restrain public files to the public/ folder
As raised by Adriaan (@agboom), the .github-user-tokens.json file was
incorrectly exposed, causing the risk of users' GitHub tokens to be used
by other entities for the purpose of increasing their rate limits by
pretending to be shields.io.
2017-02-05 13:40:06 +01:00
Thaddee Tyl bc34b6060d Merge branch 'nuget' 2017-02-01 23:59:51 +01:00
Thaddee Tyl 7f79712f0d Set Nuget version endpoint update to 42 minutes 2017-02-01 23:59:08 +01:00
Maarten BalliauwandThaddee Tyl 361a6e344a Update NuGet v3 implementation to not show unlisted versions
Fixes #795.
2017-02-01 23:58:10 +01:00
Thaddee Tyl f834bbbb88 Merge branch 'jenkins' 2017-01-30 23:34:25 +01:00
Thaddee Tyl 5eb9eb2bb5 Improve consistency of spacing in code 2017-01-30 23:34:15 +01:00
Thaddee Tyl 79eb256b75 Twitter badge: allow ?colorB override 2017-01-27 23:36:51 +01:00
Masahiro Fujiwara 70efc96b11 Take ’/job’ prefix out only if ‘/‘ appears. For backward compatibility. 2017-01-17 06:36:48 +09:00
Masahiro Fujiwara 7ac216456a Fix regexp for Jenkins build badges to allow “/“ in the job name. 2017-01-17 06:07:05 +09:00
Thaddee Tyl 21ae49ad85 Merge remote-tracking branch 'aspyker/master'
Fixes #741.
2017-01-11 23:57:10 +01:00
Thaddee Tyl 62ecc175ca Merge branch 'jira-sprint'
Fixes #770.
2017-01-09 23:56:37 +01:00
Thomas VIALandThaddee Tyl 83da3fefef Added JIRA agile sprint completion 2017-01-09 23:56:09 +01:00
Thaddee Tyl a440c0840b Register colorA/B as part of the cache index 2017-01-08 17:26:26 +01:00
Thaddee Tyl 052740ff15 Improve Chrome Web Store: price with currency, rating over 5 2016-11-25 00:08:49 +01:00
Thaddee Tyl 1b699773ba Factorize star rating string generation
There was duplicated code in d10764a8f5.

Related to #831.
2016-11-24 23:56:31 +01:00
RedSparr0wandThaddee Tyl d10764a8f5 add 5 star ratings 2016-11-24 23:54:49 +01:00
Konstantin ZudovandThaddee Tyl 52b0369c14 Allow specifying the color of left/right part
Specifying `colorA`/`colorB` parameters allows
to change the background color of the left/right
part of the badge.
2016-10-30 15:36:05 +01:00
Thaddee Tyl 7403b61e25 Mozilla Add-ons: say "add-on" instead of addon
Mozilla's website uses that format.

Also, show star-rating as "4/5" instead of "4 stars" (which looks verbose, less
informative, and grammatically incorrect if there is a single star).
2016-10-30 10:51:52 +01:00
Józef SokołowskiandThaddee Tyl 2cb82a4ab3 Add Mozilla Addons support 2016-10-30 10:47:56 +01:00
DanialandThaddee Tyl 3edd0df04c CircleCI: show vendor error messages on badges
example:
https://github.com/badges/shields/pull/798#issuecomment-255621160
2016-10-26 00:10:44 +02:00
Thaddee Tyl 6e5904df0a Match CircleCI project host with trailing /
This prevents from misparsing /circleci/project/githubuser/repo.svg as user
"user".

Related to #798.
2016-10-23 17:26:47 +02:00
Thaddee Tyl dce818a7d2 Merge remote-tracking branch 'redsparrow/Circle_CI' 2016-10-23 17:23:18 +02:00
RedSparr0w 2b0d688d09 Update With Changes 2016-10-22 22:56:40 +13:00
Peter Dave Hello 251c792d74 Add CDNJS version integration 2016-10-15 23:16:25 +08:00
Thaddee Tyl 1996a5399f Ensure GitHub contributors can have a metric prefix 2016-10-15 16:38:43 +02:00
Thaddee Tyl 670867098d Send false instead of Nan to GitHub contributors-anon 2016-10-15 16:35:39 +02:00
Thaddee Tyl 18bc0be3e5 Merge remote-tracking branch 'qzb/bugfix/contributors-badge' 2016-10-15 16:34:33 +02:00
RedSparr0w e31f9ac2bd Fix Circle CI Integration 2016-09-27 11:16:18 +13:00
Nishanth Vijayan 25fb85e397 Allow label overriding in all Chrome web store badges 2016-09-06 16:46:41 +05:30
Thaddee Tyl 00a025310d Merge remote-tracking branch 'pyro2927/enterprise' 2016-08-17 19:29:41 +02:00
Józef Sokołowski dfb4804973 Fix contributors badge
Fixes #764
2016-08-16 10:52:49 +02:00
Mauro Pompilio a51c440310 Merge branch 'master' into librariesio 2016-08-12 10:48:47 +01:00