Permalink
Browse files

add support for node v0.6

  • Loading branch information...
1 parent f849c06 commit 7406de7bea165724229d8c996835f4a29dd6d54c @nulltask nulltask committed May 29, 2012
Showing with 10 additions and 11 deletions.
  1. +3 −3 assets.json
  2. +5 −6 bin/asset
  3. +2 −2 package.json
View
@@ -191,7 +191,7 @@
}
},
"processing.js": {
- "url": "http://processingjs.org/content/download/processing-js-{version}/processing-{version}.js",
+ "url": "http://cloud.github.com/downloads/processing-js/processing-js/processing-{version}.js",
"description": "a port of the Processing visualization language",
"filename": "processing.js",
"tags": ["js"],
@@ -329,7 +329,7 @@
"version": "3.0"
},
"fidel": {
- "url": "https://raw.github.com/jgallen23/fidel/master/fidel.js",
+ "url": "https://raw.github.com/jgallen23/fidel/master/dist/fidel.js",
"compressed": "fidel.min.js",
"description": "Fidel is a simple, lightweight ui controller library",
"tags": ["js"],
@@ -342,7 +342,7 @@
"version": "1.0.3"
},
"resistance": {
- "url": "https://raw.github.com/jgallen23/resistance/master/resistance.js",
+ "url": "https://raw.github.com/jgallen23/resistance/master/dist/resistance.js",
"compressed": "resistance.min.js",
"description": "A simple async flow control library",
"tags": ["js", "flow", "async"],
View
@@ -140,7 +140,6 @@ if (assets.length) {
if (!assets.length) abort('asset <name ...> required');
// install the assets
-
console.log();
mkdir(options.out, function(err){
if (err) abort(err.message);
@@ -157,7 +156,7 @@ process.on('exit', function(){ console.log(); });
function assetsFromObject(obj) {
var arr = [];
for (var asset in obj) {
- arr.push({ name: asset, version: obj[asset] });
+ arr.push({ name: asset, version: obj[asset].version });
}
return arr;
}
@@ -228,10 +227,10 @@ function info(name){
*/
function search(query) {
- var size = tty.getWindowSize()
+ var size = Array.isArray(tty.getWindowSize()) ? tty.getWindowSize().reverse() : process.stdout.getWindowSize()
, padding = 30
- , height = size.shift()
- , width = size.shift() - padding;
+ , width = size.shift() - padding
+ , height = size.shift();
asset.search(repo, query, function(name, entry){
var desc = entry.description;
@@ -342,4 +341,4 @@ function readJSON(path) {
function mkdir(path, fn) {
exec('mkdir -p ' + path, fn);
-}
+}
View
@@ -3,8 +3,8 @@
, "description": "Asset manager"
, "keywords": ["assets", "javascript", "css", "package manager"]
, "author": "TJ Holowaychuk <tj@vision-media.ca>"
- , "dependencies": { "request": "1.9.5", "mkdirp": "0.0.5" }
+ , "dependencies": { "request": "1.9.5", "mkdirp": "0.3.x" }
, "bin": { "asset": "./bin/asset" }
, "main": "index"
, "engines": { "node": "0.4.x" }
-}
+}

0 comments on commit 7406de7

Please sign in to comment.