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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85bfe06bddebec420d6353a9a1eda1c0d6aadda8
4
- data.tar.gz: 823f9301fdfc70c4d1418c1a242f093fe9722e92
3
+ metadata.gz: d959c8bd428cbacd8fe57adf03b320eb79ca36d4
4
+ data.tar.gz: 6e7199c02fb0ec72f294751c5ef121fb910f0d74
5
5
  SHA512:
6
- metadata.gz: a38c5e06fdbd0c68fced07514c1ee483a323edd195ae2638aeace9c4c30bd38540d4190b3f1b95485d075fa9aa9eade168f5dffa8858b394e8a615daf17ab0f5
7
- data.tar.gz: 3c3e2311a15d225e2c6ecd355573a78dc5395ff4202485b423b2e61535edaa1cd3294e4848431afd9cef886e648d0c596d3df5527edac08e146811e895745c1a
6
+ metadata.gz: 9fc7c8c8f8767da8dddc7a53b05efd1e86c442c99ce3db2a74fae50b2164accb987088d8511db1057a0e7fa96f3a8339505f5de7d55ce3fe644ffa3fb2191264
7
+ data.tar.gz: f0d2ef80e77128ffa3473dbfe80d9f4aa2917dc31ea89f6286292150bd284be7ee0ef7dfb46a80b7ad622cbbcc71aeda263838dfbec2a1b5e2f362008682ab50
data/.travis.yml CHANGED
@@ -1,10 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.5
5
- - 2.2.0
3
+ - 2.1
4
+ - 2.2
6
5
  script:
7
- - bundle install
8
6
  - bundle exec rake test
9
7
  - bundle exec rake install
10
- - middleman version
8
+ sudo: false
9
+ cache: bundler
10
+ matrix:
11
+ fast_finish: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v2.6.0
2
+
3
+ * Updated Autoprefixer to 6.0.
4
+ * Added support for the `add` option.
5
+
1
6
  # v2.5.0
2
7
 
3
8
  * Added support for the `remove` option.
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`. Uses the default value accordingly to [Autoprefixer’s documentation](https://github.com/postcss/autoprefixer#visual-cascade).
49
+ The visual cascade of prefixed properties: `true` or `false`. Enabled by default.
46
50
 
47
51
  ### inline
48
52
 
49
- Whether to prefix inline styles within HTML files: `true` or `false`. Disabled by default.
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 prefixing. Empty by default.
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"
@@ -0,0 +1,5 @@
1
+ activate :autoprefixer do |config|
2
+ config.browsers = 'Firefox 15'
3
+ config.cascade = true
4
+ config.add = false
5
+ end
File without changes
@@ -0,0 +1,4 @@
1
+ a {
2
+ -webkit-transition: color 0.25s ease-out;
3
+ transition: color 0.25s ease-out;
4
+ }
@@ -1,11 +1,12 @@
1
1
  module Middleman
2
2
  module Autoprefixer
3
3
  class Extension < ::Middleman::Extension
4
- option :browsers, nil, 'Supported browsers (see https://github.com/ai/browserslist)'
5
- option :cascade, true, 'Align prefixed properties'
6
- option :inline, false, 'Prefix inline CSS within HTML files'
7
- option :remove, true, 'Remove outdated CSS prefixes'
8
- option :ignore, [], 'File patterns to avoid prefixing'
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
- config = {}
36
- config[:browsers] = Array(options[:browsers])
37
- config[:cascade] = options[:cascade]
38
- config[:remove] = options[:remove]
39
- @processor = ::AutoprefixerRails::Processor.new(config)
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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Autoprefixer
3
- VERSION = '2.5.0'.freeze
3
+ VERSION = '2.6.0'.freeze
4
4
  end
5
5
  end
@@ -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', '~> 5.2.0'
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.5.0
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-18 00:00:00.000000000 Z
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: 5.2.0
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: 5.2.0
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.6
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