Commit Graph
75 Commits
Author SHA1 Message Date
Paul MelnikowandThaddée Tyl 852784b1a2 Fetch Bower data using libraries.io (#919)
- Avoid downloading bower packages via git
- Service is well resourced: https://libraries.io/team
- Same service used by https://bower.io/search/
2017-09-17 23:55:07 +02:00
Paul MelnikowandDaniel Lo Nigro 80ace97bb0 Bump icedfrisby-nock to stable release (#986) 2017-05-04 09:47:13 -07:00
Andre CaetanoandPaul Melnikow a6d81f2391 [Github] File size badge (#745)
Closes #730
2017-05-01 14:28:45 -04:00
Paul MelnikowandGitHub 653f79fbde Tests: Convert to ES6, use node-fetch, refactor, and clean up style (#971) 2017-04-30 10:51:18 -04:00
Paul MelnikowandDaniel Lo Nigro 8233a0ba38 Fix service coverage script and linting (#975)
* Fix "callback is not a function" in coverage:test:services

* Don't lint /coverage
2017-04-29 17:31:07 -07:00
Thaddee TylandPaul Melnikow e17c15c00b Set the coverage npm script to use current specs
The coverage script was introduced in 5c147b8d91,
and the spec files were moved in c3ef232bf7.

Also, correct a small typo.
2017-04-28 16:39:17 -04:00
Paul MelnikowandThaddée Tyl bd8a04141e Record minimum Node version 2017-04-28 21:16:08 +02:00
Paul MelnikowandGitHub c3ef232bf7 Place tests alongside their code (#969)
Reorg of the tests: move them just alongside their code. The principle relates to grouping by coupling, not by function and is established in best-practice documents (e.g. https://github.com/focusaurus/express_code_structure#underlying-principles-and-motivations), despite its break from the tradition of a separate `test/` tree. All of today's tools can handle tests spread through the repository.

There are some good, if subtle consequences of this change:

- Since files are close at hand, friction is reduced at development time, which encourages that new tests are written to cover new behaviors.
- It's easier to find the tests that cover a particular piece of functionality.
- It's easier to see which code has tests and which doesn't.
2017-04-28 00:55:15 -04:00
Paul MelnikowandGitHub 5c147b8d91 Service tests (#937)
- Eliminate manual testing which is error-prone and time consuming, and must be repeated many times through the PR review process
- Make contributing more fun. For many, fixing bugs and making new badges is faster and more satisfying with automated tests than with manual testing.
- Push out the work of testing new badges to a much broader net. The PR originator could write tests, but so could any other contributor who wants to push review along.
- Detect badge failures resulting from changes in vendor contracts without waiting for user reports.
- Detect and prevent regressions in the code.
- Be runnable, readable, writable, and editable by as many developers as possible, including those who may not be familiar with JavaScript test tools.

-- @paulmelnikow, @niccokunzmann, @Daniel15
2017-04-27 23:13:14 -04:00
anatoly techtonikandPaul Melnikow 65fc2a7f56 Update request to 2.81.0 (#961)
Fix deprecated uuid warning
2017-04-25 23:47:48 -04:00
Paul MelnikowandThaddee Tyl 0760d17d82 Return data from svg2img via callback
Given the chunks coming from imagemagick are getting stored memory and
then tucked into a cache, this function could as easily return a buffer
via callback. Streaming is just making it more complex. (And trickier to
test!)
2017-04-12 23:13:16 +02:00
Paul MelnikowandThaddee Tyl ad1e419d42 Add tests for svgToImg 2017-04-12 23:13:16 +02:00
Paul MelnikowandThaddee Tyl 3905424d1c Add a test for badge.js and refactor 2017-04-12 23:13:16 +02:00
Paul MelnikowandThaddee Tyl 076bd384d5 Use a glob pattern instead of hard-coding filenames 2017-03-30 00:18:30 +02:00
Paul MelnikowandThaddee Tyl 5f945d4856 Use Mocha to make tests more reliable 2017-03-30 00:18:30 +02:00
Thaddee Tyl 11b6e06f2f Organize local modules in lib 2017-03-26 22:57:55 +02:00
Paul Melnikow 47a8bf51dc First pass for linting on PRs 2017-03-20 16:54:27 -04:00
Thaddee Tyl 7c8b0e3d32 Contain all private files in private/ 2017-02-05 16:24:35 +01:00
Federico ZivoloandThaddee Tyl ef1a51590e Use gm instead of phantom to create pngs 2017-01-29 19:14:31 +01:00
Thaddee Tyl 2b63d62242 Re-remove the ass testing dependency
It was mistakenly added by 2cb82a4a.
2016-11-20 18:53:51 +01:00
Józef SokołowskiandThaddee Tyl 2cb82a4ab3 Add Mozilla Addons support 2016-10-30 10:47:56 +01:00
Peter Dave Hello 6c21450c46 bump dependencies 2016-10-10 16:52:01 +08:00
Thaddee Tyl 7ea0d811a5 Allow specifying a custom font path in the library 2016-09-07 07:24:58 +01:00
Thaddee Tyl cf8fdd91fb Add measure-text.js to npm files
Fixes #758.
2016-08-07 09:29:51 +02:00
Thaddee Tyl f6ee6745cd npm 1.2.2: another bugfix camp update 2016-06-26 16:20:42 +02:00
Thaddee Tyl 2875ecedbc npm 1.2.1: camp update to allow undefined error in catchpath 2016-06-26 15:41:49 +02:00
Thaddee Tyl 68b105cd3e npm v1.2.0
Removed needless libraries.
2016-06-14 08:27:33 +02:00
Thaddee Tyl 6349c5c24a Put all test-related files in test/ 2016-06-14 08:26:57 +02:00
Thaddee Tyl e3a9ae9411 Convert tests to assert
ass seems outdated and outpaced.
2016-06-12 17:39:36 +02:00
Thaddee Tyl c4924f0d9f Upgrade to node 6
We no longer need to require Promise.
2016-06-12 15:00:29 +02:00
Thaddee Tyl 61306975ef Omit needless promise package 2016-06-12 14:55:28 +02:00
Thaddee Tyl c403e367f7 Synchronize saved GitHub user tokens
Issue #529.

Having a server down breaks the process currently. That will be addressed in a
later commit.
2016-06-01 00:15:45 +02:00
Thaddee Tyl 419483f24e Transmit and save GitHub user tokens
Issue #529.
2016-05-28 22:33:34 +02:00
Thaddee Tyl ccaacfc408 Support GitHub OAuth user authentication
Issue #529.
2016-05-21 21:34:35 +02:00
Thaddee Tyl 78721d7728 Upgrade phantomjs
Fixes https://github.com/badges/shields/issues/645#issuecomment-217222593.
2016-05-05 20:08:21 +02:00
sanemat e5103a1781 Add chrome extension support
* Version, Downloads, Price, Rating and Rating Count for chrome app,
chrome extension and chrome theme.
* Google does not provide a public API for chrome web store.
* Use `chrome-web-store-item-property`.
    * Gather meta information from chrome web store.

see #505, #636
2016-04-05 22:03:18 +09:00
Thaddee Tyl d2d907c422 Merge remote-tracking branch 'forbeslindesay/pdfkit' 2016-03-13 23:54:56 +01:00
Thaddee Tyl cb0caafe82 camp v16 2016-02-07 19:04:20 +01:00
Thaddee Tyl 961c70287b Use SPDX license, update redis library 2015-09-07 10:35:18 +02:00
Thaddee Tyl 3344252619 Include the LRU cache in npm
Fixes #514
2015-08-23 17:55:32 +02:00
ForbesLindesay e2fbb584c7 Use pdfkit instead of canvas 2015-07-21 11:31:27 +01:00
Mike Taylor 7e9eae14e4 Allow setting server bind address 2015-06-10 10:09:00 -06:00
Thaddee Tyl 923f681393 Merge remote-tracking branch 'peterdavehello/upgrade-dependencies'
Conflicts:
	package.json
2015-04-26 19:43:33 +02:00
Thaddee Tyl b1d3e00a21 Support for logos in flat design
Closes #401
Part of #337
2015-04-25 14:46:49 +02:00
Peter Dave Hello 9dd83f5a20 bump dependency - bower to ~1.4.1 2015-04-19 23:44:32 +08:00
Peter Dave Hello a87c1acc1f bump dependency - camp to ~14.10.12
camp version from 14.11.14 won't pass the build,

so currently, only upgrade to 14.10.12
2015-04-19 23:44:32 +08:00
Peter Dave Hello 8005c66f5e bump dependency - es6-promise to ~2.1.0 2015-04-17 00:51:42 +08:00
Peter Dave Hello 5aa67888f0 bump dependency - promise to ~7.0.0 2015-04-17 00:48:22 +08:00
Peter Dave Hello 4a2bfd523a bump dependency - redis to ~0.12.1 2015-04-17 00:47:17 +08:00
Peter Dave Hello 7dbe8883af bump dependency - request to ~2.55.0 2015-04-17 00:46:20 +08:00