Commit Graph
1974 Commits
Author SHA1 Message Date
Paul MelnikowandGitHub 56bcc04570 Fix unparseable json in [circleci uptimerobot] (#2036)
* Add two tests: one passing, one failing

* Fix the bug
2018-09-01 09:05:14 -07:00
Nicco KunzmannandPyves 11fa6114fe New badge: f-droid (#1965) 2018-08-30 23:02:09 +01:00
tooommandDanial e37c0b650d tidy danger bot messages (#2013) 2018-08-31 09:51:30 +12:00
Paul MelnikowandGitHub 9fb540fb28 [pypi]: Fix broken badges (#2023)
- When license is empty, get license from trove classifiers
- Allow empty classifiers array
2018-08-30 14:30:40 -07:00
Paul MelnikowandGitHub 7ad5eca26e Rewrite deprecated services and add tests (#2018)
I've rewritten the deprecated services using the `deprecatedService` helper from #1922. I added a test for `Deprecated`, and for `enforceDeprecation`, which isn't being used right now, but is there for future use.

This also makes it possible to write services using BaseService which do not have any named parameters (with a test).

Ref: #1358
2018-08-30 10:03:15 -07:00
Paul MelnikowandGitHub b602284403 Update coverage scripts (#2008)
As I was testing #1992 I noticed some of the coverage scripts were out of date.
2018-08-29 15:22:38 -07:00
Paul MelnikowandGitHub 55f4017388 Combined update of eslint dependencies (#2007) 2018-08-29 15:01:25 -07:00
chris48sandGitHub 7136aac89a update contributing guidance (#2019) 2018-08-29 22:36:24 +01:00
chris48sandGitHub 17481f144a update logo submission docs (#2020)
add more detail to image submission guidelines
2018-08-29 22:32:46 +01:00
Paul MelnikowandGitHub 1deeb365a5 Update uri -> url in the front end + examples (#2006)
This continues a consistency update we’ve been making to standardize on URL based on a recommendation from WHATWG: https://url.spec.whatwg.org/#goals

This also helps with copying and pasting between all-badge-examples and new-style services, where it’s otherwise easy to make a mistake.

Ref: #1322 #1341
2018-08-29 14:27:50 -07:00
Paul MelnikowandGitHub 33fbfb374f Use render helpers in existing new-style services (#1998)
This refactors the render methods in these services to use the new helper functions.
2018-08-29 14:06:36 -07:00
Paul MelnikowandGitHub f8f2d88b90 Clean up some alerts detected by LGTM (#2010)
https://lgtm.com/projects/g/badges/shields/alerts/?mode=list
2018-08-29 13:37:43 -07:00
tooommandPyves 15beda32b0 Additional tweaks to deployment bot message (#2011) 2018-08-29 19:09:02 +01:00
tooommandPaul Melnikow 119357333e tutorial: fix headline (#2014) 2018-08-29 11:22:54 -04:00
tooommandPaul Melnikow 0619e1072c fix identation (#2012) 2018-08-29 10:22:48 -04:00
PyvesandGitHub df30785c4b Improved deployment bot message (#1996) 2018-08-29 09:28:34 +01:00
dependabot[bot]andPaul Melnikow f4789125a7 Bump nyc from 12.0.1 to 13.0.1 (#1992)
Bumps [nyc](https://github.com/istanbuljs/nyc) from 12.0.1 to 13.0.1.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v12.0.1...v13.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-29 02:52:12 -04:00
dependabot[bot]andchris48s 16d415769f Bump babel-eslint from 8.2.6 to 9.0.0 (#1991)
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 8.2.6 to 9.0.0.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v8.2.6...v9.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-28 22:45:23 +01:00
Paul MelnikowandGitHub 5bc26eaacf Use Joi 13.6.0 on the servers (#1989)
Ref: #1988
2018-08-28 15:16:14 -04:00
chris48sandGitHub e294dc4edc refactor [circleci] integration (#1927)
* refactor [circleci] integration
2018-08-28 15:49:43 +01:00
Y0hy0handPaul Melnikow edea36dd10 [elm-package] Fix elm package service (#1986) 2018-08-28 10:25:58 -04:00
Paul MelnikowandGitHub 64d325b002 Reduce boilerplate in a few more service testers [cdnjs continuousphp node shippable wercker gem] (#1957)
Follow up to #1934.
2018-08-27 16:36:35 -04:00
Paul MelnikowandGitHub bedba47d77 Move legacy services from server.js into services/ (#1958)
This builds on the work of #1931 by moving the legacy services into `services/`.
2018-08-27 13:29:54 -04:00
dependabot[bot]andchris48s f3037c5e15 Bump glob from 7.1.2 to 7.1.3 (#1981)
Bumps [glob](https://github.com/isaacs/node-glob) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/master/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v7.1.2...v7.1.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-27 17:09:41 +01:00
dependabot[bot]andchris48s 6b3d1ab010 Bump concurrently from 3.6.1 to 4.0.1 (#1980)
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 3.6.1 to 4.0.1.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/3.6.1...v4.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-27 17:04:46 +01:00
Paul MelnikowandGitHub 302c8606ff Rewrite [pypi]; affects [npm] (#1922) 2018-08-27 07:46:06 -04:00
tooommandPaul Melnikow 78bb890b52 danger: highlight service in msg (#1928) 2018-08-26 16:16:21 -04:00
Nicco KunzmannandPyves 504b68ef13 Make wercker preview badge static (#1974) 2018-08-26 15:40:24 +01:00
PyvesandGitHub f377443585 Fixed Chrome Web Store examples (#1976) 2018-08-26 09:21:17 +01:00
Nicco KunzmannandPyves ed85e1cb12 Clarify what is used to run the specific tests (#1973) 2018-08-26 09:12:40 +01:00
Nicco KunzmannandMarcin Mielnicki 9428c20418 danger: help users to write server tests (#1970)
* danger: help users to write server tests

- fixes https://github.com/badges/shields/issues/1968
- adds the desired notice

* add trailing comma

https://circleci.com/gh/badges/shields/11866?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
2018-08-25 17:55:02 +02:00
PyvesandGitHub ddb3bf4256 Fixed libraries.io error handling (#1964) 2018-08-24 18:32:28 +01:00
Nicco KunzmannandPyves dad1b4e4f1 Fix link to service tests (#1969) 2018-08-23 22:38:11 +01:00
tooommandPyves 53cf4c1fe9 Remove gratipay from frontend (#1967) 2018-08-23 22:21:53 +01:00
Nicco KunzmannandPaul Melnikow 147d0e9bcc add examples for documentation contributions (#1962)
The section for documentation contribution is quite short.
This adds examples of when to make a contribution.
2018-08-23 16:32:11 -04:00
chris48sandGitHub ae190c5f07 generate static examples without api call [apm appveyor cdnjs clojars gem npm uptimerobot] (#1740)
* allow service classes to define a static example
* define static example for some services
  (apm, appveyor, cdnjs, clojars, gem, librariesio, npm, uptimerobot)
* add/update tests


This allows us to show an example without making an API call to a live service for better performance.

We can now specify 3 fields in the example definition:

* urlPattern for the version with placeholders e.g: /npm/dw/:package.svg
* ExampleUrl/Uri for the concrete example e.g: /npm/dw/localeval.svg
* PreviewUrl/Uri for the static (or live) image we will actually show
2018-08-23 20:22:24 +01:00
Paul MelnikowandGitHub a0c43ed219 Reduce boilerplate for creating new testers [npm appveyor gem uptimerobot clojars] (#1934)
This is a bit of sugar that reduces the boilerplate for creating testers in what I expect will become the standard case: a service in `foo/foo-thing.service.js` with its tests in `foo/foo-thing.tester.js`.

This makes a small stylistic change, which is to name the service by its CamelCase class name rather than an invented snake-case ID. Whereas before the name was specified in `class FooThing extends Base[Json]Service` and a second time in the tester, it now only needs to be specified once.
2018-08-22 18:07:51 -04:00
Paul MelnikowandGitHub 452affba15 Sort some more badges (#1948)
- Move the Docker Pulls badge from **Other** to **Downloads**.
- Create **Platform & Version Support** for the following:
    - django version support
    - python version support
    - node version support
    - pypi - wheel (waiting to avoid conflict with #1922)
    - pipi - format (waiting to avoid conflict with #1922)
    - pipi - implementation (waiting to avoid conflict with #1922)
    - hhvm
    - cocoapods platform
    - conda
    - php version badges
2018-08-22 15:05:11 -04:00
Paul MelnikowandGitHub 942466aa92 Allow migrating legacy services to services/ (#1931) 2018-08-21 23:38:12 -04:00
dependabot[bot]andchris48s b8f81cf405 Bump semver from 5.5.0 to 5.5.1 (#1952)
Bumps [semver](https://github.com/npm/node-semver) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Commits](https://github.com/npm/node-semver/compare/v5.5.0...v5.5.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-20 21:28:20 +01:00
chris48sandGitHub c19695f628 don't run deploy bot on dependabot PRs (#1924)
Don't run deploy bot on dependabot PRs
2018-08-20 21:13:44 +01:00
PyvesandGitHub 82bc90cec1 Deprecated VersionEye (#1953) 2018-08-20 20:04:11 +01:00
Paul MelnikowandGitHub 656326d693 Rewrite [appveyor] tests badge (#1940) 2018-08-20 14:49:59 -04:00
dependabot[bot]andPaul Melnikow 77061fe6af Bump eslint-plugin-promise from 3.8.0 to 4.0.0 (#1950)
Bumps [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise) from 3.8.0 to 4.0.0.
- [Release notes](https://github.com/xjamundx/eslint-plugin-promise/releases)
- [Changelog](https://github.com/xjamundx/eslint-plugin-promise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xjamundx/eslint-plugin-promise/compare/v3.8.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-20 10:00:04 -04:00
dependabot[bot]andPaul Melnikow fd4637c042 Bump eslint from 5.3.0 to 5.4.0 (#1951)
Bumps [eslint](https://github.com/eslint/eslint) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.3.0...v5.4.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-20 09:56:28 -04:00
Paul MelnikowandGitHub 77b54c8c9a Sort some badges (#1945)
This implements proposals 1, 2, and 4 from #1905:

* Move gem rank from ratings to downloads; tweak title

* Move docker build from other to build

* Move bundlephobia, github file, github repo, imagelayers, and microbadger size + layers badges into new category

* Fill in a couple missing titles
2018-08-19 17:55:20 -04:00
Paul MelnikowandGitHub a16d436602 Optionally persist [Github] tokens in Redis (#1939)
This is a fairly simple addition of a Redis-backed TokenPersistence. When GithubConstellation is initialized, it will create a FsTokenPersistence or a RedisTokenPersistence based on configuration. Have added tests of the Redis backend as an integration test, and ensured the server starts up correctly when a `REDIS_URL` is configured.

Ref: #1848
2018-08-19 10:27:23 -04:00
Paul MelnikowandGitHub edb7d82500 Change format of [npm] type definitions badge (#1897)
Based on feedback at chalk/chalk#286.
2018-08-19 09:27:23 -04:00
Paul MelnikowandGitHub 365f2cff5f Run tests by prefix e.g. [librariesio] (#1933)
Close #1923
2018-08-19 00:40:02 -04:00
Paul MelnikowandGitHub b10a6a4aa7 Refactor [github] token persistence, again (#1906)
Instead of saving tokens on a timer, save them when they change. Use EventEmitter to keep the components loosely coupled.

This is easier to reason about, much easier to test, and better supports adapting to backends which support atomic operations.

This replaces json-autosave, which was a bit difficult to read and also hard to test, with fsos, the lower-level utility it’s built on.

Ref: #1848
2018-08-18 23:54:53 -04:00