Commit Graph
1766 Commits
Author SHA1 Message Date
greenkeeper[bot]andDanial c6b6183ee4 Update pretty-bytes to the latest version 🚀 (#1676)
* fix(package): update pretty-bytes to version 5.0.0

* update package-lock
2018-05-22 10:14:41 +12:00
Sebastian StaudtandPyves 498684cf24 Adapt to new JSON API of formulae.brew.sh (#1684) 2018-05-21 19:48:33 +01:00
mattbkandDanial 37617c1d4e Add Liberapay logo (#1692)
* Add Liberapay logo.

* Add variations.

* Optimize SVG.

* Remove logo testing variants.
2018-05-19 10:53:24 +12:00
RazielandDanial c76e221b47 [david] add support for path (#1687)
* Example with a path query parameter

* Support for David path query parameters

* David path not found test

* [david] updated invalid path test
2018-05-18 11:50:04 +12:00
Marcin MielnickiandGitHub d51ae90270 Bugfix: override colorB in [docker] badges (#1690)
* Color fix for Docker Hub automated integration

* Test for overriding colorB in docker stars badge

* Test for overriding colorB in docker pulls badge

* #008bb8 is color of automated docker builds

* Test for overriding colorB in docker build badge

* Overriding colorB in docker stars badge

* Overriding colorB in docker pulls badge

* Overriding colorB in docker automated badge

* Better assertions in docker tests

* The default docker color updated to match the logo
2018-05-16 18:11:26 +02:00
chris48sandGitHub bf53e612f5 [cdnjs gem] make exception classes more consistent (#1683)
make exception classes more consistent
2018-05-15 18:57:33 +01:00
Sam Lanningandchris48s 4f8414c003 Add grade badge for [lgtm] (#1681)
* Add LGTM Grade badge

* Add new tests for LGTM Grade badge

* Add lgtm grade example to homepage
2018-05-12 10:30:48 +01:00
chris48sandGitHub b5635bf55a [gem cdnjs appveyor] refactor ruby gems service (#1680)
* allow services to export >1 classes

This change to loadServiceClasses() allows us to define
services which either export a single service class e.g:

module.exports = class Cdnjs extends BaseService {
  //...
}

or more than one. e.g:

module.exports = {
  GemVersion,
  GemDownloads,
  GemOwner,
  GemRank,
}

* refactor ruby gem badges

- move badge code to service classes
- throw exceptions for errors
- use let and const
- change tests to expect 'downloads' label for error badges
- general tidying

* fix typo in tests

* Don't always use class name in example label

This allows (for example) GemVersion and GemDownloads
both to use the example label 'Gem'
2018-05-10 17:32:45 +01:00
Sam LanningandDanial f43096a2dd replace lgtm logo with improved one (#1679) 2018-05-10 19:19:38 +12:00
Marcin MielnickiandGitHub 6dab822a9c checkErrorResponse documented in the tutorial (#1675)
* The most recent code examples in tutorial

* An extra empty line removed

* An extra escapring characters removed

* checkErrorResponse mentioned in tutorial

* Typo fix in tutorial

* Static badges as examples in tutorial

* Missing word in the tutorial added

* Typo fix in tutorial
2018-05-09 18:01:51 +02:00
PyvesandGitHub 3518b642e7 [MicroBadger] Fixed tests (#1677) 2018-05-07 21:47:36 +01:00
Sam LanningandPyves 726dc9d916 Add LGTM logo (#1673) 2018-05-05 20:39:21 +01:00
chris48sandGitHub 0ef1c947e2 open badge links in new tab (#1667) 2018-05-05 19:15:21 +01:00
Sam Lanningandchris48s 45ff94d5a3 Add [LGTM] service (#1672) 2018-05-05 19:14:58 +01:00
chris48sandGitHub 8fcc13d5bc refactor [cdnjs] integration (#1668)
* pass error object to InvaildResponse()

this prevents us from throwing
TypeError: Cannot read property 'stack' of undefined
when we attempt to parse invalid json

* refactor [cdnjs] integration
2018-05-04 21:55:51 +01:00
Marcin MielnickiandGitHub b126b4ebdc checkErrorResponse documented in service tests (#1670)
* Travis integration uses checkErrorResponse

* checkErrorResponse added to service tests doc
2018-05-02 16:06:09 +02:00
chris48sandGitHub 714df8fac5 change CC0 example in GH service tests (#1634) 2018-04-28 20:59:27 +01:00
DanialandGitHub 2e87ed9d46 add codeship logo (#1663)
* add codeship logo

* minify codeship logo
2018-04-28 14:25:56 +12:00
Zsófia BaloghandDanial 14bdaf378a [Codeship] fix status checking regexp & add new statuses (#1662)
* [Codeship] fix status checking regexp

we don't need to match the file extension to determine the status

* [Codeship] handle new build statuses

based on https://documentation.codeship.com/general/account/notifications/#webhook
2018-04-27 10:48:05 +12:00
Andrea PeruffoandDanial a24d42a5bc minor links fix (#1658) 2018-04-25 10:05:08 +12:00
Raul RieraandDanial f607ad787e Add [buildkite] service (#1657)
* Support for buildkite

* Added to the examples as well

* Removed the unnecessary label property

* Fixed the example

* Improve the tests

* Made the branch optional and review suggestions

* Added network error test

* Unexpected response test

* PR review suggestions

* Updated test to include all responses

* Forgot one of the tests
2018-04-24 08:13:24 +12:00
OmriandDanial da108966cd Add NPM logo (#1656) 2018-04-23 10:47:16 +12:00
DanialandGitHub 8fda86fcf1 set expires header corresponding to maxAge (#1651)
* set expires header corresponding to maxAge

* add tests
2018-04-22 13:48:01 +12:00
Thomas BroadleyandPyves 2ded83f8a6 Documentation typos (#1647) 2018-04-15 20:43:51 +01:00
chris48sandGitHub d2a144e80f update [pypi] to use warehouse (closes #1569) (#1648) 2018-04-15 09:46:45 +01:00
PyvesandGitHub ac13fdb8d4 [librariesio] Missing try/catch block and tests (#1644) 2018-04-14 08:35:47 +01:00
Binh Buiandchris48s e1755df212 [vaadin-directory] Support star and stars endpoints (#1603) 2018-04-09 20:14:21 +01:00
Jacob TomlinsonandMarcin Mielnicki d56b6961da Add [dynamic-yaml] badge (#1623)
* Add dynamic yaml badge

* Forgot package lock

* Switch tests to yaml data source

* Add yaml to the dynamic badge maker options

* Reorder to match documentation examples

* Reordered dynamic types to be alphabetical

* Removed regex as pinend commit makes it unnecessary and fixed url

* Removed unused import

* Add more YAML MIME types

* Removed duplicate tests which don't differ between data types
2018-04-08 21:47:28 +02:00
Rafał PocztarskiandDanial 47614e5bbc Add Stack Exchange logos (#1636)
* Add Stack Exchange logos

* Optimize Stack Exchange logos with svgomg

closes #1637
2018-04-06 04:07:26 +02:00
DanialandGitHub c0bdf54e4b optimize cssColor check regex (#1602)
* optimize cssColor regex

* Add comment & tests

* update test to not export cssColor

* [0-9] -> \d
2018-04-05 00:31:58 +02:00
PyvesandGitHub f98d17e00d [SourceForge] Fixes, tests and cleaning up (#1626) 2018-04-02 21:51:41 +01:00
Paul MelnikowandGitHub f2efd751b5 Minor refactor of examples preparation (#1632)
This cleans up the work from #1582, clarifying concerns, removing a bit of duplication, and renaming for clarity.
2018-04-02 07:03:52 -05:00
PyvesandGitHub a168072cd5 [DotnetStatus] Service deprecation (#1630) 2018-04-02 09:40:50 +01:00
PyvesandGitHub 3aa21301ff [Ansible] Handle no data responses (#1629) 2018-04-02 09:38:25 +01:00
Paul MelnikowandGitHub 416d433fa0 [appveyor] Error handling in BaseService (#1590)
Make a clear distinction between programmer errors ("internal errors") and runtime errors, and allow configuring the server to let the programmer errors bubble up in development and unit testing. This saves a huge amount of time because it generates ordinary stack traces when things go wrong. And, if these errors occur in production, we'll catch them, and display **shields | internal error** which is the equivalent of a 500 error.
2018-04-01 22:04:22 -05:00
greenkeeper[bot]andPaul Melnikow 724abd06dc Update svgo to the latest version 🚀 (#1473)
* fix(package): update svgo to version 1.0.5
* Update package-lock
* Update invocation for SVGO 1.x
* Remove helper
2018-04-01 21:57:20 -05:00
Paul MelnikowandGitHub f9b0aed8c9 package-lock fixes for glob (#1633)
Missing from #1619
2018-04-01 21:31:43 -05:00
PyvesandThaddée Tyl dd35739c5c [CodeClimate] Added missing try-catch block (#1613)
* Added missing try-catch block

* Added tests to cover malformed responses
2018-04-01 17:32:43 +02:00
PyvesandGitHub c5884b1915 Handled capitalization with empty keys (#1625) 2018-04-01 09:46:13 +01:00
DanialandGitHub 57008d28a3 Test path escaping - mocha windows fix (#1627) 2018-04-01 08:28:30 +02:00
Marcin MielnickiandGitHub 0d5b48bc64 "commits to be deployed" replaced "last deployed" (#1605) 2018-03-30 12:42:10 +02:00
PyvesandGitHub 66c5d914c7 [CircleCI] Extended existing try-catch block (#1614) 2018-03-30 09:34:20 +01:00
Paul MelnikowandGitHub ac7c418222 Extract examples from new-style services (#1582)
Instead of centralizing examples, specify them from within a service.

* Avoid duplication in service loading + refactor
* Avoid duplication in URLs, rename uri -> url in BaseService
2018-03-30 03:07:44 -05:00
PyvesandPaul Melnikow 1dff491a24 Added number support to version text formatter (#1620) 2018-03-29 10:08:23 -07:00
PyvesandGitHub 16eea6d7db Number support for version color formatter (#1615) 2018-03-29 18:04:42 +01:00
Philip I. ThomasandPaul Melnikow 01646ded72 upgrade glob to be a prod dependency (#1619) 2018-03-28 08:40:25 -07:00
greenkeeper[bot]andPaul Melnikow 7e239f78c0 chore(package): update semver-regex to version 2.0.0 (#1596) 2018-03-27 17:13:15 -07:00
PyvesandGitHub ed419b0a77 [microbadger] Fix tests (#1600) 2018-03-27 11:15:51 +01:00
Thaddée TylandPaul Melnikow 17ddd180bb Skip Twitter suggestion if URL does not have protocol (#1604)
This resolves the following error occurring in production:

```
TypeError: Cannot read property 'slice' of null
/home/m/shields/lib/suggest.js in twitterPage at line 63:31
  const schema = url.protocol.slice(0, -1);
```
2018-03-26 15:33:59 -07:00
Thaddée TylandPaul Melnikow 0a248998f2 Only compute user/repo if suggesting badges for GitHub (#1601)
This resolves the following error occurring in production:

```
TypeError: Cannot read property 'slice' of null
/home/m/shields/lib/suggest.js in findSuggestions at line 40:33
  const userRepo = url.pathname.slice(1).split('/');
```
2018-03-25 14:47:54 -07:00