Skip to content
This repository
Browse code

Merge pull request #38 from nulltask/feature/support-for-0.6

Added support for Node v0.6+
  • Loading branch information...
commit 294026c34fdcdd3ab6b8a77da6ead4a95cccdc03 2 parents f849c06 + 7406de7
TJ Holowaychuk authored

Showing 3 changed files with 10 additions and 11 deletions. Show diff stats Hide diff stats

  1. +3 3 assets.json
  2. +5 6 bin/asset
  3. +2 2 package.json
6 assets.json
@@ -191,7 +191,7 @@
191 191 }
192 192 },
193 193 "processing.js": {
194   - "url": "http://processingjs.org/content/download/processing-js-{version}/processing-{version}.js",
  194 + "url": "http://cloud.github.com/downloads/processing-js/processing-js/processing-{version}.js",
195 195 "description": "a port of the Processing visualization language",
196 196 "filename": "processing.js",
197 197 "tags": ["js"],
@@ -329,7 +329,7 @@
329 329 "version": "3.0"
330 330 },
331 331 "fidel": {
332   - "url": "https://raw.github.com/jgallen23/fidel/master/fidel.js",
  332 + "url": "https://raw.github.com/jgallen23/fidel/master/dist/fidel.js",
333 333 "compressed": "fidel.min.js",
334 334 "description": "Fidel is a simple, lightweight ui controller library",
335 335 "tags": ["js"],
@@ -342,7 +342,7 @@
342 342 "version": "1.0.3"
343 343 },
344 344 "resistance": {
345   - "url": "https://raw.github.com/jgallen23/resistance/master/resistance.js",
  345 + "url": "https://raw.github.com/jgallen23/resistance/master/dist/resistance.js",
346 346 "compressed": "resistance.min.js",
347 347 "description": "A simple async flow control library",
348 348 "tags": ["js", "flow", "async"],
11 bin/asset
@@ -140,7 +140,6 @@ if (assets.length) {
140 140 if (!assets.length) abort('asset <name ...> required');
141 141
142 142 // install the assets
143   -
144 143 console.log();
145 144 mkdir(options.out, function(err){
146 145 if (err) abort(err.message);
@@ -157,7 +156,7 @@ process.on('exit', function(){ console.log(); });
157 156 function assetsFromObject(obj) {
158 157 var arr = [];
159 158 for (var asset in obj) {
160   - arr.push({ name: asset, version: obj[asset] });
  159 + arr.push({ name: asset, version: obj[asset].version });
161 160 }
162 161 return arr;
163 162 }
@@ -228,10 +227,10 @@ function info(name){
228 227 */
229 228
230 229 function search(query) {
231   - var size = tty.getWindowSize()
  230 + var size = Array.isArray(tty.getWindowSize()) ? tty.getWindowSize().reverse() : process.stdout.getWindowSize()
232 231 , padding = 30
233   - , height = size.shift()
234   - , width = size.shift() - padding;
  232 + , width = size.shift() - padding
  233 + , height = size.shift();
235 234
236 235 asset.search(repo, query, function(name, entry){
237 236 var desc = entry.description;
@@ -342,4 +341,4 @@ function readJSON(path) {
342 341
343 342 function mkdir(path, fn) {
344 343 exec('mkdir -p ' + path, fn);
345   -}
  344 +}
4 package.json
@@ -3,8 +3,8 @@
3 3 , "description": "Asset manager"
4 4 , "keywords": ["assets", "javascript", "css", "package manager"]
5 5 , "author": "TJ Holowaychuk <tj@vision-media.ca>"
6   - , "dependencies": { "request": "1.9.5", "mkdirp": "0.0.5" }
  6 + , "dependencies": { "request": "1.9.5", "mkdirp": "0.3.x" }
7 7 , "bin": { "asset": "./bin/asset" }
8 8 , "main": "index"
9 9 , "engines": { "node": "0.4.x" }
10   -}
  10 +}

0 comments on commit 294026c

Please sign in to comment.
Something went wrong with that request. Please try again.