Commit Graph
2694 Commits
Author SHA1 Message Date
Paul MelnikowandGitHub cd49bda968 Improve coverage in frontend and remove some dead code (#3031) 2019-02-22 00:08:11 -05:00
dependabot[bot]andPaul Melnikow a9ed1e144e Bump gatsby-plugin-page-creator from 2.0.6 to 2.0.7 (#3060)
Bumps gatsby-plugin-page-creator from 2.0.6 to 2.0.7.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-22 00:04:55 -05:00
Paul MelnikowandGitHub ab18bc0f09 Shorten [endpoint] URL (#3050)
Ref https://github.com/badges/shields/issues/2838#issuecomment-461794344
2019-02-22 00:01:56 -05:00
Paul MelnikowandGitHub 4bd16f93e8 Sort imports and requires (#3056)
This will definitely save time, and ensure more uniformity.

It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.

Closes #2701
2019-02-21 22:14:40 -05:00
mbarkhauandPaul Melnikow f6628e62b7 [QueryStringStatic] service (#3024)
Ref #2673
2019-02-21 21:12:24 -05:00
Paul MelnikowandGitHub 9e4a8cec09 Consolidate badge URL generation functions (#3032)
This consolidates all the badge URL generation functions into a single place, and updates the rest of the calling code to use it. It renames some things and updates labels to bring the names into alignment with the current API.

Resolve #2027
2019-02-21 21:07:27 -05:00
DanialandPaul Melnikow f550f0cc4d Update Travis logo, Reduce some duplication (#3047)
Switch Travis to use full-color logo approved at https://github.com/badges/shields/pull/1276#issuecomment-466164851
2019-02-21 20:29:23 -05:00
dependabot[bot]andPaul Melnikow 41fc3bbbf8 Bump icedfrisby from 2.0.0-alpha.3 to 2.0.0-alpha.4 (#3073)
Bumps [icedfrisby](https://github.com/RobertHerhold/IcedFrisby) from 2.0.0-alpha.3 to 2.0.0-alpha.4.
- [Release notes](https://github.com/RobertHerhold/IcedFrisby/releases)
- [Changelog](https://github.com/IcedFrisby/IcedFrisby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RobertHerhold/IcedFrisby/compare/2.0.0-alpha.3...2.0.0-alpha.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 00:45:51 -05:00
Paul MelnikowandGitHub 33aefcfaf8 Minor cleanup related to colorB -> color (#3066)
As `color` is now the canonical, it makes sense to update some of these tests to say `colorB` instead.

Ref #3012
2019-02-20 23:34:22 -05:00
Paul MelnikowandGitHub 2d7be31b0c Validate query params in BaseService (#3042)
This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.

Fix #2676
2019-02-20 22:24:47 -05:00
dependabot[bot]andPaul Melnikow 52a71cb327 Bump gatsby from 2.1.4 to 2.1.13 (#3067)
Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 2.1.4 to 2.1.13.
- [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.1.4...gatsby@2.1.13)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-20 19:15:55 -05:00
dependabot[bot]andPaul Melnikow d49ce75fee Bump gatsby-plugin-styled-components from 3.0.5 to 3.0.6 (#3064)
Bumps [gatsby-plugin-styled-components](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-styled-components) from 3.0.5 to 3.0.6.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-styled-components/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-styled-components@3.0.6/packages/gatsby-plugin-styled-components)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-20 19:08:09 -05:00
Paul MelnikowandGitHub 5fda6ac11e Alphabetize JSX props in the frontend (#3055)
I'm game to give this a shot.

Ref #2701
2019-02-20 18:58:24 -05:00
Paul MelnikowandGitHub c770a43dd8 Move flip cache debug service into [debug] (#3057)
Close #2636
2019-02-20 18:43:27 -05:00
Caleb CartwrightandGitHub a4bd3f5fd6 Add SymfonyInsight stars badge, run [SymfonyInsight sensiolabs amo chrome-web-store redmine spigetratings vaadin-directory visualstudiomarketplacerating wordpress] (#2971)
* feat: added stars badge for symfony insight

* refactor: changed symfony star determination logic

* feat: updating symfony to handle old scan scenarios

* feat: updated symfony insight to handle older projects

* tests: removed another test for symfony insight per request
2019-02-20 17:15:31 -06:00
Caleb CartwrightandPaul Melnikow 96d48dc486 chore: make mocha rc configs dotfiles (#3065)
Fixes #3054 

Apparently mocha 6's new auto-config discovery only works with dotfiles. This renames our mocha rc files accordingly: `mocharc.yml` --> `.mocharc.yml` and solely to be consistent `mocharc-frontend.yml` --> ` .mocharc-frontend.yml`

- https://github.com/mochajs/mocha/blob/master/lib/cli/config.js#L23
- https://mochajs.org/#configuring-mocha-nodejs
- https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#tada-enhancements-1
2019-02-20 18:05:14 -05:00
Paul MelnikowandGitHub bc523e3aae Fix your-badge link (#3058)
Fix #1954
2019-02-20 16:34:50 -05:00
Paul MelnikowandPierre-Yves B 84db9e6fe3 Remove IP filtering code for prometheus metrics (#3059)
Closes #2657
2019-02-20 18:38:16 +00:00
Pierre-Yves BandGitHub 27696d4691 Require constructors to be called with new (#3052) 2019-02-20 09:49:42 +00:00
dependabot[bot]andPaul Melnikow 144d1632f5 Bump icedfrisby from 2.0.0-alpha.2 to 2.0.0-alpha.3 (#3061)
Bumps [icedfrisby](https://github.com/RobertHerhold/IcedFrisby) from 2.0.0-alpha.2 to 2.0.0-alpha.3.
- [Release notes](https://github.com/RobertHerhold/IcedFrisby/releases)
- [Changelog](https://github.com/IcedFrisby/IcedFrisby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RobertHerhold/IcedFrisby/compare/2.0.0-alpha.2...2.0.0-alpha.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-20 01:21:28 -05:00
dependabot[bot]andPaul Melnikow f754b1ac2e Bump @babel/plugin-proposal-class-properties from 7.3.0 to 7.3.3 (#3018)
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel) from 7.3.0 to 7.3.3.
- [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.3.0...v7.3.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 23:48:16 -05:00
dependabot[bot]andPaul Melnikow 77ef526997 Bump react-select from 2.3.0 to 2.4.1 (#3043)
Bumps [react-select](https://github.com/JedWatson/react-select) from 2.3.0 to 2.4.1.
- [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.3.0...v2.4.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 23:45:50 -05:00
Paul MelnikowandGitHub a30c833989 Use drop-down for [jsdelivr] and make badges more consistent with other download badges (#3036)
- Move to Downloads
- Use `downloadCount`
- Remove “hits” from the message
- "package name" for better appearance in the UI
- Simplify validation
2019-02-19 23:43:29 -05:00
dependabot[bot]andPaul Melnikow 049a5409df Bump @babel/core from 7.2.2 to 7.3.3 (#3021)
Bumps [@babel/core](https://github.com/babel/babel) from 7.2.2 to 7.3.3.
- [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.2.2...v7.3.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 22:21:10 -05:00
chris48sandPaul Melnikow 6d4b80f124 improve docs for simple-icons usage (#3007)
Closes #2980
2019-02-19 22:14:19 -05:00
mbarkhauandPaul Melnikow 6e2992a3e3 Rename colorB -> color; colorA -> labelColor (#3012)
This makes it possible to override the parameters `color` and `labelColor`.

ref #2673
2019-02-19 22:03:45 -05:00
dependabot[bot]andPierre-Yves B f721eb7424 Bump sinon from 7.2.3 to 7.2.4 (#3044)
Bumps [sinon](https://github.com/sinonjs/sinon) from 7.2.3 to 7.2.4.
- [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.2.3...v7.2.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 21:44:17 +00:00
dependabot[bot]andPierre-Yves B cc57d32227 Bump danger from 7.0.11 to 7.0.12 (#3023)
Bumps [danger](https://github.com/danger/danger-js) from 7.0.11 to 7.0.12.
- [Release notes](https://github.com/danger/danger-js/releases)
- [Changelog](https://github.com/danger/danger-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/danger/danger-js/compare/7.0.11...7.0.12)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 21:41:44 +00:00
dependabot[bot]andPierre-Yves B d727986f5a Bump lint-staged from 8.1.3 to 8.1.4 (#3016)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.1.3...v8.1.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 21:36:09 +00:00
dependabot[bot]andchris48s 471e53afc9 Bump simple-icons from 1.9.19 to 1.9.20 (#3045)
Bumps [simple-icons](https://github.com/simple-icons/simple-icons) from 1.9.19 to 1.9.20.
- [Release notes](https://github.com/simple-icons/simple-icons/releases)
- [Commits](https://github.com/simple-icons/simple-icons/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 20:12:57 +00:00
dependabot[bot]andPaul Melnikow 42683a0587 Bump enzyme from 3.8.0 to 3.9.0 (#3046)
Bumps [enzyme](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/airbnb/enzyme/releases)
- [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md)
- [Commits](https://github.com/airbnb/enzyme/compare/enzyme@3.8.0...enzyme@3.9.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 09:58:26 -05:00
Ville SkyttäandPaul Melnikow 4611ba155f Fall back to grabbing version from "X :: Only" PyPI classifiers (#3014)
If e.g. `3 :: Only` alone is specified in PyPI classifiers, use the `3` from it. But keep ignoring `* :: Only` when it occurs with other specified versions.
2019-02-19 09:49:53 -05:00
DanialandPierre-Yves B c2c27ea795 TypeError: s.toLowerCase is not a function (#2997)
* Update color.js

* fixup

* expand test

* expand test (again)
2019-02-19 07:52:37 +00:00
dependabot[bot]andPaul Melnikow 0e56258ac0 Bump eslint from 5.13.0 to 5.14.1 (#3039)
Bumps [eslint](https://github.com/eslint/eslint) from 5.13.0 to 5.14.1.
- [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.13.0...v5.14.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 23:09:22 -05:00
Paul MelnikowandGitHub 24bc7bcfc3 Combine some badge examples using drop-downs, tweak some titles (#3037)
This updates several badges to take advantage of the change from #2882.
2019-02-18 23:04:25 -05:00
Paul MelnikowandGitHub ed7aa31808 Test transformExample directly (#3041)
These tests in `base.spec.js` are difficult to maintain.
2019-02-18 21:45:05 -05:00
Pierre-Yves BandCaleb Cartwright e9f8700607 Fix [GithubManifest] and [GithubPackageJson] when static auth is not configured (#3035)
* Fixed fetchJsonFromRepo function when static auth is not configured

* Removed redundant await
2019-02-18 20:02:52 -06:00
Paul MelnikowandCaleb Cartwright ad81f3c6ec Improve handling of some edge cases and get 100% coverage in generate-image-markup (#3030) 2019-02-18 19:25:02 -06:00
Paul MelnikowandCaleb Cartwright 1b2b556ca8 Upgrade to Mocha 6 and update configuration (#3038) 2019-02-18 19:03:49 -06:00
Paul MelnikowandCaleb Cartwright 0013641fdd Tweak [maintenance] badge in UI; remove caching (#3040) 2019-02-18 18:54:27 -06:00
dependabot[bot]andPaul Melnikow b1afccdce9 Bump react from 16.8.1 to 16.8.2 (#3022)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.8.1 to 16.8.2.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/compare/v16.8.1...v16.8.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 19:22:20 -05:00
dependabot[bot]andPaul Melnikow ad6f8a07f9 Bump eslint from 5.13.0 to 5.14.0 (#3020)
Bumps [eslint](https://github.com/eslint/eslint) from 5.13.0 to 5.14.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.13.0...v5.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 19:16:43 -05:00
dependabot[bot]andPaul Melnikow f8a48457fb Bump gatsby from 2.1.2 to 2.1.4 (#3019)
Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 2.1.2 to 2.1.4.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 19:14:04 -05:00
Paul MelnikowandCaleb Cartwright d2861b2438 Switch to npm ci (#3034) 2019-02-18 17:28:09 -06:00
Paul MelnikowandGitHub 0506a1762b Omit style=flat from generated URLs (#3025)
Fix #2953
2019-02-18 18:01:44 -05:00
dependabot[bot]andPaul Melnikow c45aa48a98 Bump react-error-overlay from 5.1.2 to 5.1.3 (#2975)
Bumps [react-error-overlay](https://github.com/facebook/create-react-app) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG-1.x.md)
- [Commits](https://github.com/facebook/create-react-app/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 17:03:13 -05:00
Paul MelnikowandGitHub 0f22c0af25 Store the deprecation date inline (#3029) 2019-02-18 16:59:08 -05:00
dependabot[bot]andPaul Melnikow fb21fdf8f7 Bump babel-plugin-istanbul from 5.1.0 to 5.1.1 (#3017)
Bumps [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) from 5.1.0 to 5.1.1.
- [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.0...v5.1.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-18 11:18:50 -05:00
Paul MelnikowandGitHub d9d8a3b227 Drop-downs for multiple choice in patterns (#2882)
You can see it in effect on the PyPI downloads and the David badges.
2019-02-18 11:15:58 -05:00
Yves MandCaleb Cartwright ee1a3564f0 Add Mozilla HTTP Observatory badge [MozillaObservatory] (#2935)
* Begin adding a Mozilla Observatory badge (#2912)

* Update tests to add `_shields_test` style

* Add grade D and E tests

* Use Shields color scheme

See https://github.com/badges/shields/issues/2912#issuecomment-461692102

Resolves https://github.com/badges/shields/pull/2935#pullrequestreview-201432260

* Fix grade response validation regex

A bit related to https://github.com/badges/shields/pull/2935#pullrequestreview-201430779

* Add the host query param via `qs`

Resolves https://github.com/badges/shields/pull/2935#pullrequestreview-201431030

* Make integration test on `observatory.mozilla.org`

- Use `observatory.mozilla.org` instead of `httpforever.com` which redirects to `observatory.mozilla.org` anyway
- Use Joi to validate response

* Define label using `defaultBadgeData`

Resolves https://github.com/badges/shields/pull/2935#pullrequestreview-201431659

* Use short hand `createServiceTester` function helper in tests

Resolves https://github.com/badges/shields/pull/2935#pullrequestreview-201431898

* Make strict API response validation

See https://github.com/badges/shields/pull/2935#discussion_r255097377

* Use the `POST` API endpoint to trigger new scan

See https://github.com/badges/shields/issues/2912#issuecomment-462064216

* Handle unfinished states

See https://github.com/badges/shields/issues/2912#issuecomment-462064216

* Split in two separate badges, with and without score

See https://github.com/badges/shields/issues/2912#issuecomment-461692102

* Add a `publish` parameter to include the result in public list

See https://github.com/badges/shields/issues/2912#issuecomment-461764463

* Add documentation

* Update tester importer

* Remove redundant example keywords

Resolves https://github.com/badges/shields/pull/2935#discussion_r257086115

* Minor doc update

* Embed `which` parameter in examples

* Remove root path from pattern in examples

Resolves https://github.com/badges/shields/pull/2935#pullrequestreview-204582763 and https://github.com/badges/shields/pull/2935#pullrequestreview-204582728

* Pass missing `which` parameter to render in examples

Resolves https://github.com/badges/shields/pull/2935#discussion_r257525827
2019-02-18 10:11:44 -06:00