true 2.1.1 → 2.1.2
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 +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/main.js +15 -0
- data/sass/true/_assert.scss +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a045ef63ebc6f352c5668afb0d8251379d830c
|
4
|
+
data.tar.gz: 18c0453a7cc95d0da01379a2206a336d070ed417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee45ce13ae771d1bd1047b03c7020a6aa3cdef61dc3ba2806dcf8a902948fc8a6fbe43b2ac726ac6c2f764c75c3c6e9133ad0c01fa637c6e73b8d7c5a3b79d5
|
7
|
+
data.tar.gz: ac9b47b83202b70f4f70619e5f4d6d91ab1417ddfd37ffd3ec968645f24756943443ed43353568be2ea5548da9959ea3019cd2797bafd7d173a4a851e5807d15
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1
|
data/lib/main.js
CHANGED
@@ -75,12 +75,27 @@ var parseModule = function (rule, ctx) {
|
|
75
75
|
ctx.currentModule = { module: text.substring(10), tests: [] };
|
76
76
|
return parseTest;
|
77
77
|
}
|
78
|
+
if (text.substring(0, 10) === '# SUMMARY ') {
|
79
|
+
return ignoreUntilEndSummary;
|
80
|
+
}
|
78
81
|
parseError('Unexpected comment "' + text + '"', 'module header', rule.position);
|
79
82
|
}
|
80
83
|
parseError('Unexpected rule type "' + rule.type + '"', 'module header', rule.position);
|
81
84
|
};
|
82
85
|
|
83
86
|
|
87
|
+
var ignoreUntilEndSummary = function (rule, ctx) {
|
88
|
+
if (rule.type === 'comment') {
|
89
|
+
var text = rule.comment.trim();
|
90
|
+
if (text.substring(0, 10) === '----------') {
|
91
|
+
return parseModule;
|
92
|
+
}
|
93
|
+
return ignoreUntilEndSummary;
|
94
|
+
}
|
95
|
+
parseError('Unexpected rule type "' + rule.type + '"', 'end summary', rule.position);
|
96
|
+
};
|
97
|
+
|
98
|
+
|
84
99
|
var parseTest = function (rule, ctx) {
|
85
100
|
if (rule.type === 'comment') {
|
86
101
|
var text = rule.comment.trim();
|
data/sass/true/_assert.scss
CHANGED
@@ -115,6 +115,19 @@
|
|
115
115
|
@include _true-message(' END_OUTPUT ', 'comments');
|
116
116
|
}
|
117
117
|
|
118
|
+
|
119
|
+
/// @alias output
|
120
|
+
@mixin input(
|
121
|
+
$selector: true
|
122
|
+
) {
|
123
|
+
@warn 'The `input` mixin has been renamed `output` and will be removed.';
|
124
|
+
|
125
|
+
@include output($selector) {
|
126
|
+
@content;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
|
118
131
|
/// Describe the output content to be expected.
|
119
132
|
/// The output will be compared against the results of the `output()` mixin.
|
120
133
|
/// @access public
|