Commit Graph
100 Commits
Author SHA1 Message Date
jomo c2d2644bbe make travis fast attempt 2
See @fc5ab113db93842cf27b5d94bd98c597a7d0f133 for attempt 1
2015-07-22 23:24:26 +02:00
jomo fd647c5953 3D renders are still beta
@Jake0oo0 fyi

We haven't changed anything on our 3D renders since we first introduced them.
They still have rendering glitches, they still don't render the jacket layer,
they still don't support alex-type skins.

Telling people this is no longer beta (@2515575) doesn't seem like a good idea.
2015-07-20 22:28:06 +02:00
jomo 607dcaf6e5 use status -2 for 404s
human_status (response.js) defines code -2 as 'user error'. 404 is definitely a user error, so using that makes sense.
eventually we should change the whole status code thing with #120
2015-07-17 10:09:34 +02:00
jomo fc5ab113db Merge branch 'master' of github.com:crafatar/crafatar 2015-07-17 01:37:35 +02:00
jomo d0689c9e3b change two more logs to debug 2015-07-17 01:37:26 +02:00
jomo 5de8c77ffb fix docker-options 2015-07-14 01:14:23 +02:00
jomo 53e571bd6e renew dokku installation instructions
+ some minor readme changes
2015-07-14 00:45:58 +02:00
jomo 73af64ef2b add IRC badge 2015-07-12 17:36:59 +02:00
jomo 44cff242d7 update dependencies 2015-06-29 15:42:45 +02:00
jomo 72840433cb use proper URL encoding in tests 2015-06-25 21:55:23 +02:00
jomo d56b10955e add tests for uuid defaults, #115 2015-06-25 21:46:14 +02:00
jomo 8c022e5cb6 'useranme' 2015-06-25 21:34:15 +02:00
jomo f9b7ffb5b7 fix redirection test 2015-06-25 21:33:47 +02:00
jomo 3e4f150262 add missing import N°2 2015-06-25 21:24:26 +02:00
jomo fa8e719de3 add missing import 2015-06-25 21:22:54 +02:00
jomo 34f94bf9b5 get rid of redundant config names #124 2015-06-25 21:19:50 +02:00
jomo 20b6fd55aa clean up config comments, fix postinstall. #124 2015-06-25 20:44:38 +02:00
jomo 2d71d2954e clean up gitignore 2015-06-25 20:35:54 +02:00
jomo f36cfa7898 skip helm for images without alpha channel
hotfix for #117
2015-05-28 01:55:05 +02:00
jomo c54e3020e9 shut up travis 2015-05-28 01:35:39 +02:00
jomo 288657107e actually store the skin in store_skin, fixes #108; pipe skins & capes through lwip before saving, fixes #121 2015-05-28 01:32:29 +02:00
jomo 679e72759a fix test for TooManyRequests 2015-05-28 01:05:24 +02:00
jomo 0ec97e9ba1 add alternative checksum for mojang capes 2015-05-28 00:52:26 +02:00
jomo 11f580bb95 fix TooManyRequests test 2015-05-28 00:45:48 +02:00
jomo 01049cb34d rewrite request queue, fixes #118 2015-05-28 00:45:20 +02:00
jomo 189698bed9 add alternative checksums for steve & alex
using the latest version of lwip, the images don't have an alpha channel anymore

apparently before @94322f3 npm thought 'crafatar/lwip' means git tag v0.0.5
and after that commit, using 'EyalAr/lwip' it noticed there's a v0.0.6

...
...
...

wat.
2015-05-27 23:28:54 +02:00
jomo 7f8da3abe2 lint tests 2015-05-27 22:35:59 +02:00
jomo 94322f3a77 update dependencies
also using ~ operator, i.e. allow patch-level changes
2015-05-27 19:02:09 +02:00
jomo 51b7d19cb0 add 'Contributions welcome' notice to readme 2015-05-27 01:04:36 +02:00
jomo bb4de15ff2 no yoda
usually, '10 === finished' would be considered yoda
but in this case, with this naming of variables
it makes a lot more sense this way
2015-05-26 22:21:07 +02:00
jomo c93ffa5a79 add test for simultaneous requests 2015-05-26 22:16:33 +02:00
jomo 5ef3c4f59c add test for URL encoding 2015-05-26 21:53:33 +02:00
jomo fd6fd0f1bd fix bulk.sh script 2015-05-25 14:13:09 +02:00
jomo add4d1abac allow some latency 2015-05-24 17:22:47 +02:00
jomo b7929d06d3 fix alt tag in readme 2015-05-24 17:02:27 +02:00
jomo 9c5e5ff9a7 shuffle ids for bulk.sh
this requires gshuf (coreutils) to be installed on OS X
2015-05-24 16:55:04 +02:00
jomo 9a8dcbdff1 Revert "add missing @ for twitter username"
This reverts commit 48ce2f9267.

