modernizr-mixin 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f74d0f52e9588838214b0d5d422b2b0463c98439
4
- data.tar.gz: 2ab120b7f4c9fd8a0930618803f1d8c5e1f08396
3
+ metadata.gz: 9c961595a3ae41658ab8a899bec1751bf23b29c8
4
+ data.tar.gz: 3870deade6ea41733b54dd1407687088c664689b
5
5
  SHA512:
6
- metadata.gz: 893e6bac68307b7e6ec2c12b549db13886a8c2b85b1fd654e1feefee3edeb27bc82052146a7c365018d77652a4d44c30473e4ea98c5be93c1c70fafe0c116cfe
7
- data.tar.gz: 99229d331abb5c54af6b6b350eb56f5616ccf2972548aea6b647a283cbdcdb3feb5498e10712006312bda17efb154782493962cbd0795e7a4e9f5358ab80c303
6
+ metadata.gz: 82e239904004eed1d680aa3454bd5ce194da378c8e39d1e9984e0039fcf64b0974e19f994c17ca5ce4b257cbcbc33ab8a07aeb3929e9bc71528817608913be55
7
+ data.tar.gz: 69faffa12d984d276b3422975a5450f5f2c94c24d80e6705d2de03b56750d3e77d9dd5e9eac8e19402df55a6490cccb4c3bd8478bf4f294a6b7cfba9a2c3cb93
data/README.md CHANGED
@@ -6,6 +6,8 @@ A simple way for DRYier, faster and cleaner Modernizr tests in Sass.
6
6
 
7
7
  Requires Ruby Sass 3.4 or LibSass 3.2
8
8
 
9
+ **LIBSASS WARNING: There is a known bug in Libsass 3.2.3 and 3.2.4 that makes Modernizr mixin output incorrect selectors. The only workaround until the bug is patched is to stick to Libsass 3.2.2. https://github.com/sass/libsass/issues/1210**
10
+
9
11
  There are 4 ways of installing the Modernizr mixin:
10
12
 
11
13
  ### Download
@@ -3,6 +3,6 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
3
  Compass::Frameworks.register('modernizr-mixin', :path => extension_path)
4
4
 
5
5
  module ModernizrMixin
6
- VERSION = "3.0.6"
7
- DATE = "2015-06-02"
6
+ VERSION = "3.0.7"
7
+ DATE = "2015-06-12"
8
8
  end
@@ -116,3 +116,23 @@
116
116
  @content;
117
117
  }
118
118
  }
119
+
120
+
121
+ // -----------------------------------------------------------------------------
122
+ // Libsass error check
123
+ // -----------------------------------------------------------------------------
124
+ /// There is a known bug in Libsass 3.2.3 / 3.2.4 that makes Modernizr mixin
125
+ /// output incorrect selectors. This test throws an error for versions of Libsass
126
+ /// that contain said bug.
127
+ /// @todo Remove once the Libsass bug is patched
128
+
129
+ %_modernizr-libsass-bug-test {
130
+ $a: '%foo#{&}';
131
+
132
+ @at-root #{$a} {
133
+ $b: #{&};
134
+ @if $b == '%_modernizr-libsass-bug-test %foo%_modernizr-libsass-bug-test' {
135
+ @error '[Modernizr mixin]: There is a known bug in Libsass 3.2.3 / 3.2.4 that makes Modernizr mixin output incorrect selectors. If you want to keep using the Modernizr Mixin you need to stick to Libsass 3.2.2 until the bug is patched, hopefully in 3.2.5. Learn more at https://github.com/danielguillan/modernizr-mixin/issues/24';
136
+ }
137
+ }
138
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modernizr-mixin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Guillan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass