middleman-autoprefixer 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -5
- data/CHANGELOG.md +5 -0
- data/README.md +7 -3
- data/features/autoprefixer.feature +6 -0
- data/fixtures/adding-off-app/config.rb +5 -0
- data/fixtures/adding-off-app/source/index.html +0 -0
- data/fixtures/adding-off-app/source/stylesheets/page.css +4 -0
- data/lib/middleman-autoprefixer/extension.rb +12 -10
- data/lib/middleman-autoprefixer/version.rb +1 -1
- data/middleman-autoprefixer.gemspec +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d959c8bd428cbacd8fe57adf03b320eb79ca36d4
|
4
|
+
data.tar.gz: 6e7199c02fb0ec72f294751c5ef121fb910f0d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fc7c8c8f8767da8dddc7a53b05efd1e86c442c99ce3db2a74fae50b2164accb987088d8511db1057a0e7fa96f3a8339505f5de7d55ce3fe644ffa3fb2191264
|
7
|
+
data.tar.gz: f0d2ef80e77128ffa3473dbfe80d9f4aa2917dc31ea89f6286292150bd284be7ee0ef7dfb46a80b7ad622cbbcc71aeda263838dfbec2a1b5e2f362008682ab50
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -36,21 +36,25 @@ end
|
|
36
36
|
|
37
37
|
The list of targeted browsers. Takes values and uses defaults accordingly to [Autoprefixer’s documentation](https://github.com/postcss/autoprefixer#browsers).
|
38
38
|
|
39
|
+
### add
|
40
|
+
|
41
|
+
Whether to add vendor prefixes: `true` or `false`. Enabled by default.
|
42
|
+
|
39
43
|
### remove
|
40
44
|
|
41
45
|
Whether to remove outdated prefixes: `true` or `false`. Enabled by default.
|
42
46
|
|
43
47
|
### cascade
|
44
48
|
|
45
|
-
The visual cascade of prefixed properties: `true` or `false`.
|
49
|
+
The visual cascade of prefixed properties: `true` or `false`. Enabled by default.
|
46
50
|
|
47
51
|
### inline
|
48
52
|
|
49
|
-
Whether to
|
53
|
+
Whether to process inline styles within HTML files: `true` or `false`. Disabled by default.
|
50
54
|
|
51
55
|
### ignore
|
52
56
|
|
53
|
-
The array of patterns or paths to exclude from
|
57
|
+
The array of patterns or paths to exclude from processing. Empty by default.
|
54
58
|
|
55
59
|
## License
|
56
60
|
|
@@ -22,6 +22,12 @@ Feature: Postprocessing stylesheets with Autoprefixer in different configuration
|
|
22
22
|
Then I should see "-webkit-transition"
|
23
23
|
And I should not see "-moz-transition"
|
24
24
|
|
25
|
+
Scenario: Adding is off
|
26
|
+
Given the Server is running at "adding-off-app"
|
27
|
+
When I go to "/stylesheets/page.css"
|
28
|
+
Then I should not see "-webkit-transition"
|
29
|
+
And I should not see "-moz-transition"
|
30
|
+
|
25
31
|
Scenario: Removing is off
|
26
32
|
Given the Server is running at "removing-off-app"
|
27
33
|
When I go to "/stylesheets/page.css"
|
File without changes
|
@@ -1,11 +1,12 @@
|
|
1
1
|
module Middleman
|
2
2
|
module Autoprefixer
|
3
3
|
class Extension < ::Middleman::Extension
|
4
|
-
option :browsers, nil,
|
5
|
-
option :
|
6
|
-
option :
|
7
|
-
option :
|
8
|
-
option :
|
4
|
+
option :browsers, nil, 'Supported browsers'
|
5
|
+
option :add, true, 'Add new vendor prefixes'
|
6
|
+
option :remove, true, 'Remove outdated CSS prefixes'
|
7
|
+
option :cascade, true, 'Align prefixed properties'
|
8
|
+
option :inline, false, 'Process inline CSS within HTML files'
|
9
|
+
option :ignore, [], 'File patterns to avoid processing'
|
9
10
|
|
10
11
|
def initialize(app, options = {}, &block)
|
11
12
|
super
|
@@ -32,11 +33,12 @@ module Middleman
|
|
32
33
|
@inline = options[:inline]
|
33
34
|
@ignore = options[:ignore]
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
@processor = ::AutoprefixerRails::Processor.new({
|
37
|
+
browsers: Array(options[:browsers]),
|
38
|
+
add: options[:add],
|
39
|
+
remove: options[:remove],
|
40
|
+
cascade: options[:cascade]
|
41
|
+
})
|
40
42
|
end
|
41
43
|
|
42
44
|
# Rack interface
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
19
|
spec.add_dependency 'middleman-core', '>= 3.3.3'
|
20
|
-
spec.add_dependency 'autoprefixer-rails', '~>
|
20
|
+
spec.add_dependency 'autoprefixer-rails', '~> 6.0.1'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'middleman', '>= 3.3.3'
|
23
23
|
spec.add_development_dependency 'cucumber', '~> 1.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.
|
4
|
+
version: 2.6.0
|
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: 2015-06
|
12
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 6.0.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:
|
41
|
+
version: 6.0.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: middleman
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +139,9 @@ files:
|
|
139
139
|
- Rakefile
|
140
140
|
- features/autoprefixer.feature
|
141
141
|
- features/support/env.rb
|
142
|
+
- fixtures/adding-off-app/config.rb
|
143
|
+
- fixtures/adding-off-app/source/index.html
|
144
|
+
- fixtures/adding-off-app/source/stylesheets/page.css
|
142
145
|
- fixtures/block-app/config.rb
|
143
146
|
- fixtures/block-app/source/index.html
|
144
147
|
- fixtures/block-app/source/stylesheets/page.scss
|
@@ -191,13 +194,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
194
|
version: '0'
|
192
195
|
requirements: []
|
193
196
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.4.
|
197
|
+
rubygems_version: 2.4.8
|
195
198
|
signing_key:
|
196
199
|
specification_version: 4
|
197
200
|
summary: Autoprefixer integration with Middleman
|
198
201
|
test_files:
|
199
202
|
- features/autoprefixer.feature
|
200
203
|
- features/support/env.rb
|
204
|
+
- fixtures/adding-off-app/config.rb
|
205
|
+
- fixtures/adding-off-app/source/index.html
|
206
|
+
- fixtures/adding-off-app/source/stylesheets/page.css
|
201
207
|
- fixtures/block-app/config.rb
|
202
208
|
- fixtures/block-app/source/index.html
|
203
209
|
- fixtures/block-app/source/stylesheets/page.scss
|