middleman-autoprefixer 1.0.0 → 1.0.1

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: cda18eaf1a6ddc1115319b3c272cb6d4c42edb63
4
- data.tar.gz: 6718ecec62786d93894dd8e77715f870fbb197d4
3
+ metadata.gz: 8bc122b90ef1daf0fae615ab8afe11ed6b46d78b
4
+ data.tar.gz: 85b53eb2ae0361cc7c73c81811ecff786f66b5ba
5
5
  SHA512:
6
- metadata.gz: 9834b14df0c968b97eb4280d5e27862ae83861ac295f670b4dd21787e9296006bab9c69f34d7424cb08cbe9678f51bac1873fc8b1abae24419b52c9e411a49da
7
- data.tar.gz: 1fefdd83ad2b89a08d4cf27af811bbcb5f9648ba85ab529f1fcdccdd219f8d92facf5a276c21b8ab2eee4f0e3e442785fba6b2511a71856c031314e836f2187d
6
+ metadata.gz: ab86bda2a41445f282b5e79a12ebd3cfec3dedb1ed7a56b34316809c6eb9ae7a03cab22d822330a9e25e5c82c575b946a88139421f95c4024b0c89ead6f98378
7
+ data.tar.gz: 4f2a16bca4964a51478457f92ceefc54c39c033c9a0fbcf61ce8b739f3ccbccfde129ca6de0633069f2e76288088af339a4115faf68097200d3131930ff2ca26
@@ -0,0 +1,2 @@
1
+ a
2
+ transition: color 0.25s ease-out
@@ -1,3 +1,5 @@
1
- a {
2
- transition: color 0.25s ease-out;
1
+ .box {
2
+ background: yellow;
3
+
4
+ @import "link";
3
5
  }
@@ -14,7 +14,14 @@ module Middleman
14
14
  browsers = nil if browsers.empty?
15
15
 
16
16
  app.after_configuration do
17
- AutoprefixerRails.install(sprockets, browsers)
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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Autoprefixer
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
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.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-22 00:00:00.000000000 Z
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