Actually looks better without the @. It has a leading Larry anyways
2015-05-24 15:53:11 +02:00
jomo e1f1fe7c57 add toobusy 503 response 2015-05-24 13:34:49 +02:00
jomo 6f94af7a4a log response time 2015-05-07 01:06:56 +02:00
jomo fd18c70bec catch uncaughtException 2015-05-06 23:24:21 +02:00
jomo 9c59d302c9 Merge branch 'http-response' 2015-05-06 22:36:22 +02:00
jomo 6273e3bcc8 adjust 422 messages 2015-05-06 22:13:28 +02:00
jomo 00f6c28cfc add tests for 422 / invalid xy / user error 2015-05-06 22:11:19 +02:00
jomo d27eb0049f update to iojs 2.0 2015-05-06 22:00:54 +02:00
jomo d1e174405a fix wrong URL in test 2015-05-06 21:59:44 +02:00
jomo 15afa940f0 update lwip for iojs 2.0.0 2015-05-06 21:50:57 +02:00
jomo 46d10fdc81 remove unnecessary double check 2015-05-06 21:07:43 +02:00
jomo ed25d30ff0 remove unnecessary log 2015-05-06 21:07:19 +02:00
jomo 9f04fbc136 allow multiple checksums for tests, fixes #119
As discussed in #119, the rendered image can be slightly different in different environments
2015-05-06 21:06:09 +02:00
jomo 67e635dbbb remove unnecessary quotes in .travis.yml
I just want travis to run these tests again
2015-05-03 23:33:23 +02:00
jomo deeb72770e fix iojs version in .travis.yml (again) 2015-05-03 23:19:29 +02:00
jomo f48a9e66cf Revert "travis dependency 💩"
This reverts commit b2d31c5b7e.
2015-05-03 23:15:52 +02:00
jomo d8303eb1a6 revert b2d31c5..2d1876b
this wasn't a cairo issue, no need to slow down travis
less recent version of cairo works just as well
2015-05-03 23:09:32 +02:00
jomo b039e97fa7 fix test crc32 values 2015-05-03 23:06:21 +02:00
jomo 6e41423b7a set encoding: null in test HTTP requests
from the 'request' docs:

encoding: Encoding to be used on setEncoding of response data. If null, the body is returned as a Buffer. Anything else (including the default value of undefined) will be passed as the encoding parameter to toString() (meaning this is effectively utf8 by default).
2015-05-03 22:46:03 +02:00
jomo 189d1c7010 show travis status for master branch
so we don't display 'build|failing' for broken PRs or branches
2015-04-28 13:41:16 +02:00
jomo 2d1876b6b7 add libexpat1-dev dependency 2015-04-26 02:37:37 +02:00
jomo 89a80eeaad add expat dependency 2015-04-26 02:31:17 +02:00
jomo 14769f6f36 💩 2015-04-26 02:21:06 +02:00
jomo b2d31c5b7e travis dependency 💩 2015-04-26 02:10:47 +02:00
jomo aeffc8fc51 update travis' iojs version 2015-04-25 23:01:46 +02:00
jomo 4286b35775 support redirection for capes 2015-04-25 22:59:33 +02:00
jomo 5c53694f9d no need to defined undefined 2015-04-25 22:51:22 +02:00
jomo 23080370b2 add test for redirection 2015-04-25 22:50:31 +02:00
jomo d981b34d0b compact code for cape tests 2015-04-25 21:25:43 +02:00
jomo 8ad35aeea2 rewrite http tests, check http headers, body, and caching
also disabled *all* logs in tests unless VERBOSE_TEST=true
2015-04-25 21:22:16 +02:00
jomo efd9c0ccee don't remove trailing slash for root path 2015-04-25 15:55:59 +02:00
jomo 79ab296f1f get rid of path.resolve
This doesn't handle '..' and other things that
path.resolve does, but if you're passing weird
things to a URL, your fault.
2015-04-25 15:49:47 +02:00
jomo 22ea5a7e27 use iojs 1.8.x 2015-04-25 14:43:56 +02:00
jomo 1464ec81f4 update calls to changed function helpers.get_cape() 2015-04-23 23:42:20 +02:00
jomo 34adbd32d7 be more clear in docs 2015-04-22 00:35:39 +02:00
jomo c8dad9dfbb invalidate cache when skin file is gone 2015-04-22 00:31:37 +02:00
jomo 3cdcccde57 improve logging 2015-04-22 00:26:10 +02:00
jomo 7ca43e3cd9 add description for X-Storage-Type, remove debug log 2015-04-22 00:23:48 +02:00
jomo cf1119e2cb update preload images on index 2015-04-22 00:14:18 +02:00
jomo 69f0ee23be use new response module for assets
unfortunately we can't use stream pipes because we need to generate
a hash of the content for the Etag.

