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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52a9e238e389cb463618d8da852faf01df1c3de3
4
- data.tar.gz: 12ba6d8e18b9d10c0331f76a9d73423256dbd3a2
3
+ metadata.gz: b3a045ef63ebc6f352c5668afb0d8251379d830c
4
+ data.tar.gz: 18c0453a7cc95d0da01379a2206a336d070ed417
5
5
  SHA512:
6
- metadata.gz: 0b6f80c500b077d02d3369e91e6df62cc3e7d0307ac73a392693ce355be275b91731b7abaa803f20609feca1fa02b666c47bc7f2e651f4d545fee479dd7a3009
7
- data.tar.gz: 7062fb87e8b204a4787f73f4722adf3121df3943f26b418af481ee0fbbeaae4871ae06f71a5d89e878ee9e6b06c583d2007989f968a143179922b037e739abfd
6
+ metadata.gz: cee45ce13ae771d1bd1047b03c7020a6aa3cdef61dc3ba2806dcf8a902948fc8a6fbe43b2ac726ac6c2f764c75c3c6e9133ad0c01fa637c6e73b8d7c5a3b79d5
7
+ data.tar.gz: ac9b47b83202b70f4f70619e5f4d6d91ab1417ddfd37ffd3ec968645f24756943443ed43353568be2ea5548da9959ea3019cd2797bafd7d173a4a851e5807d15
data/README.md CHANGED
@@ -54,7 +54,7 @@ Usage
54
54
  // Testing Mixins
55
55
  @include test('Font Size [mixin]') {
56
56
  @include assert('Outputs a font size and line height based on keyword.') {
57
- @include input {
57
+ @include output {
58
58
  @include font-size(large);
59
59
  }
60
60
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -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();
@@ -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
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miriam Eric Suzanne