true 2.0.2 → 2.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6a7100c98f736aaf9d6ef973ba5c5fc0231acdd
4
- data.tar.gz: 9a6425828c5a712a6735d26d36c51fe7c9ae331a
3
+ metadata.gz: d1049e00936b5b3c04a2c619fb9d16d28f39db45
4
+ data.tar.gz: f118f282ac2c88d82c1449b87f4019474e8d63b6
5
5
  SHA512:
6
- metadata.gz: 9dba31e95f10290485d251692881ea8af645bbe075d9a9820646f417f98cc8fe4a335339b5733bc9897ae3a60116c6c999b2af2bf0625bd59dde1eaa1c09c55b
7
- data.tar.gz: 15de231bffdd88378eb45908d6b3e473f019389fee8aa428bc57d6409e44c7a03d8db8b9dc612d0aed63ed81c60eed1a5c02fe5d00f72296c1f084d9f8e5cbdc
6
+ metadata.gz: 24c40ff043d8b9839f6939084180adf9ad83136c9a0c1b7fa3086cd7623a4565efa86cfd332a7f152e2df8e76011165c3a141b701307bbe946679dc347878713
7
+ data.tar.gz: 2473f50f2a1594ce644244f424d15838acf7eb9469ce26ec6c47f4bd276a8a4268fca51b424ab56664af012a6ac9db4db391a87fcf70794ae6e1864ef47fa5f3
data/README.md CHANGED
@@ -29,6 +29,7 @@ bower install true
29
29
  npm install sass-true
30
30
  ```
31
31
 
32
+
32
33
  Usage
33
34
  -----
34
35
 
@@ -71,6 +72,20 @@ Usage
71
72
  @include report;
72
73
  ```
73
74
 
75
+ **Note:**
76
+ Function unit-tests work across the board,
77
+ but testing mixins can be a bit more complex.
78
+ At this point,
79
+ only Mocha is able to compare/report the results of mixin tests,
80
+ as long as the mixins don't manipulate the selector chain
81
+ (it can't test media-query mixins for example).
82
+ Without using Mocha,
83
+ you can test any mixin,
84
+ but you will have to compare the expected and actual results manually
85
+ in the output code.
86
+ Version control can make that much easier than it sounds.
87
+
88
+
74
89
  ### With node-sass and Mocha (or other JS test runners)
75
90
 
76
91
  1. Install `true` via npm (`npm install sass-true`).
@@ -81,10 +96,10 @@ Usage
81
96
 
82
97
  ```js
83
98
  var path = require('path');
84
- var true = require('sass-true');
99
+ var sassTrue = require('sass-true');
85
100
 
86
101
  var sassFile = path.join(__dirname, 'test.scss');
87
- true.runSass({file: sassFile}, describe, it);
102
+ sassTrue.runSass({file: sassFile}, describe, it);
88
103
  ```
89
104
 
90
105
  4. Run Mocha, and see your Sass tests reported as individual test results.
@@ -101,6 +116,7 @@ Any other JS test runner with equivalents to Mocha's `describe` and `it` should
101
116
  be usable in the same way; just pass your test runner's `describe` and `it`
102
117
  equivalents into `runSass`.
103
118
 
119
+
104
120
  ### With ruby-sass on the command line
105
121
 
106
122
  ```bash
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
data/bin/true-cli CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: UTF-8
2
3
  require 'sass'
3
4
  require 'true'
4
5
  require 'yaml'
@@ -24,7 +24,7 @@ $-tnl: '\a ';
24
24
  $selector: if($selector, '#{$selector} #{$this}', $this);
25
25
  }
26
26
 
27
- @return $selector;
27
+ @return unquote($selector);
28
28
  }
29
29
 
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 'true'
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Suzanne