-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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'
- Loading branch information
Showing
7 changed files
with
346 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.