stylus-source 0.28.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. data/VERSION +1 -1
  2. data/vendor/Readme.md +1 -1
  3. data/vendor/lib/functions/index.js +75 -1
  4. data/vendor/lib/functions/url.js +11 -12
  5. data/vendor/lib/lexer.js +2 -1
  6. data/vendor/lib/stylus.js +1 -1
  7. data/vendor/lib/visitor/compiler.js +1 -1
  8. data/vendor/lib/visitor/evaluator.js +2 -0
  9. data/vendor/node_modules/cssom/package.json +0 -3
  10. data/vendor/node_modules/mocha/History.md +21 -0
  11. data/vendor/node_modules/mocha/Makefile +2 -2
  12. data/vendor/node_modules/mocha/_mocha.js +141 -48
  13. data/vendor/node_modules/mocha/bin/_mocha +53 -61
  14. data/vendor/node_modules/mocha/bin/mocha +3 -0
  15. data/vendor/node_modules/mocha/lib/interfaces/bdd.js +23 -6
  16. data/vendor/node_modules/mocha/lib/mocha.js +55 -4
  17. data/vendor/node_modules/mocha/lib/reporters/base.js +5 -5
  18. data/vendor/node_modules/mocha/lib/reporters/dot.js +5 -4
  19. data/vendor/node_modules/mocha/lib/reporters/html.js +25 -12
  20. data/vendor/node_modules/mocha/lib/reporters/landing.js +2 -2
  21. data/vendor/node_modules/mocha/lib/reporters/min.js +2 -2
  22. data/vendor/node_modules/mocha/lib/reporters/nyan.js +6 -6
  23. data/vendor/node_modules/mocha/lib/reporters/progress.js +1 -1
  24. data/vendor/node_modules/mocha/lib/reporters/xunit.js +5 -1
  25. data/vendor/node_modules/mocha/lib/runnable.js +1 -1
  26. data/vendor/node_modules/mocha/lib/runner.js +3 -3
  27. data/vendor/node_modules/mocha/lib/suite.js +7 -1
  28. data/vendor/node_modules/mocha/lib/utils.js +1 -1
  29. data/vendor/node_modules/mocha/mocha.css +18 -1
  30. data/vendor/node_modules/mocha/mocha.js +141 -48
  31. data/vendor/node_modules/mocha/package.json +6 -3
  32. data/vendor/node_modules/mocha/test.js +3 -5
  33. data/vendor/node_modules/should/History.md +11 -0
  34. data/vendor/node_modules/should/Readme.md +22 -10
  35. data/vendor/node_modules/should/lib/should.js +70 -62
  36. data/vendor/node_modules/should/package.json +5 -2
  37. data/vendor/node_modules/should/test/should.test.js +64 -0
  38. data/vendor/package.json +1 -1
  39. data/vendor/testing/foo.css +3 -0
  40. data/vendor/testing/index.js +1 -0
  41. data/vendor/testing/small.styl +12 -10
  42. metadata +3 -16
  43. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after each.tmSnippet +0 -16
  44. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after.tmSnippet +0 -16
  45. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before each.tmSnippet +0 -16
  46. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before.tmSnippet +0 -16
  47. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - it.tmSnippet +0 -16
  48. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/untitled.tmSnippet +0 -16
  49. data/vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/info.plist +0 -19
  50. data/vendor/node_modules/mocha/support/compile.js +0 -154
  51. data/vendor/node_modules/mocha/support/foot.js +0 -1
  52. data/vendor/node_modules/mocha/support/head.js +0 -2
  53. data/vendor/node_modules/mocha/support/tail.js +0 -150
  54. data/vendor/node_modules/mocha/support/template.html +0 -16
@@ -33,7 +33,7 @@ exports = module.exports = assert;
33
33
  * Library version.
34
34
  */
35
35
 
36
- exports.version = '0.6.3';
36
+ exports.version = '1.0.0';
37
37
 