I think proper caching (i.e. Etag) is very important
2015-04-22 00:06:10 +02:00
jomo 2e66e5c794 add missing status for empty capes 2015-04-21 23:46:07 +02:00
jomo 244f90c4c7 fix bug with skin caching that cached capes as non-existent
when using cache.save_hash, an `undefined` skin or cape hash means "do not touch"
while `null` means "overwrite as non-existent"

this was sent to redis after calling /capes/Notch for the first time:

  "hmset" "notch" "c" "3f688e0e699b3d9fe448b5bb50a3a288f9c589762b3dae8308842122dcb81" "t" "1429651244222"
  "hmset" "notch" "s" "a116e69a845e227f7ca1fdde8c357c8c821ebd4ba619382ea4a1f87d4ae94" "c" "" "t" "1429651244235"

as you can see, the first request stores the c(ape) but does not touch the s(kin), whereas the second request
sets the s(kin) and replaces the c(ape) value
2015-04-21 23:34:14 +02:00
jomo 13169be774 use new response module for capes + more
- made sure that get_cape returns a status
- response.js returns 404 if body is empty
- 'X-Storage-Type: undefined' is no longer returned when status is `null`
2015-04-21 23:27:10 +02:00
jomo 8971e3c02b use new response module for renders + bug fixes 2015-04-21 00:57:14 +02:00
jomo a947b02c87 use new response module for skins 2015-04-20 23:18:27 +02:00
jomo 0b0882e63d use new response module for index 2015-04-20 22:19:57 +02:00
jomo 8dc55442b1 remove debug log 2015-04-20 01:12:16 +02:00
jomo d025a3004d remove always-empty first entry in req.url.path_list
rhyme pro 😎
2015-04-20 01:10:39 +02:00
jomo 0b687d8f8e correct comment about result.type 2015-04-20 00:52:08 +02:00
jomo 71a13c3bab add missing src dependency 2015-04-20 00:46:03 +02:00
jomo 3cbf73b0d7 create new response module & use it for avatars 2015-04-20 00:41:11 +02:00
jomo fce58722c8 start work on #45 2015-04-12 19:53:34 +02:00
jomo 9d2fe0c454 some logging fixes 2015-04-06 03:32:13 +02:00
jomo f6c4e62846 fix path in error message 2015-04-06 03:27:28 +02:00
jomo 67fd75b91e fix logo in readme 2015-04-06 03:25:15 +02:00
jomo 82170c1d09 be more clear about 'examples' on website 2015-04-06 03:08:49 +02:00
jomo e28451f8e7 remove debug log 2015-04-06 03:07:29 +02:00
jomo b84a65fd8e restructure directories
www.js is our 'main' file, it's now at the project's root instead of server.js
routes, views, assets are now in lib, too
2015-04-06 03:06:38 +02:00
jomo a3a77962b3 flat-square badges in readme 2015-04-05 23:20:15 +02:00
jomo a22454e6e4 Date.now() is faster (and shorter) than new Date().getTime() 2015-03-30 23:56:44 +02:00
jomo 9e3ef8087e always use etag, fixes #94 2015-03-28 01:51:59 +01:00
jomo eeb1939235 remove redundant dashes in render filenames 2015-03-27 23:25:08 +01:00
jomo 4dec71c75e only report coverage to coveralls from travis
this has the nice side effect that `npm test` effectively only runs `mocha` and has proper line numbers in stack traces
2015-03-27 23:14:30 +01:00
jomo af03fb63f8 ❤️ eslint 2015-03-27 23:12:44 +01:00