Commit Graph
1388 Commits
Author SHA1 Message Date
Paul MelnikowandGitHub eefca67f14 Avoid inadvertently invoking unwrapped request in vendor helper functions (#924)
- Tweak a couple names to improve readability
2017-09-22 14:08:45 -04:00
Nico SchlömerandPaul Melnikow 60105e1099 github "star" -> "stars" 2017-09-22 13:57:24 -04:00
Theodore DuboisandPaul Melnikow 56566efd57 Add GitHub search hit counter badge 2017-09-22 13:41:49 -04:00
Abdelkrime AriesandPaul Melnikow 0f65d86486 Add JitPack version badge; fixes #900 2017-09-22 13:35:10 -04:00
Christophe BliardandPaul Melnikow cafb66bd93 Add fallback font and missing libs for .png generation
If Verdana.ttf can't be loaded, the font file pointed by the
FALLBACK_FONT_PATH environment variable will be loaded.

This fixes width computation errors that can occur with non-latin
characters when running with Docker.
2017-09-22 13:27:59 -04:00
Pascal PaulisandPaul Melnikow c7b782b014 Add [continuousphp] integration (#1051) 2017-09-22 13:19:55 -04:00
teppeisandPaul Melnikow 9a3bbcdb2a fix: contributors for GitHub Enterprise 2017-09-22 01:11:50 -04:00
Paul MelnikowandThaddée Tyl 852784b1a2 Fetch Bower data using libraries.io (#919)
- Avoid downloading bower packages via git
- Service is well resourced: https://libraries.io/team
- Same service used by https://bower.io/search/
2017-09-17 23:55:07 +02:00
Igor ŠarčevićandDaniel Lo Nigro bce78921c8 Changing 'semaphoreapp.com' to 'semaphoreci.com' 2017-09-10 15:45:11 -07:00
Andre CaetanoandDaniel Lo Nigro 46072e641d file-size path fix 2017-09-10 15:40:56 -07:00
Thaddee Tyl fc6c5852b2 Use a ternary statement in logging code
See https://github.com/badges/shields/pull/1040#discussion_r136196343.

Closes #1040.
2017-09-03 20:04:41 +02:00
Thaddee Tyl d032090038 Use a custom logging mechanism
This mechanism eases knowing when a message was logged while keeping the
simplicity of the logging mechanism.
2017-08-30 22:03:30 +02:00
mattbkandThaddée Tyl c023e23e0f Change Gratipay 'tips' to 'receives'
Pull request: #1053.
2017-08-30 21:58:08 +02:00
Elmar PruesseandDaniel Lo Nigro 10566c3c0d Add Conda unit tests 2017-08-23 21:27:43 -07:00
Elmar PruesseandDaniel Lo Nigro 94baa3a298 Cleanup conda shields
- use `const` instead of `var` where possible
 - use `'` instead of `"` consistently
 - replace `forEach` loop with `reduce` call

Thanks to @Daniel15 for review!
2017-08-23 21:27:43 -07:00
Elmar PruesseandDaniel Lo Nigro 43b39c05c3 Add conda badges 2017-08-23 21:27:43 -07:00
Simone VittoriandDaniel Lo Nigro 2aeed7e2a9 Add tests for hex.pm integration 2017-08-13 15:51:05 -07:00
Andres VillarroelandDaniel Lo Nigro f24093d287 Update INSTALL.md
documentation says secret.example.env file is named shields.example.env, update documentation.
2017-08-05 14:59:30 -07:00
Marcin MielnickiandDaniel Lo Nigro 38b1168e8e Removed info about index.html
index.html has been removed
2017-07-09 18:05:42 -07:00
Tair AssimovandDaniel Lo Nigro 6534a2a1a8 Add dockbit.com badge (#1022)
* Add dockbit.com badge

* Add missing semicolon

* Remove empty and unneeded tags in SVG file

* Use ES6 consts and template string

* Add Dockbit badge tests and handle server error
2017-07-02 12:59:30 -07:00
Daniel ShumwayandDaniel Lo Nigro 31aad05943 fix(gratipay): distinguish between anonymous and 0 dollar projects (#1007)
* fix(gratipay): distinguish between anonymous and 0 dollar projects

* test(gratipay): add service test

* test(gratipay): test $0
2017-07-01 22:43:11 -07:00
Marcin MielnickiandDaniel Lo Nigro 59c91ef967 Up-to-date ServiceTester's constructor in example (#1023) 2017-07-01 22:37:19 -07:00
Eugene BekkerandDaniel Lo Nigro ce0eb7b336 Adding support for PowerShell Gallery (#1024)
* Adding support for PowerShell Gallery

PS Gallery is nuget v2 based.  Fixes #1013.

* Updating examples with PowerShell Gallery
2017-07-01 22:35:30 -07:00
Dave CrossandThaddée Tyl 79c24c569b MetaCPAN API v0 has been switched off. Change to use v1. 2017-06-14 13:50:50 +02:00
Thaddee Tyl 42a5de9cab Return when a vendor request fails
Otherwise, this creates cryptic error messages in the server logs.
2017-06-02 20:41:02 +02:00
David TolnayandThaddée Tyl 66635c510c Eliminate padding on social badges if rhs is empty (#998) 2017-06-01 23:35:56 +02:00
Adriaan GroenenboomandDaniel Lo Nigro 15f24fbcce Improve Docker run (envsubst, Alpine, documented env file) (#870)
* Add template for secret.json

- Move to faster and lighter Alpine base image

* Update documentation

* Update documentation

* Fix Github token config for secret.json

* Extend env file for Docker runtime configuration

- Update documentation
- Add gh_token for GH personal access token to secret template

* Change http to https in infoSite

* Update .dockerignore

* Update .gitignore

* Update dockerignore

* Remove ENV directive from Dockerfile

- Environment is needed at runtime, not at buildtime

* Docker: contain secret.json in private/

- Incorporates fix from 7c8b0e3d

* Use localhost in example env

* Use baseUrl in GitHub redirect

* Move GH personal token retrieval up

- To remove duplicate Promise.then()

* Typo in shields.example.env
2017-05-07 11:13:02 -07:00
Rohan PaiandDaniel Lo Nigro f97d5a6bd4 add Sourcegraph.com badge (#828) 2017-05-05 21:30:38 -07:00
Nathan Rennie-WaldockandPaul Melnikow 6031711180 Support [GitHub] releases containing a / in the tag (#756)
- Add tests for download counts
2017-05-04 16:34:44 -04:00
Paul MelnikowandDaniel Lo Nigro 80ace97bb0 Bump icedfrisby-nock to stable release (#986) 2017-05-04 09:47:13 -07:00
Daniel Lo NigroandPaul Melnikow 896b2aab2f Add Discord badge to README 2017-05-01 14:30:44 -04:00
Andre CaetanoandPaul Melnikow a6d81f2391 [Github] File size badge (#745)
Closes #730
2017-05-01 14:28:45 -04:00
Daniel Lo NigroandGitHub 87af3bf672 Add [Discord] badge (#977)
Add Discord badge
2017-04-30 21:54:36 -07:00
Paul MelnikowandGitHub 653f79fbde Tests: Convert to ES6, use node-fetch, refactor, and clean up style (#971) 2017-04-30 10:51:18 -04:00
Fabrizio CucciandPaul Melnikow 138c1ea4d5 [maven-central] Maven Central badge based on repo1.maven.org rather than search.maven.org (#957)
According to http://central.sonatype.org/pages/ossrh-guide.html#releasing-to-central:

> Upon release, your component will be published to Central: this typically occurs within 10 minutes, though updates to search can take up to two hours.

So, besides the delay, if the indexing jobs for search.maven.org are paused (see https://issues.sonatype.org/browse/OSSRH-27247), it may take quite some time to see the last artifact version even though it has been actually released on Maven Central.

This uses 'latest' version instead of 'release' version. According to the Maven documentation of the maven-metadata.xml (http://maven.apache.org/ref/3.2.5/maven-repository-metadata/repository-metadata.html):
- 'latest': what the latest version in the directory is, including snapshots;
- 'release': what the latest version in the directory is, of the releases only.

Using the 'release' version would imply altering the behavior of the badge, i.e. getting the release version instead of the latest version, which could also be a snapshot version.

Fixes #846.
2017-04-30 10:11:56 -04:00
Fabrizio CucciandPaul Melnikow 0c477524a5 Fix regexp used for matching services in pull requests (#978)
According to the [Mozilla documentation about regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions), the special character '\w' is equivalent to '[A-Za-z0-9_]', which does not include the hyphen character (i.e. '-'). This cause the matching of services containing a hyphen to fail (e.g. 'maven-central').
2017-04-30 10:01:37 -04:00
Paul MelnikowandDaniel Lo Nigro 8233a0ba38 Fix service coverage script and linting (#975)
* Fix "callback is not a function" in coverage:test:services

* Don't lint /coverage
2017-04-29 17:31:07 -07:00
drdamourandPaul Melnikow 02fc1a1a21 [sonar] Invert colors for public_documented_api_density (#974)
Fix the logic from #724.
2017-04-29 13:54:39 -04:00
Thaddee TylandPaul Melnikow e17c15c00b Set the coverage npm script to use current specs
The coverage script was introduced in 5c147b8d91,
and the spec files were moved in c3ef232bf7.

Also, correct a small typo.
2017-04-28 16:39:17 -04:00
drdamourandPaul Melnikow a086dca4de [sonar] Support public_documented_api_density metric as a percentage (#724)
See http://docs.sonarqube.org/display/SONAR/Metric+Definitions
2017-04-28 16:19:39 -04:00
Paul MelnikowandThaddée Tyl bd8a04141e Record minimum Node version 2017-04-28 21:16:08 +02:00
anatoly techtonikandPaul Melnikow 6c34191fcf Add logo to AppVeyor badge and change logo color (#812)
Fixes #507
2017-04-28 01:35:19 -04:00
Paul MelnikowandGitHub f47aa968cd Prepare to modify / refactor analytics (#970)
- Move analytics into their own file
- Add test of analytics endpoint
2017-04-28 01:06:06 -04:00
Paul MelnikowandGitHub c3ef232bf7 Place tests alongside their code (#969)
Reorg of the tests: move them just alongside their code. The principle relates to grouping by coupling, not by function and is established in best-practice documents (e.g. https://github.com/focusaurus/express_code_structure#underlying-principles-and-motivations), despite its break from the tradition of a separate `test/` tree. All of today's tools can handle tests spread through the repository.

There are some good, if subtle consequences of this change:

- Since files are close at hand, friction is reduced at development time, which encourages that new tests are written to cover new behaviors.
- It's easier to find the tests that cover a particular piece of functionality.
- It's easier to see which code has tests and which doesn't.
2017-04-28 00:55:15 -04:00
Saugat AcharyaandDaniel Lo Nigro df9bbbf11b Add npm weekly and npm yearly downloads badge (#958)
Add new badges npm weekly and npm yearly
2017-04-27 21:51:05 -07:00
Paul MelnikowandGitHub 5c147b8d91 Service tests (#937)
- Eliminate manual testing which is error-prone and time consuming, and must be repeated many times through the PR review process
- Make contributing more fun. For many, fixing bugs and making new badges is faster and more satisfying with automated tests than with manual testing.
- Push out the work of testing new badges to a much broader net. The PR originator could write tests, but so could any other contributor who wants to push review along.
- Detect badge failures resulting from changes in vendor contracts without waiting for user reports.
- Detect and prevent regressions in the code.
- Be runnable, readable, writable, and editable by as many developers as possible, including those who may not be familiar with JavaScript test tools.

-- @paulmelnikow, @niccokunzmann, @Daniel15
2017-04-27 23:13:14 -04:00
Thaddee TylandPaul Melnikow a0663d8da5 Reduce page jumping while all the badges are loading
Commit c486c0dcd1 missed a large number of badges
on the webpage. This includes all relevant badges.
2017-04-27 13:14:01 -04:00
Paul MelnikowandGitHub 112669e074 Remove unused / unnecessary test fixtures (#951)
`server-test.js` is not used anymore, and `gh-badge.js` can be used directly.
2017-04-26 14:26:30 -04:00
Georges DupéronandPaul Melnikow db2aafaf2a Removed ability to specify the badge's label for the “website” service, as this is already possible with ?label=some-text 2017-04-26 14:25:15 -04:00
anatoly techtonikandPaul Melnikow 65fc2a7f56 Update request to 2.81.0 (#961)
Fix deprecated uuid warning
2017-04-25 23:47:48 -04:00