38
38
  /**
39
39
  * Assert _obj_ exists, with optional message.
@@ -119,16 +119,17 @@ Assertion.prototype = {
119
119
 
120
120
  assert: function(expr, msg, negatedMsg, expected){
121
121
  var msg = this.negate ? negatedMsg : msg
122
- , ok = this.negate ? !expr : expr;
123
-
124
- if (!ok) {
125
- throw new AssertionError({
126
- message: msg
127
- , actual: this.obj
128
- , expected: expected
129
- , stackStartFunction: this.assert
130
- });
131
- }
122
+ , ok = this.negate ? !expr : expr
123
+ , obj = this.obj;
124
+
125
+ if (ok) return;
126
+
127
+ throw new AssertionError({
128
+ message: msg.call(this)
129
+ , actual: obj
130
+ , expected: expected
131
+ , stackStartFunction: this.assert
132
+ });
132
133
  },
133
134
 
134
135
  /**
@@ -212,8 +213,8 @@ Assertion.prototype = {
212
213
  get arguments() {
213
214
  this.assert(
214
215
  '[object Arguments]' == Object.prototype.toString.call(this.obj)
215
- , 'expected ' + this.inspect + ' to be arguments'
216
- , 'expected ' + this.inspect + ' to not be arguments');
216
+ , function(){ return 'expected ' + this.inspect + ' to be arguments' }
217
+ , function(){ return 'expected ' + this.inspect + ' to not be arguments' });
217
218
  return this;
218
219
  },
219
220
 
@@ -227,8 +228,8 @@ Assertion.prototype = {
227
228
  this.obj.should.have.property('length');
228
229
  this.assert(
229
230
  0 === this.obj.length
230
- , 'expected ' + this.inspect + ' to be empty'
231
- , 'expected ' + this.inspect + ' not to be empty');
231
+ , function(){ return 'expected ' + this.inspect + ' to be empty' }
232
+ , function(){ return 'expected ' + this.inspect + ' not to be empty' });
232
233
  return this;
233
234
  },
234
235
 
@@ -241,8 +242,8 @@ Assertion.prototype = {
241
242
  get ok() {
242
243
  this.assert(
243
244
  this.obj
244
- , 'expected ' + this.inspect + ' to be truthy'
245
- , 'expected ' + this.inspect + ' to be falsey');
245
+ , function(){ return 'expected ' + this.inspect + ' to be truthy' }
246
+ , function(){ return 'expected ' + this.inspect + ' to be falsey' });
246
247
  return this;
247
248
  },
248
249
 
@@ -255,8 +256,8 @@ Assertion.prototype = {
255
256
  get true() {
256
257
  this.assert(
257
258
  true === this.obj
258
- , 'expected ' + this.inspect + ' to be true'
259
- , 'expected ' + this.inspect + ' not to be true');
259
+ , function(){ return 'expected ' + this.inspect + ' to be true' }
260
+ , function(){ return 'expected ' + this.inspect + ' not to be true' });
260
261
  return this;
261
262
  },
262
263
 
@@ -269,8 +270,8 @@ Assertion.prototype = {
269
270
  get false() {
270
271
  this.assert(
271
272
  false === this.obj
272
- , 'expected ' + this.inspect + ' to be false'
273
- , 'expected ' + this.inspect + ' not to be false');
273
+ , function(){ return 'expected ' + this.inspect + ' to be false' }
274
+ , function(){ return 'expected ' + this.inspect + ' not to be false' });
274
275
  return this;
275
276
  },
276
277
 
@@ -285,8 +286,8 @@ Assertion.prototype = {
285
286
  eql: function(val, desc){
286
287
  this.assert(
287
288
  eql(val, this.obj)
288
- , 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "")
289
- , 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "")
289
+ , function(){ return 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "") }
290
+ , function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") }
290
291
  , val);
291
292
  return this;
292
293
  },
@@ -302,8 +303,8 @@ Assertion.prototype = {
302
303
  equal: function(val, desc){
303
304
  this.assert(
304
305
  val.valueOf() === this.obj
305
- , 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "")
306
- , 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "")
306
+ , function(){ return 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "") }
307
+ , function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") }
307
308
  , val);
308
309
  return this;
309
310
  },
@@ -321,8 +322,8 @@ Assertion.prototype = {
321
322
  var range = start + '..' + finish;
322
323
  this.assert(
323
324
  this.obj >= start && this.obj <= finish
324
- , 'expected ' + this.inspect + ' to be within ' + range + (desc ? " | " + desc : "")
325
- , 'expected ' + this.inspect + ' to not be within ' + range + (desc ? " | " + desc : ""));
325
+ , function(){ return 'expected ' + this.inspect + ' to be within ' + range + (desc ? " | " + desc : "") }
326
+ , function(){ return 'expected ' + this.inspect + ' to not be within ' + range + (desc ? " | " + desc : "") });
326
327
  return this;
327
328
  },
328
329
 
@@ -337,8 +338,8 @@ Assertion.prototype = {
337
338
  a: function(type, desc){
338
339
  this.assert(
339
340
  type == typeof this.obj
340
- , 'expected ' + this.inspect + ' to be a ' + type + (desc ? " | " + desc : "")
341
- , 'expected ' + this.inspect + ' not to be a ' + type + (desc ? " | " + desc : ""));
341
+ , function(){ return 'expected ' + this.inspect + ' to be a ' + type + (desc ? " | " + desc : "") }
342
+ , function(){ return 'expected ' + this.inspect + ' not to be a ' + type + (desc ? " | " + desc : "") })
342
343
  return this;
343
344
  },
344
345
 
@@ -354,8 +355,8 @@ Assertion.prototype = {
354
355
  var name = constructor.name;
355
356
  this.assert(
356
357
  this.obj instanceof constructor
357
- , 'expected ' + this.inspect + ' to be an instance of ' + name + (desc ? " | " + desc : "")
358
- , 'expected ' + this.inspect + ' not to be an instance of ' + name + (desc ? " | " + desc : ""));
358
+ , function(){ return 'expected ' + this.inspect + ' to be an instance of ' + name + (desc ? " | " + desc : "") }
359
+ , function(){ return 'expected ' + this.inspect + ' not to be an instance of ' + name + (desc ? " | " + desc : "") });
359
360
  return this;
360
361
  },
361
362
 
@@ -370,8 +371,8 @@ Assertion.prototype = {
370
371
  above: function(n, desc){
371
372
  this.assert(
372
373
  this.obj > n
373
- , 'expected ' + this.inspect + ' to be above ' + n + (desc ? " | " + desc : "")
374
- , 'expected ' + this.inspect + ' to be below ' + n + (desc ? " | " + desc : ""));
374
+ , function(){ return 'expected ' + this.inspect + ' to be above ' + n + (desc ? " | " + desc : "") }
375
+ , function(){ return 'expected ' + this.inspect + ' to be below ' + n + (desc ? " | " + desc : "") });
375
376
  return this;
376
377
  },
377
378
 
@@ -386,8 +387,8 @@ Assertion.prototype = {
386
387
  below: function(n, desc){
387
388
  this.assert(
388
389
  this.obj < n
389
- , 'expected ' + this.inspect + ' to be below ' + n + (desc ? " | " + desc : "")
390
- , 'expected ' + this.inspect + ' to be above ' + n + (desc ? " | " + desc : ""));
390
+ , function(){ return 'expected ' + this.inspect + ' to be below ' + n + (desc ? " | " + desc : "") }
391
+ , function(){ return 'expected ' + this.inspect + ' to be above ' + n + (desc ? " | " + desc : "") });
391
392
  return this;
392
393
  },
393
394
 
@@ -402,8 +403,8 @@ Assertion.prototype = {
402
403
  match: function(regexp, desc){
403
404
  this.assert(
404
405
  regexp.exec(this.obj)
405
- , 'expected ' + this.inspect + ' to match ' + regexp + (desc ? " | " + desc : "")
406
- , 'expected ' + this.inspect + ' not to match ' + regexp + (desc ? " | " + desc : ""));
406
+ , function(){ return 'expected ' + this.inspect + ' to match ' + regexp + (desc ? " | " + desc : "") }
407
+ , function(){ return 'expected ' + this.inspect + ' not to match ' + regexp + (desc ? " | " + desc : "") });
407
408
  return this;
408
409
  },
409
410
 
@@ -420,8 +421,8 @@ Assertion.prototype = {
420
421
  var len = this.obj.length;
421
422
  this.assert(
422
423
  n == len
423
- , 'expected ' + this.inspect + ' to have a length of ' + n + ' but got ' + len + (desc ? " | " + desc : "")
424
- , 'expected ' + this.inspect + ' to not have a length of ' + len + (desc ? " | " + desc : ""));
424
+ , function(){ return 'expected ' + this.inspect + ' to have a length of ' + n + ' but got ' + len + (desc ? " | " + desc : "") }
425
+ , function(){ return 'expected ' + this.inspect + ' to not have a length of ' + len + (desc ? " | " + desc : "") });
425
426
  return this;
426
427
  },
427
428
 
@@ -442,16 +443,16 @@ Assertion.prototype = {
442
443
  } else {
443
444
  this.assert(
444
445
  undefined !== this.obj[name]
445
- , 'expected ' + this.inspect + ' to have a property ' + i(name) + (desc ? " | " + desc : "")
446
- , 'expected ' + this.inspect + ' to not have a property ' + i(name) + (desc ? " | " + desc : ""));
446
+ , function(){ return 'expected ' + this.inspect + ' to have a property ' + i(name) + (desc ? " | " + desc : "") }
447
+ , function(){ return 'expected ' + this.inspect + ' to not have a property ' + i(name) + (desc ? " | " + desc : "") });
447
448
  }
448
449
 
449
450
  if (undefined !== val) {
450
451
  this.assert(
451
452
  val === this.obj[name]
452
- , 'expected ' + this.inspect + ' to have a property ' + i(name)
453
- + ' of ' + i(val) + ', but got ' + i(this.obj[name]) + (desc ? " | " + desc : "")
454
- , 'expected ' + this.inspect + ' to not have a property ' + i(name) + ' of ' + i(val) + (desc ? " | " + desc : ""));
453
+ , function(){ return 'expected ' + this.inspect + ' to have a property ' + i(name)
454
+ + ' of ' + i(val) + ', but got ' + i(this.obj[name]) + (desc ? " | " + desc : "") }
455
+ , function(){ return 'expected ' + this.inspect + ' to not have a property ' + i(name) + ' of ' + i(val) + (desc ? " | " + desc : "") });
455
456
  }
456
457
 
457
458
  this.obj = this.obj[name];
@@ -469,8 +470,8 @@ Assertion.prototype = {
469
470
  ownProperty: function(name, desc){
470
471
  this.assert(
471
472
  this.obj.hasOwnProperty(name)
472
- , 'expected ' + this.inspect + ' to have own property ' + i(name) + (desc ? " | " + desc : "")
473
- , 'expected ' + this.inspect + ' to not have own property ' + i(name) + (desc ? " | " + desc : ""));
473
+ , function(){ return 'expected ' + this.inspect + ' to have own property ' + i(name) + (desc ? " | " + desc : "") }
474
+ , function(){ return 'expected ' + this.inspect + ' to not have own property ' + i(name) + (desc ? " | " + desc : "") });
474
475
  return this;
475
476
  },
476
477
 
@@ -488,13 +489,13 @@ Assertion.prototype = {
488
489
  for (var key in obj) cmp[key] = this.obj[key];
489
490
  this.assert(
490
491
  eql(cmp, obj)
491
- , 'expected ' + this.inspect + ' to include an object equal to ' + i(obj) + (desc ? " | " + desc : "")
492
- , 'expected ' + this.inspect + ' to not include an object equal to ' + i(obj) + (desc ? " | " + desc : ""));
492
+ , function(){ return 'expected ' + this.inspect + ' to include an object equal to ' + i(obj) + (desc ? " | " + desc : "") }
493
+ , function(){ return 'expected ' + this.inspect + ' to not include an object equal to ' + i(obj) + (desc ? " | " + desc : "") });
493
494
  } else {
494
495
  this.assert(
495
496
  ~this.obj.indexOf(obj)
496
- , 'expected ' + this.inspect + ' to include ' + i(obj) + (desc ? " | " + desc : "")
497
- , 'expected ' + this.inspect + ' to not include ' + i(obj) + (desc ? " | " + desc : ""));
497
+ , function(){ return 'expected ' + this.inspect + ' to include ' + i(obj) + (desc ? " | " + desc : "") }
498
+ , function(){ return 'expected ' + this.inspect + ' to not include ' + i(obj) + (desc ? " | " + desc : "") });
498
499
  }
499
500
  return this;
500
501
  },
@@ -510,8 +511,8 @@ Assertion.prototype = {
510
511
  includeEql: function(obj, desc){
511
512
  this.assert(
512
513
  this.obj.some(function(item) { return eql(obj, item); })
513
- , 'expected ' + this.inspect + ' to include an object equal to ' + i(obj) + (desc ? " | " + desc : "")
514
- , 'expected ' + this.inspect + ' to not include an object equal to ' + i(obj) + (desc ? " | " + desc : ""));
514
+ , function(){ return 'expected ' + this.inspect + ' to include an object equal to ' + i(obj) + (desc ? " | " + desc : "") }
515
+ , function(){ return 'expected ' + this.inspect + ' to not include an object equal to ' + i(obj) + (desc ? " | " + desc : "") });
515
516
  return this;
516
517
  },
517
518
 
@@ -527,8 +528,8 @@ Assertion.prototype = {
527
528
  this.obj.should.be.an.instanceof(Array);
528
529
  this.assert(
529
530
  ~this.obj.indexOf(obj)
530
- , 'expected ' + this.inspect + ' to contain ' + i(obj)
531
- , 'expected ' + this.inspect + ' to not contain ' + i(obj));
531
+ , function(){ return 'expected ' + this.inspect + ' to contain ' + i(obj) }
532
+ , function(){ return 'expected ' + this.inspect + ' to not contain ' + i(obj) });
532
533
  return this;
533
534
  },
534
535
 
@@ -577,8 +578,8 @@ Assertion.prototype = {
577
578
 
578
579
  this.assert(
579
580
  ok
580
- , 'expected ' + this.inspect + ' to ' + str
581
- , 'expected ' + this.inspect + ' to not ' + str);
581
+ , function(){ return 'expected ' + this.inspect + ' to ' + str }
582
+ , function(){ return 'expected ' + this.inspect + ' to not ' + str });
582
583
 
583
584
  return this;
584
585
  },
@@ -613,9 +614,9 @@ Assertion.prototype = {
613
614
 
614
615
  this.assert(
615
616
  code == status
616
- , 'expected response code of ' + code + ' ' + i(statusCodes[code])
617
- + ', but got ' + status + ' ' + i(statusCodes[status])
618
- , 'expected to not respond with ' + code + ' ' + i(statusCodes[code]));
617
+ , function(){ return 'expected response code of ' + code + ' ' + i(statusCodes[code])
618
+ + ', but got ' + status + ' ' + i(statusCodes[status]) }
619
+ , function(){ return 'expected to not respond with ' + code + ' ' + i(statusCodes[code]) });
619
620
 
620
621
  return this;
621
622
  },
@@ -674,26 +675,33 @@ Assertion.prototype = {
674
675
  ok = message == err.message;
675
676
  } else if (message instanceof RegExp) {
676
677
  ok = message.test(err.message);
678
+ } else if ('function' == typeof message) {
679
+ ok = err instanceof message;
677
680
  }
678
681
 
679
682
  if (message && !ok) {
680
683
  if ('string' == typeof message) {
681
684
  errorInfo = " with a message matching '" + message + "', but got '" + err.message + "'";
682
- } else {
685
+ } else if (message instanceof RegExp) {
683
686
  errorInfo = " with a message matching " + message + ", but got '" + err.message + "'";
687
+ } else if ('function' == typeof message) {
688
+ errorInfo = " of type " + message.name + ", but got " + err.constructor.name;
684
689
  }
685
690
  }
686
691
  }
687
692
 
688
693
  this.assert(
689
694
  ok
690
- , 'expected an exception to be thrown' + errorInfo
691
- , 'expected no exception to be thrown, got "' + err.message + '"');
695
+ , function(){ return 'expected an exception to be thrown' + errorInfo }
696
+ , function(){ return 'expected no exception to be thrown, got "' + err.message + '"' });
692
697
 
693
698
  return this;
694
699
  }
695
700
  };
701
+
696
702
  Assertion.prototype.instanceOf = Assertion.prototype.instanceof;
703
+ Assertion.prototype.throwError = Assertion.prototype.throw;
704
+
697
705
  /**
698
706
  * Aliases.
699
707
  */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "should",
