Commit Graph

2928 Commits

Author SHA1 Message Date
Ville Skyttä
802c3cd8e8 Allow tilde as optional suffix separator (#3378)
For example [Debian] uses them, typically for pre-releases.
2019-04-29 15:11:55 +01:00
chris48s
5f29f6a175 case-insentitive asset name compare in [githubdownloads] (#3377)
closes #3364
2019-04-29 15:05:27 +01:00
Ville Skyttä
3875d292a6 Add [Debian] package version support (#3373)
https://wiki.debian.org/Services/api.ftp-master.debian.org
2019-04-29 14:58:45 +01:00
Ville Skyttä
75def85eca Add [ArchLinux] package version support (#3374) 2019-04-28 21:19:42 +01:00
Pierre-Yves B
2806eb8a00 Legacy services clean up (#3367)
* Deleted remaining legacy service bits

* Removed badge from README

* Removed no longer needed try/catch

* Deleted refactoring script

* Switched to const

* Reinstated doc

* Ran Prettier
2019-04-27 19:25:01 +01:00
Pierre-Yves B
499fb8dbaf Fixed color of GitHub forks badge (#3366) 2019-04-27 13:48:47 -04:00
Caleb Cartwright
07a8d2ecbe refactor [Scrutinizer] (#3266)
* refactor(Scrutinizer): migrated to new BaseJsonService

* refactor(ScrutinizerCoverage): updated color scale to match

* refactor(Scrutinizer): switched to multiple classes to handle dif. git hosts

* refactor(Scrutinizer): finished migrating to new service arch.

* fix(Scrutinizer): fixed branch check logic

* refactor(Scrutinizer): inline transforms based on PR feedback

* refactor(ScrutinizerCoverage): change handling of no coverage scenario
2019-04-26 21:50:28 -05:00
James Cahill
01d745122b refactor [mavencentral] (#3290)
* refactor maven central

* misc fixes

- include a pretty message on NotFound when the filter returns no results

- split the group and artifact into seperate variables

- remove the connection error test

* remove xml parsing test and add inexistent version prefix test

* use existing test validators and shorthand createservicetester
2019-04-25 18:35:50 -05:00
Paul Melnikow
2215693557 Rewrite [GithubTag] (#3360)
Ref #2863
2019-04-25 11:23:16 -04:00
Paul Melnikow
0088a9d0da Unify remaining service order and enforce (#3359)
Ref #3353
2019-04-24 16:53:33 -04:00
Paul Melnikow
f8aeb56129 Unify order of more services (#3358)
Ref #3353
2019-04-24 15:08:26 -04:00
Paul Melnikow
1dd8d1329c Unify order of another handful of services (#3356)
Ref #3353
2019-04-24 15:03:23 -04:00
Paul Melnikow
36f50f2a02 Refactor [cii] (#3357) 2019-04-24 08:36:39 -05:00
Paul Melnikow
051e7d04c1 Rewrite [travisphpversion]; improve error message in expectBadge (#3352)
The change in `expectBadge` prints a more helpful error when `message` is empty.

Ref #2863
2019-04-23 23:03:21 -04:00
Paul Melnikow
1cdcaabd38 Unify order of properties and methods in services (#3353)
I find having these in a consistent order makes the services much faster to read.

This is the order I’ve generally been using:

1. Category
2. Route
3. Examples
4. Rendering
5. Other helpers (`fetch()`, `transform()`)
6. `handle()`
2019-04-23 21:36:04 -04:00
Caleb Cartwright
12191e20c4 refactor [JenkinsTests JenkinsCoverage], also run [JenkinsBuild] (#3337)
* refactor(JenkinsTests): finished core refactor to new service model

* refactor(JenkinsTests): more updates

* refactor(JenkinsCoverage): minor refactor to leverage new common Jenkins content

* refactor(JenkinsBuild): update redirector to include shorthand alias

* chore: apply suggestion on jenkins-tests.service.js

Co-Authored-By: calebcartwright <calebcartwright@users.noreply.github.com>

* refactor(JenkinsTests): rename test helpers

* chore: cleanup JenkinsCoverage redirector

* chore: cleanup JenkinsBuild redirector

* chore: cleanup test docs
2019-04-23 20:20:34 -05:00
Paul Melnikow
8ad0b105b1 Make the config from env more obvious at first glance; explain cascading config (#3355) 2019-04-23 13:57:23 -04:00
Caleb Cartwright
6547a5765c chore: minor cleanup (#3354) 2019-04-23 10:22:47 -04:00
Guy Saar
d3ec64c789 [Bit] add bit components count service (#3338)
* [Bit] add bit components count service

* [Bit] change 404 error to 'collection not found'

* [Bit] remove comment

* [Bit] change collection schema

* [Bit] use isMetric

* [Bit] replace static color to dynamic color

* [BIt] change bit total components route

* change scope to collection

* change all scope var to collection
2019-04-23 06:54:51 -05:00
Paul Melnikow
ca22d01606 Rewrite [GithubDownloads] (#3351)
For consistency with other download badges, I changed some formatting:

-  **downloads | 24k total** -> **downloads | 24k**
- **downloads | 3k** -> **downloads@latest | 3k**
- **downloads | 3k v0.29.0** -> **downloads@v0.29.0 | 3k**

Ref #2863
2019-04-22 22:55:31 -04:00
Paul Melnikow
f13326dddf Rewrite [githubcommitssince]; also test [githubrelease] (#3350) 2019-04-22 18:54:58 -05:00
dependabot[bot]
aa32f48765 Build(deps-dev): bump gatsby-plugin-react-helmet from 3.0.10 to 3.0.12 (#3347)
Bumps [gatsby-plugin-react-helmet](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet) from 3.0.10 to 3.0.12.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-react-helmet/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-react-helmet@3.0.12/packages/gatsby-plugin-react-helmet)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 18:45:52 -05:00
dependabot[bot]
d5cc72b3a8 Build(deps-dev): bump babel-plugin-istanbul from 5.1.1 to 5.1.2 (#3344)
Bumps [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/istanbuljs/babel-plugin-istanbul/releases)
- [Changelog](https://github.com/istanbuljs/babel-plugin-istanbul/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.1.1...v5.1.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 18:35:05 -05:00
dependabot[bot]
35d328b222 Build(deps): bump camelcase from 5.2.0 to 5.3.1 (#3349)
Bumps [camelcase](https://github.com/sindresorhus/camelcase) from 5.2.0 to 5.3.1.
- [Release notes](https://github.com/sindresorhus/camelcase/releases)
- [Commits](https://github.com/sindresorhus/camelcase/compare/v5.2.0...v5.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 21:09:24 +01:00
dependabot[bot]
7f2e0f5913 Build(deps-dev): bump clipboard-copy from 2.0.1 to 3.0.0 (#3346)
Bumps [clipboard-copy](https://github.com/feross/clipboard-copy) from 2.0.1 to 3.0.0.
- [Release notes](https://github.com/feross/clipboard-copy/releases)
- [Commits](https://github.com/feross/clipboard-copy/compare/v2.0.1...v3.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 20:53:23 +01:00
dependabot[bot]
884a6041dd Build(deps-dev): bump gatsby from 2.3.22 to 2.3.25 (#3343)
Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 2.3.22 to 2.3.25.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.3.22...gatsby@2.3.25)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 20:48:00 +01:00
dependabot[bot]
093b5d19ed Build(deps-dev): bump humanize-string from 1.0.2 to 2.1.0 (#3340)
Bumps [humanize-string](https://github.com/sindresorhus/humanize-string) from 1.0.2 to 2.1.0.
- [Release notes](https://github.com/sindresorhus/humanize-string/releases)
- [Commits](https://github.com/sindresorhus/humanize-string/compare/v1.0.2...v2.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 20:42:30 +01:00
dependabot[bot]
3db3552dde Build(deps-dev): bump is-png from 1.1.0 to 2.0.0 (#3342)
Bumps [is-png](https://github.com/sindresorhus/is-png) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/sindresorhus/is-png/releases)
- [Commits](https://github.com/sindresorhus/is-png/compare/v1.1.0...v2.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 20:35:38 +01:00
dependabot[bot]
90fc3e65d8 Build(deps-dev): bump opn-cli from 4.0.0 to 4.1.0 (#3341)
Bumps [opn-cli](https://github.com/sindresorhus/opn-cli) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/sindresorhus/opn-cli/releases)
- [Commits](https://github.com/sindresorhus/opn-cli/compare/v4.0.0...v4.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 12:45:50 -05:00
dependabot[bot]
b800cfed0f Build(deps-dev): bump sinon from 7.3.1 to 7.3.2 (#3348)
Bumps [sinon](https://github.com/sinonjs/sinon) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v7.3.1...v7.3.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 12:13:20 -05:00
dependabot[bot]
1e8f0b05c9 Build(deps-dev): bump nock from 11.0.0-beta.6 to 11.0.0-beta.10 (#3345)
Bumps [nock](https://github.com/nock/nock) from 11.0.0-beta.6 to 11.0.0-beta.10.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/beta/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 10:55:23 -05:00
Paul Melnikow
5828223356 Refactor [Wordpress] services (#3324)
- Prefer inline transforms to take place in `handle()` rather than `render()`
- Avoid inversion of control by removing `BaseWordpress#handle()`, passing `extensionType` into `fetch()`, and removing one layer of subclassing
- Move “not found” checks into `fetch()`
- Cache wordpress versions instead of fetching on each request
- Start to convert aliases to redirects (there are more of these which could be tackled in a follow-on)
- Replace at least one route `format` with a `pattern` (ref #3329)
- Partially reorder: name, category, route, examples, defaultBadgeData, render, fetch, handle

Some of this is in line with our established patterns or makes it clearly easier to follow; some of it is arguably stylistic.
2019-04-22 10:45:25 -05:00
chris48s
05af1f82b2 refactor [vaadindirectory] badges (#3339) 2019-04-21 21:10:30 +01:00
Paul Melnikow
b55e3eef60 Rewrite [codeclimate] analysis (#3321)
* WIP

* Rewrite [codeclimate] analysis

Ref #2683

* Tweak names

* chore: tweak redirector category
2019-04-21 11:44:07 -05:00
Paul Melnikow
a291ba73a3 Use url pattern for [nexus] + minor cleanup (#3326)
* Use url `pattern` for [nexus]

* chore: minor nexus example tweaks

* chore: fix prettier issue

* refactor(Nexus): minor refactor to fix tests and examples

* chore: increase timeout on nexus service tests

* chore: prettified for prettier

* tests(Nexus): increase timeout for recurringly slow test

* chore: update nexus schema with docs
2019-04-20 16:23:42 -05:00
Caleb Cartwright
049057c230 add strictSSL query param toggle to [coverity] (#3336)
* feat(coverity): adding query param toggle for strict ssl

* feat: disable coverity strict ssl check by default
2019-04-20 13:52:48 -05:00
Caleb Cartwright
a144f957b6 refactor [JenkinsBuild] (#3302)
* refactor(JenkinsBuild): ported to new service model

* refactor(JenkinsBuild): added redirector for jenkins-ci route

* refactor(JenkinsBuild): trying to debug test on circle

* refactor(JenkinsBuild): fix test of mock creds

* chore: fix typo in wrong file 🤦

* refactor(JenkinsBuild): update route

* refactor(JenkinsBuild): fixed service test

* refactor(JenkinsBuild): made strictSSL configurable via QP
2019-04-19 15:34:21 -05:00
Caleb Cartwright
4ae393565a refactor: deprecated php-eye/hhvm badges (#3335) 2019-04-18 21:05:38 -05:00
Paul Melnikow
b069dbbaad Use route patterns in [snap-ci nsp gratipay githubmanifest codacy cauditor bithound] (#3327)
Ref #3329
2019-04-18 18:15:48 -05:00
Paul Melnikow
066193c002 Readme: Update node compatibility (#3330) 2019-04-17 15:15:46 -04:00
Paul Melnikow
d1f00b93e8 [security] Bump nyc from 13.3.0 to 14.0.0 (#3323) 2019-04-17 14:51:56 -04:00
Paul Melnikow
b431923e35 Minor rename in [node] (#3325) 2019-04-17 13:13:24 -04:00
Paul Melnikow
5bedbbd9c1 [security] npm audit fixes; ignore [security] in PR title (#3322) 2019-04-17 11:30:34 -04:00
Pierre-Yves B
0a9611d574 Migrated JenkinsPluginVersion to new service architecture (#3317) 2019-04-17 06:53:45 +01:00
Paul Melnikow
cffa29dd5c Fix [codeclimatecoverage] coverage-percentage route (#3320) 2019-04-16 23:39:03 -04:00
Paul Melnikow
fc5cd07a0f Consolidate [DubDownloads] into one service (#3319)
Same idea as #3318.
2019-04-16 21:50:15 -04:00
Paul Melnikow
b79d1952c0 Consolidate [NpmDownloads] into one service (#3318)
This moves the four npm download services into a single class, in line with #3174, and other service implementations we've written in the last couple months. 

1. Change the suffixes from **/m** to **/month** for consistency.
2. Add tests of one of the intervals besides total.
3. Rewrite mocked service tests as unit tests.
4. Use (and work with) the `intervalMap` pattern that I think @calebcartwright started us using.
2019-04-16 19:18:16 -04:00
Cedric van Putten
483ecf24de [Drone] Add Drone build badge (#3240)
* Add drone build badge based on travis

* Fix wrong mocked endpoint for done builder

* Refactor service tester using helper method

* Add missing failure status to red statuses

* Remove extraneous invalid svg test from drone

* Test on failure red status in build status spec

* refactor(drone): use json service instead of svg

* refactor(drone): remove status text and extraneous build path in test

* refactor(drone): allow defining self-hosted drone instances

* fix(drone): use proper urls in drone examples

* fix(drone): add drone token authorization for self-hosted instances

* refactor(drone): call render build status badge directly instead of render

* refactor(drone): use server query parameter for self-hosted instances

* fix(drone): separate url and query params in example

* fix(drone): use actual build status message in examples

* fix(drone): add missing message for status code 401

Co-Authored-By: byCedric <me@bycedric.com>

* refactor(drone): remove color from drone tests

* refactor(drone): remove extraneous comments from drone tests

* refactor(drone): remove unused static preview method

* refactor(drone): remove unused static render method

* refactor(drone): reuse render build status badge helper in static previews

* fix(drone): test inaccessible repos on new message
2019-04-16 11:33:15 -05:00
Paul Melnikow
91d6dd6643 Rewrite [codeclimate] coverage (#3316)
Attacking this in two pieces for ease of review. The legacy implementation for coverage is still there, though I disabled it via the route. That whole file will be removed in the next PR.

Ref #2863
2019-04-15 23:47:25 -04:00
Caleb Cartwright
700b61e16b Refactor [Sonar] (#3189)
* refactor(sonar)

* refactor(sonarqube): creating separate services for SQ badges

* refactor(sonar): more sonar refactorings

* refactor(sonar): fixed duplicate service names from c/p

* refactor(sonar): finished violations service impl

* refactor(sonar): finished unit tests for violations service

* feat(sonar): violation badge updates

* refactor(sonar): finished doc. api density service

* feat(sonar): added quality gate service

* chore: sonar doc tweaks

* refactor(sonar): added redirector service

* refactor(sonar): added examples

* refactor(sonar): minor example updates

* refactor(sonar): added final tests

* chore(sonar): removed unneeded test spec file for base class

* refactor(sonar): updates based on PR feedback

* refactor(sonar): change query param to sonarVersion

* refactor(sonar): fixing query param issue

* refactor(sonar): fix test color for generic metric

* chore: fix lint/prettier issue

* chore(sonar): update query param name in examples

* refactor(sonar): make schema metric key required

* reactor(sonar): fix tests

* refactor(sonar): added more example listings

* refactor(sonar): minor style updates

* refactor(sonar): update examples

* refactor(Sonar): minor example tweaks
2019-04-15 17:03:57 -05:00