chris48s
b5635bf55a
[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'
2018-05-10 17:32:45 +01:00
..
2018-03-20 18:32:48 -07:00
2018-04-02 09:38:25 +01:00
2018-05-10 17:32:45 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-24 08:13:24 +12:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-05-04 21:55:51 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-30 09:34:20 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-01 17:32:43 +02:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-02 09:40:50 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-05-10 17:32:45 +01:00
2018-03-20 18:32:48 -07:00
2018-04-28 20:59:27 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-05-05 19:14:58 +01:00
2018-03-20 18:32:48 -07:00
2018-04-14 08:35:47 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-05-07 21:47:36 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-02 21:51:41 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-09 20:14:21 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-08 21:47:28 +02:00
2018-03-20 18:32:48 -07:00
2018-05-10 17:32:45 +01:00
2018-04-01 22:04:22 -05:00
2018-04-01 22:04:22 -05:00
2018-05-10 17:32:45 +01:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-03-20 18:32:48 -07:00
2018-04-14 08:35:47 +01:00