3
3
  "description": "test framework agnostic BDD-style assertions",
4
- "version": "0.6.3",
4
+ "version": "1.1.0",
5
5
  "author": {
6
6
  "name": "TJ Holowaychuk",
7
7
  "email": "tj@vision-media.ca"
@@ -29,12 +29,15 @@
29
29
  "engines": {
30
30
  "node": ">= 0.2.0"
31
31
  },
32
- "_id": "should@0.6.3",
32
+ "_id": "should@1.1.0",
33
33
  "dependencies": {},
34
34
  "optionalDependencies": {},
35
35
  "_engineSupported": true,
36
36
  "_npmVersion": "1.1.21",
37
37
  "_nodeVersion": "v0.8.1",
38
38
  "_defaultsLoaded": true,
39
+ "dist": {
40
+ "shasum": "9409922669d5e0624758507692fd16a8f304b34c"
41
+ },
39
42
  "_from": "should@*"
40
43
  }
@@ -573,5 +573,69 @@ module.exports = {
573
573
  err(function(){
574
574
  (function(){ throw new Error('error'); }).should.throw('fail');
575
575
  }, "expected an exception to be thrown with a message matching 'fail', but got 'error'");
576
+ },
577
+
578
+ 'test throw() with type': function(){
579
+ (function(){ throw new Error('fail'); }).should.throw(Error);
580
+
581
+ err(function(){
582
+ (function(){}).should.throw(Error);
583
+ }, 'expected an exception to be thrown');
584
+
585
+ err(function(){
586
+ (function(){ throw 'error'; }).should.throw(Error);
587
+ }, "expected an exception to be thrown of type Error, but got String");
588
+ },
589
+
590
+ 'test throwError()': function(){
591
+ (function(){}).should.not.throwError();
592
+ (function(){ throw new Error('fail') }).should.throwError();
593
+
594
+ err(function(){
595
+ (function(){}).should.throwError();
596
+ }, 'expected an exception to be thrown');
597
+
598
+ err(function(){
599
+ (function(){
600
+ throw new Error('fail');
601
+ }).should.not.throwError();
602
+ }, 'expected no exception to be thrown, got "fail"');
603
+ },
604
+
605
+ 'test throwError() with regex message': function(){
606
+ (function(){ throw new Error('fail'); }).should.throwError(/fail/);
607
+
608
+ err(function(){
609
+ (function(){}).should.throwError(/fail/);
610
+ }, 'expected an exception to be thrown');
611
+
612
+ err(function(){
613
+ (function(){ throw new Error('error'); }).should.throwError(/fail/);
614
+ }, "expected an exception to be thrown with a message matching /fail/, but got 'error'");
615
+ },
616
+
617
+ 'test throwError() with string message': function(){
618
+ (function(){ throw new Error('fail'); }).should.throwError('fail');
619
+
620
+ err(function(){
621
+ (function(){}).should.throwError('fail');
622
+ }, 'expected an exception to be thrown');
623
+
624
+ err(function(){
625
+ (function(){ throw new Error('error'); }).should.throwError('fail');
626
+ }, "expected an exception to be thrown with a message matching 'fail', but got 'error'");
627
+ },
628
+
629
+ 'test throwError() with type': function(){
630
+ (function(){ throw new Error('fail'); }).should.throw(Error);
631
+
632
+ err(function(){
633
+ (function(){}).should.throw(Error);
634
+ }, 'expected an exception to be thrown');
635
+
636
+ err(function(){
637
+ (function(){ throw 'error'; }).should.throw(Error);
638
+ }, "expected an exception to be thrown of type Error, but got String");
576
639
  }
