middleman-autoprefixer 1.0.0 → 1.0.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8bc122b90ef1daf0fae615ab8afe11ed6b46d78b
|
|
4
|
+
data.tar.gz: 85b53eb2ae0361cc7c73c81811ecff786f66b5ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab86bda2a41445f282b5e79a12ebd3cfec3dedb1ed7a56b34316809c6eb9ae7a03cab22d822330a9e25e5c82c575b946a88139421f95c4024b0c89ead6f98378
|
|
7
|
+
data.tar.gz: 4f2a16bca4964a51478457f92ceefc54c39c033c9a0fbcf61ce8b739f3ccbccfde129ca6de0633069f2e76288088af339a4115faf68097200d3131930ff2ca26
|
|
@@ -14,7 +14,14 @@ module Middleman
|
|
|
14
14
|
browsers = nil if browsers.empty?
|
|
15
15
|
|
|
16
16
|
app.after_configuration do
|
|
17
|
-
AutoprefixerRails.
|
|
17
|
+
autoprefixer = AutoprefixerRails::Processor.new(browsers)
|
|
18
|
+
sprockets.register_postprocessor 'text/css', :autoprefixer do |_, data|
|
|
19
|
+
begin
|
|
20
|
+
autoprefixer.process(data).css
|
|
21
|
+
rescue
|
|
22
|
+
data
|
|
23
|
+
end
|
|
24
|
+
end
|
|
18
25
|
end
|
|
19
26
|
end
|
|
20
27
|
alias :included :registered
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: middleman-autoprefixer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dominik Porada
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman
|
|
@@ -113,6 +113,7 @@ files:
|
|
|
113
113
|
- fixtures/block-app/source/stylesheets/page.scss
|
|
114
114
|
- fixtures/hash-app/config.rb
|
|
115
115
|
- fixtures/hash-app/source/index.html
|
|
116
|
+
- fixtures/hash-app/source/stylesheets/_link.sass
|
|
116
117
|
- fixtures/hash-app/source/stylesheets/page.scss
|
|
117
118
|
- lib/middleman-autoprefixer.rb
|
|
118
119
|
- lib/middleman-autoprefixer/extension.rb
|
|
@@ -151,4 +152,5 @@ test_files:
|
|
|
151
152
|
- fixtures/block-app/source/stylesheets/page.scss
|
|
152
153
|
- fixtures/hash-app/config.rb
|
|
153
154
|
- fixtures/hash-app/source/index.html
|
|
155
|
+
- fixtures/hash-app/source/stylesheets/_link.sass
|
|
154
156
|
- fixtures/hash-app/source/stylesheets/page.scss
|