{"pull_request":{"user":{"id":495647,"login":"rvagg","url":"https://api.github.com/users/rvagg","avatar_url":"https://secure.gravatar.com/avatar/026f5af604a336a38301639027757f29?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"026f5af604a336a38301639027757f29"},"merged_at":null,"title":"Size checker has grown up","created_at":"2011-12-17T12:07:10Z","updated_at":"2011-12-17T12:07:10Z","review_comments":0,"state":"open","id":606125,"patch_url":"https://github.com/madrobby/microjs.com/pull/201.patch","html_url":"https://github.com/madrobby/microjs.com/pull/201","closed_at":null,"deletions":284,"mergeable":null,"base":{"ref":"master","user":{"id":3390,"login":"madrobby","url":"https://api.github.com/users/madrobby","avatar_url":"https://secure.gravatar.com/avatar/45a56e3c82b30baa66752aec1464b889?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"45a56e3c82b30baa66752aec1464b889"},"sha":"e924e77232cbbe845e1f272e159db3bae8ad4de5","repo":{"open_issues":16,"watchers":397,"git_url":"git://github.com/madrobby/microjs.com.git","created_at":"2011-04-29T11:17:41Z","updated_at":"2011-12-17T11:04:07Z","fork":false,"id":1680336,"language":"JavaScript","html_url":"https://github.com/madrobby/microjs.com","name":"microjs.com","master_branch":null,"description":"Fantastic Micro-Frameworks and Micro-Libraries for Fun and Profit!","ssh_url":"git@github.com:madrobby/microjs.com.git","url":"https://api.github.com/repos/madrobby/microjs.com","pushed_at":"2011-12-13T12:09:15Z","clone_url":"https://github.com/madrobby/microjs.com.git","forks":122,"owner":{"id":3390,"login":"madrobby","url":"https://api.github.com/users/madrobby","avatar_url":"https://secure.gravatar.com/avatar/45a56e3c82b30baa66752aec1464b889?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"45a56e3c82b30baa66752aec1464b889"},"homepage":"http://microjs.com/","svn_url":"https://svn.github.com/madrobby/microjs.com","size":1200,"private":false},"label":"madrobby:master"},"issue_url":"https://github.com/madrobby/microjs.com/issues/201","body":"Once I start I find it difficult to stop! I decided to use this to experiment a bit with some node stuff and now it's completely rewritten.\r\n\r\nThe diff & README should make it relatively clear what I've done, but in summary:\r\n\r\n * fixed most of the URLs, they are now all **unminified** raw sources\r\n * let `source` contain actual JS (for very small libs), arrays of sources, or zip files with bang-paths to the zip entry of the source (I thought having GitHub locations pointing to source directories to be scraped would be cool, but really, just make a single source file available!).\r\n * it now builds `data-min.js` for you, `make compile` does all the work. There is also `./build -v` to see a more verbose output.\r\n * The output contains an extra `sizes` attribute on each entry which looks like this: `{\"raw\":745,\"minified\":368,\"gzipped\":222}`. These are bytes and I thought this could be used on the interface in some fancy way, perhaps a hover-reveal of the 3 sizes. But of course they are not necessary and they add to the size of the data file so they could easily be removed. See *lib/main.js*, `success()`.\r\n * Enforced the 5k limit, this is up to you of course, you'll note that it knocks Zepto out which you may not be happy about. See *lib/validator.js*.\r\n * It enforces the requirement to have an unminified source, but this is not strictly necessary if the `sizes` attribute (above) isn't going to be used on the page. See *lib/validator.js* for this also.\r\n * Some tweaks to *index.html*, the `location.href` change was just to get it working from a `file:///` URL, but I didn't cross-browser check that. Some minor style tweaks, I hope you're cool with that, I'm not known for my stylin'.\r\n * README tweaks.\r\n\r\nAlso, the `size` attribute in *data.js* isn't strictly necessary now, in fact I'm pretty sure if you left it off it would run OK. But I've left it there and clarified it on the README because it's a handy sanity check, IMO.\r\n\r\nCheers, now I must sleep.","commits":2,"additions":640,"number":201,"url":"https://api.github.com/repos/madrobby/microjs.com/pulls/201","_links":{"review_comments":{"href":"https://api.github.com/repos/madrobby/microjs.com/pulls/201/comments"},"html":{"href":"https://github.com/madrobby/microjs.com/pull/201"},"self":{"href":"https://api.github.com/repos/madrobby/microjs.com/pulls/201"},"comments":{"href":"https://api.github.com/repos/madrobby/microjs.com/issues/201/comments"}},"merged_by":null,"diff_url":"https://github.com/madrobby/microjs.com/pull/201.diff","comments":0,"head":{"ref":"sizecheck","user":{"id":495647,"login":"rvagg","url":"https://api.github.com/users/rvagg","avatar_url":"https://secure.gravatar.com/avatar/026f5af604a336a38301639027757f29?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"026f5af604a336a38301639027757f29"},"sha":"a639284bfc46d7298084d37e9a64006801393932","repo":{"open_issues":0,"watchers":1,"git_url":"git://github.com/rvagg/microjs.com.git","created_at":"2011-12-13T09:28:27Z","updated_at":"2011-12-17T11:54:32Z","fork":true,"id":2971138,"language":"JavaScript","html_url":"https://github.com/rvagg/microjs.com","name":"microjs.com","master_branch":null,"description":"Fantastic Micro-Frameworks and Micro-Libraries for Fun and Profit!","ssh_url":"git@github.com:rvagg/microjs.com.git","url":"https://api.github.com/repos/rvagg/microjs.com","pushed_at":"2011-12-17T11:54:32Z","clone_url":"https://github.com/rvagg/microjs.com.git","forks":0,"owner":{"id":495647,"login":"rvagg","url":"https://api.github.com/users/rvagg","avatar_url":"https://secure.gravatar.com/avatar/026f5af604a336a38301639027757f29?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"026f5af604a336a38301639027757f29"},"homepage":"http://microjs.com/","svn_url":"https://svn.github.com/rvagg/microjs.com","size":144,"private":false},"label":"rvagg:sizecheck"},"changed_files":16,"merged":false},"number":201,"action":"opened"}