640
+
577
641
  };
data/vendor/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "stylus"
2
2
  , "description": "Robust, expressive, and feature-rich CSS superset"
3
- , "version": "0.28.2"
3
+ , "version": "0.29.0"
4
4
  , "author": "TJ Holowaychuk <tj@vision-media.ca>"
5
5
  , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"]
6
6
  , "repository": "git://github.com/learnboost/stylus"
@@ -0,0 +1,3 @@
1
+ bar {
2
+ baz: 'raz';
3
+ }
@@ -29,6 +29,7 @@ var start = new Date;
29
29
 
30
30
  stylus(str)
31
31
  .set('filename', path)
32
+ .set('include css', true)
32
33
  .render(function(err, css){
33
34
  if (err) throw err;
34
35
  console.log(css);
@@ -1,11 +1,13 @@
1
+ height = 5
1
2
 
2
- image(path, w = auto, h = auto)
3
- background-image: url(path)
4
- @media all and (-webkit-min-device-pixel-ratio: 1.5)
5
- background-size: w h
6
-
7
- #logo
8
- image: '/images/logo.png'
9
-
10
- #logo
11
- image: '/images/logo.png' 50px 100px
3
+ .block-tab
4
+ font-size: 28px
5
+ background: #79c5f6
6
+ height: 50px
7
+ width: 30px
8
+ text-align: center
9
+ line-height: @height
10
+ color: white
11
+ box-shadow: inset 0 0 3px @background - 40%
12
+ border-radius: left 5px
13
+ margin-top: 400px - (@height / 2)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stylus-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.2
4
+ version: 0.29.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-17 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Robust, expressive, and feature-rich CSS superset. This gem packages
15
15
  up stylus for use with the stylus gem.
@@ -138,15 +138,6 @@ files:
138
138
  - vendor/node_modules/mocha/_mocha.js
139
139
  - vendor/node_modules/mocha/bin/_mocha
140
140
  - vendor/node_modules/mocha/bin/mocha
141
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/info.plist
142
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after
143
- each.tmSnippet
144
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after.tmSnippet
145
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before
146
- each.tmSnippet
147
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before.tmSnippet
148
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - it.tmSnippet
149
- - vendor/node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/untitled.tmSnippet
150
141
  - vendor/node_modules/mocha/History.md
151
142
  - vendor/node_modules/mocha/images/error.png
152
143
  - vendor/node_modules/mocha/images/ok.png
@@ -277,11 +268,6 @@ files:
277
268
  - vendor/node_modules/mocha/node_modules/jade/testing/user.js
278
269
  - vendor/node_modules/mocha/package.json
279
270
  - vendor/node_modules/mocha/Readme.md
280
- - vendor/node_modules/mocha/support/compile.js
281
- - vendor/node_modules/mocha/support/foot.js
282
- - vendor/node_modules/mocha/support/head.js
283
- - vendor/node_modules/mocha/support/tail.js
284
- - vendor/node_modules/mocha/support/template.html
285
271
  - vendor/node_modules/mocha/test.js
286
272
  - vendor/node_modules/should/examples/runner.js
287
273
  - vendor/node_modules/should/History.md
@@ -295,6 +281,7 @@ files:
295
281
  - vendor/node_modules/should/test/should.test.js
296
282
  - vendor/package.json
297
283
  - vendor/Readme.md
284
+ - vendor/testing/foo.css
298
285
  - vendor/testing/index.js
299
286
  - vendor/testing/small.styl
300
287
  - vendor/testing/test.styl
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>afterEach(function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - after each</string>
11
- <key>tabTrigger</key>
12
- <string>ae</string>
13
- <key>uuid</key>
14
- <string>7B4DA8F4-2064-468B-B252-054148419B4B</string>
15
- </dict>
16
- </plist>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>after(function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - after</string>
11
- <key>tabTrigger</key>
12
- <string>a</string>
13
- <key>uuid</key>
14
- <string>A49A87F9-399E-4D74-A489-C535BB06D487</string>
15
- </dict>
16
- </plist>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>beforeEach(function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - before each</string>
11
- <key>tabTrigger</key>
12
- <string>be</string>
13
- <key>uuid</key>
14
- <string>7AB064E3-EFBB-4FA7-98CA-9E87C10CC04E</string>
15
- </dict>
16
- </plist>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>before(function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - before</string>
11
- <key>tabTrigger</key>
12
- <string>b</string>
13
- <key>uuid</key>
14
- <string>DF6F1F42-F80A-4A24-AF78-376F19070C4C</string>
15
- </dict>
16
- </plist>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>it('should $1', function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - it</string>
11
- <key>tabTrigger</key>
12
- <string>it</string>
13
- <key>uuid</key>
14
- <string>591AE071-95E4-4E1E-B0F3-A7DAF41595EE</string>
15
- </dict>
16
- </plist>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>content</key>
6
- <string>describe('$1', function(){
7
- $0
8
- })</string>
9
- <key>name</key>
10
- <string>bdd - describe</string>
11
- <key>tabTrigger</key>
12
- <string>des</string>
13
- <key>uuid</key>
14
- <string>4AA1FB50-9BB9-400E-A140-D61C39BDFDF5</string>
15
- </dict>
16
- </plist>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>name</key>
6
- <string>JavaScript mocha</string>
7
- <key>ordering</key>
8
- <array>
9
- <string>4AA1FB50-9BB9-400E-A140-D61C39BDFDF5</string>
10
- <string>591AE071-95E4-4E1E-B0F3-A7DAF41595EE</string>
11
- <string>DF6F1F42-F80A-4A24-AF78-376F19070C4C</string>
12
- <string>A49A87F9-399E-4D74-A489-C535BB06D487</string>
13
- <string>7AB064E3-EFBB-4FA7-98CA-9E87C10CC04E</string>
14
- <string>7B4DA8F4-2064-468B-B252-054148419B4B</string>
15
- </array>
16
- <key>uuid</key>
17
- <string>094ACE33-0C0E-422A-B3F7-5B919F5B1239</string>
18
- </dict>
19
- </plist>