The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.11.09-01-41'
}).use('gallery-bitly', function(Y) {
var b = new Y.bitly({
//You must get your own to use this. See module description
username: 'bitlyapidemo',
key: 'R_0da49e0a9118ff35f52f629d2d71bf07'
});
//Event based
b.on('shorten', console.log);
b.on('expand', console.log);
b.shorten('http://blog.davglass.com/');
//Callback based
b.shorten('http://blog.davglass.com/', function(e) {
b.expandByURL(e.shortUrl, console.log);
b.infoByHash(e.hash, console.info);
b.statsByHash(e.hash, console.log);
});
});
---------- start logs from yogi.stdout.log ---------- yogi [info] using yogi@0.0.35 on node@0.8.14 yogi [warn] THIS IS EXPERIMENTAL, USE AT YOUR OWN RISK!! yogi [info] using module: gallery-bitly yogi [info] prepping grover tests yogi [info] adding tests route yogi [info] listening on: http://127.0.0.1:5012 yogi [info] turning on coverage support in grover Starting Grover on 1 files with PhantomJS@1.7.0 Running 15 concurrent tests at a time. Using a 120 second timeout per test. ✔ [gallery-bitly]: Passed: 3 Failed: 0 Total: 3 (ignored 0) (0.027 seconds) 23% Writing files in JSON format to: /ssd/home/yui/src/gallery-build/cdn_gallery-2012.11.09-01-41/src/gallery-bitly/logs/tests.json ----------------+-----------+-----------+-----------+-----------+ File | % Stmts |% Branches | % Funcs | % Lines | ----------------+-----------+-----------+-----------+-----------+ build/ | 23.08 | 16.67 | 22.22 | 23.08 | All files | 23.08 | 16.67 | 22.22 | 23.08 | ----------------+-----------+-----------+-----------+-----------+ All files | 23.08 | 16.67 | 22.22 | 23.08 | ----------------+-----------+-----------+-----------+-----------+ =============================== Coverage summary =============================== Statements : 23.08% ( 9/39 ) Branches : 16.67% ( 3/18 ) Functions : 22.22% ( 4/18 ) Lines : 23.08% ( 9/39 ) ================================================================================ ---------------------------------------------------------------- ✔ [Total]: Passed: 3 Failed: 0 Total: 3 (ignored 0) (0.027 seconds) [Grover Execution Timer] 0.683 seconds yogi [info] grover tests complete ---------- end logs from yogi.stdout.log ---------- ---------- start logs from shifter.stdout.log ---------- shifter[0m [info][0m revving up shifter[0m [info][0m looking for build.json file shifter[0m [info][0m found build.json file, shifting shifter[0m [info][0m putting the hammer down, let's build this thing! shifter[0m [info][0m munging in loader meta data into build.json shifter[0m [info][0m putting the hammer down shifter[0m [info][0m shifting into gear for gallery-bitly shifter[0m [info][0m deleting build dir: /ssd/home/yui/src/gallery-build/cdn_gallery-2012.11.09-01-41/build/gallery-bitly shifter[0m [queu][0m writing RAW file shifter[0m [queu][0m compressing gallery-bitly/gallery-bitly.js with UglifyJS shifter[0m [queu][0m writing -min file shifter[0m [info][0m shifting for coverage shifter[0m [info][0m shifting assets for gallery-bitly shifter[0m [queu][0m coverage file read, starting coverage for: gallery-bitly/gallery-bitly.js shifter[0m [info][0m istanbul providing coverage shifter[0m [queu][0m instrumenting with istanbul shifter[0m [queu][0m writing coverage file to gallery-bitly/gallery-bitly-coverage.js shifter[0m [info][0m done racing, the gears are toast shifter[0m [info][0m finished in 0.102 seconds, pretty fast huh? ---------- end logs from shifter.stdout.log ---------- ---------- start logs from shifter.stderr.log ---------- no data logged ---------- end logs from shifter.stderr.log ---------- ---------- start logs from yogi.stderr.log ---------- no data logged ---------- end logs from yogi.stderr.log ----------
All code on this site is licensed under the BSD License unless stated otherwise.