Commit Graph

2945 Commits

Author SHA1 Message Date
Paul Melnikow
ae2499bf53 Generate JSON badges without using a template [GithubSearch] (#3395)
Warm up for #2428.
2019-04-29 23:26:52 -04:00
Paul Melnikow
7980a65d7f [WordpressPlatformTests] Support tested version without trailing ".0" (#3396)
See https://circleci.com/gh/badges/shields/52378 for an example failure,
where a value of `5.2` is triggering "TypeError: Invalid Version: 5.2"
2019-04-29 21:52:57 -04:00
Paul Melnikow
b2e21da34d Remove legacy helper makeBadgeData (#3392)
Close #3369
2019-04-29 19:44:25 -04:00
dependabot[bot]
b752bbfd5a Bump escape-string-regexp from 1.0.5 to 2.0.0; move to dev deps (#3383) 2019-04-29 18:35:56 -04:00
dependabot[bot]
91592802da Build(deps-dev): bump gatsby from 2.3.25 to 2.3.33 (#3389)
Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 2.3.25 to 2.3.33.
- [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.25...gatsby@2.3.33)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 18:27:10 -04:00
Paul Melnikow
ad182885ad Get two service helpers to 100% coverage (#3391) 2019-04-29 14:16:33 -04:00
Pierre-Yves B
9a869e24ba Added link test expectations (#3376) 2019-04-29 18:52:58 +01:00
Paul Melnikow
a0492c5283 Remove unused callback-based error helpers (#3371) 2019-04-29 13:35:57 -04:00
dependabot[bot]
ca4763b0ff Build(deps-dev): bump @babel/plugin-proposal-object-rest-spread (#3379)
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel) from 7.4.3 to 7.4.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.3...v7.4.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 19:19:40 +02:00
Marcin Mielnicki
2462951254 Run entrypoint tests in CI (#3390)
* Start server in test without args from mocha

* Entrypoint tests added to CI
2019-04-29 19:09:52 +02:00
dependabot[bot]
a994c13655 Build(deps-dev): bump @babel/polyfill from 7.4.3 to 7.4.4 (#3381)
Bumps [@babel/polyfill](https://github.com/babel/babel) from 7.4.3 to 7.4.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.3...v7.4.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 18:51:30 +02:00
Marcin Mielnicki
eeb78ccf15 Badge suggestion feature fix (#3331)
* Display suggested badges

* E2e test for badge suggestion

* Suggest resource returns example with pattern

* Do not require preview in MarkupModalContent

* Skip integration test for suggestion

* Unmodifiable path in customizer

* Use suggested link

* Allow to change suggested badges

* Enable skipped test

* Enable skipped test

* Code refactoring

* Code refactoring

* Code refactoring

* Code refactoring

* Code refactoring

* Code refactoring

* Unused code removed

* Unused code removed

* getExampleWithServiceByPattern helper added

* BadgeExamples uses examples instead of services definitions

* Revert "getExampleWithServiceByPattern helper added"

This reverts commit 80839fd705.

* style removed from example

* example.exact replaced with preview.buildFromExample

* keywords are required again

* Code refactoring

* More e2e tests for suggestion feature

* Code refactoring

* Build add with a base url

* showActualParams -> isPrefilled

* A new schema for BadgeExamples

* Link moved to queryParams

* Updated documentation for the suggest reponse format

* Link moved to queryParams - another test updated

* Revert "Link moved to queryParams - another test updated"

This reverts commit b5f811bb07.

* Revert "Link moved to queryParams"

This reverts commit 3b54c6d2b4.

* Disable changes in path in suggested badges

* 'link' element documentation restored
2019-04-29 18:38:27 +02:00
dependabot[bot]
2fc4e71410 Build(deps): bump check-node-version from 3.2.0 to 3.3.0 (#3386)
Bumps [check-node-version](https://github.com/parshap/check-node-version) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/parshap/check-node-version/releases)
- [Changelog](https://github.com/parshap/check-node-version/blob/master/CHANGELOG.md)
- [Commits](https://github.com/parshap/check-node-version/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 11:54:53 -04:00
dependabot[bot]
26a8c7c52a Build(deps-dev): bump snap-shot-it from 6.3.3 to 6.3.5 (#3382)
Bumps [snap-shot-it](https://github.com/bahmutov/snap-shot-it) from 6.3.3 to 6.3.5.
- [Release notes](https://github.com/bahmutov/snap-shot-it/releases)
- [Commits](https://github.com/bahmutov/snap-shot-it/compare/v6.3.3...v6.3.5)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 17:10:39 +02:00
dependabot[bot]
cc61ab31e9 Build(deps-dev): bump react-select from 2.4.2 to 2.4.3 (#3380)
Bumps [react-select](https://github.com/JedWatson/react-select) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/JedWatson/react-select/releases)
- [Changelog](https://github.com/JedWatson/react-select/blob/master/.sweet-changelogs.js)
- [Commits](https://github.com/JedWatson/react-select/compare/v2.4.2...v2.4.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 16:59:18 +02:00
dependabot[bot]
48efd0ed8f Build(deps-dev): bump husky from 1.3.1 to 2.1.0 (#3384)
Bumps [husky](https://github.com/typicode/husky) from 1.3.1 to 2.1.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v1.3.1...v2.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 16:46:55 +02:00
dependabot[bot]
722398a413 Build(deps-dev): bump mocha from 6.1.3 to 6.1.4 (#3388)
Bumps [mocha](https://github.com/mochajs/mocha) from 6.1.3 to 6.1.4.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v6.1.3...v6.1.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 16:33:24 +02:00
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