middleman-autoprefixer 2.10.0 → 2.10.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4924e38c04096f7e28a6884e1e378eaf8f30e26b4ab188bcaeca79766016e7b
|
4
|
+
data.tar.gz: cca3a47d56fe1550831cb7fb9425d021b55de8b54c4e731dd3fc257855f9a265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9dff9197f17cec90ad0c34779ef9d6c78a2b786153537b1056a91d1a93d50937f6d4771341747721fe3c55b5fb11c9393bb8045b593f1340492502f61b5cf7a
|
7
|
+
data.tar.gz: b00b93b4e1e7900ba29a307c0c6be38426a9825b37956083780e59470d489d718fdecb35410f327d2154cfc41d947be4d3f91f774489285e0155d5fab1e9ef14
|
@@ -21,7 +21,7 @@ module Middleman
|
|
21
21
|
|
22
22
|
def after_configuration
|
23
23
|
# Setup Rack middleware to apply prefixes
|
24
|
-
app.use Rack, options
|
24
|
+
app.use Rack, config: options, middleman_app: @app
|
25
25
|
end
|
26
26
|
|
27
27
|
# Rack middleware to look for CSS and apply prefixes.
|
@@ -33,16 +33,18 @@ module Middleman
|
|
33
33
|
# @param [Hash] options
|
34
34
|
def initialize(app, options = {})
|
35
35
|
@app = app
|
36
|
-
@
|
37
|
-
@
|
36
|
+
@middleman_app = options.fetch(:middleman_app)
|
37
|
+
@config = options.fetch(:config)
|
38
|
+
@inline = @config[:inline]
|
39
|
+
@ignore = @config[:ignore]
|
38
40
|
|
39
41
|
@processor = ::AutoprefixerRails::Processor.new({
|
40
|
-
browsers:
|
41
|
-
add:
|
42
|
-
remove:
|
43
|
-
grid:
|
44
|
-
supports:
|
45
|
-
flexbox:
|
42
|
+
browsers: @config[:browsers] && Array(@config[:browsers]),
|
43
|
+
add: @config[:add],
|
44
|
+
remove: @config[:remove],
|
45
|
+
grid: @config[:grid],
|
46
|
+
supports: @config[:supports],
|
47
|
+
flexbox: @config[:flexbox]
|
46
48
|
})
|
47
49
|
end
|
48
50
|
|
@@ -79,6 +81,9 @@ module Middleman
|
|
79
81
|
|
80
82
|
def prefix(content, path = nil)
|
81
83
|
@processor.process(content, path ? { from: path } : {}).css
|
84
|
+
rescue => e
|
85
|
+
@middleman_app.logger.error(e.message)
|
86
|
+
raise e
|
82
87
|
end
|
83
88
|
|
84
89
|
def prefix_inline_styles(content)
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
19
|
spec.add_runtime_dependency 'middleman-core', '>= 3.3.3'
|
20
|
-
spec.add_runtime_dependency 'autoprefixer-rails', '
|
20
|
+
spec.add_runtime_dependency 'autoprefixer-rails', '~> 9.1'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '>= 1.14'
|
23
23
|
spec.add_development_dependency 'rake', '>= 10.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-autoprefixer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Porada
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: autoprefixer-rails
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 9.1
|
34
|
+
version: '9.1'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 9.1
|
41
|
+
version: '9.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.7.8
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: Automatically vendor-prefix stylesheets served by Middleman.
|