middleman-autoprefixer 2.7.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.devcontainer/Dockerfile +20 -0
- data/.devcontainer/devcontainer.json +33 -0
- data/.gitignore +3 -14
- data/.travis.yml +20 -10
- data/CHANGELOG.md +19 -0
- data/Gemfile +6 -8
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/features/autoprefixer.feature +2 -2
- data/fixtures/adding-off-app/source/index.html +0 -0
- data/fixtures/block-app/source/index.html +0 -0
- data/fixtures/cascading-off-app/source/index.html +0 -0
- data/fixtures/cascading-on-app/source/index.html +0 -0
- data/fixtures/hash-app/source/index.html +0 -0
- data/fixtures/ignore-app/source/index.html +0 -0
- data/fixtures/removing-off-app/source/index.html +0 -0
- data/lib/middleman-autoprefixer/extension.rb +17 -7
- data/lib/middleman-autoprefixer/version.rb +1 -1
- data/middleman-autoprefixer.gemspec +3 -5
- metadata +13 -81
- data/Gemfile3 +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5b536706bab3e888b51ebff5fcf0d1292df2e21f206baadc1d6ac433aecb93f5
|
4
|
+
data.tar.gz: 65c87c6e798e799d92ea29fd6fb1753ab42392714baa07e341fa7ce83d30e189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b343146dd2f14669ddd45f8f8a22ab8b0663624321c8742e82b79c92f92353bbf8141db940c18282454aa05e17db5ad02cb7513c5c4666b89ccd4a9281a4b4d2
|
7
|
+
data.tar.gz: 327444b6b64a1d29d36e34308a3e8df41b72107f7c4d1d632a00187199a504b5b70de9ce269ce5f6ccf4f7472e2f0c1643e83483fa14f1ca80c076ffac9cb1bb
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.145.1/containers/ruby/.devcontainer/base.Dockerfile
|
2
|
+
|
3
|
+
# [Choice] Ruby version: 2, 2.7, 2.6, 2.5
|
4
|
+
ARG VARIANT="2"
|
5
|
+
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
|
6
|
+
|
7
|
+
# [Option] Install Node.js
|
8
|
+
ARG INSTALL_NODE="true"
|
9
|
+
ARG NODE_VERSION="lts/*"
|
10
|
+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
11
|
+
|
12
|
+
# [Optional] Uncomment this section to install additional OS packages.
|
13
|
+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
14
|
+
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
15
|
+
|
16
|
+
# [Optional] Uncomment this line to install additional gems.
|
17
|
+
# RUN gem install <your-gem-names-here>
|
18
|
+
|
19
|
+
# [Optional] Uncomment this line to install global node packages.
|
20
|
+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"name": "Ruby",
|
3
|
+
"build": {
|
4
|
+
"dockerfile": "Dockerfile",
|
5
|
+
"args": {
|
6
|
+
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5
|
7
|
+
"VARIANT": "2",
|
8
|
+
// Options
|
9
|
+
"INSTALL_NODE": "true",
|
10
|
+
"NODE_VERSION": "lts/*"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
|
14
|
+
// Set *default* container specific settings.json values on container create.
|
15
|
+
"settings": {
|
16
|
+
"terminal.integrated.shell.linux": "/bin/bash"
|
17
|
+
},
|
18
|
+
|
19
|
+
// Add the IDs of extensions you want installed when the container is created.
|
20
|
+
"extensions": [
|
21
|
+
"rebornix.Ruby"
|
22
|
+
]
|
23
|
+
|
24
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
25
|
+
// "forwardPorts": [],
|
26
|
+
|
27
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
28
|
+
// "postCreateCommand": "ruby --version",
|
29
|
+
|
30
|
+
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
31
|
+
// "remoteUser": "vscode"
|
32
|
+
|
33
|
+
}
|
data/.gitignore
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.sass-cache
|
6
|
-
.yardoc
|
7
1
|
Gemfile.lock
|
8
2
|
Gemfile3.lock
|
9
|
-
|
10
|
-
|
3
|
+
|
4
|
+
.sass-cache
|
5
|
+
|
11
6
|
coverage
|
12
|
-
doc/
|
13
|
-
lib/bundler/man
|
14
7
|
pkg
|
15
|
-
rdoc
|
16
|
-
spec/reports
|
17
|
-
test/tmp
|
18
|
-
test/version_tmp
|
19
8
|
tmp
|
data/.travis.yml
CHANGED
@@ -1,15 +1,25 @@
|
|
1
1
|
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3.1
|
4
|
-
- 2.2.5
|
5
|
-
gemfile:
|
6
|
-
- Gemfile
|
7
|
-
- Gemfile3
|
8
|
-
script:
|
9
|
-
- bundle exec rake test
|
10
|
-
env:
|
11
|
-
- RUBYOPT=W0
|
12
2
|
sudo: false
|
13
3
|
cache: bundler
|
4
|
+
rvm:
|
5
|
+
- ruby-head
|
6
|
+
- 2.7.0
|
7
|
+
- 2.6.0
|
8
|
+
- 2.5.3
|
9
|
+
- 2.4.5
|
10
|
+
- 2.3.8
|
11
|
+
os:
|
12
|
+
- linux
|
13
|
+
before_install:
|
14
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
15
|
+
- gem install bundler -v '< 2'
|
16
|
+
- nvm install 10
|
14
17
|
matrix:
|
15
18
|
fast_finish: true
|
19
|
+
allow_failures:
|
20
|
+
- rvm: ruby-head
|
21
|
+
env:
|
22
|
+
global:
|
23
|
+
- TEST=true
|
24
|
+
script:
|
25
|
+
- bundle exec rake test
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# v3.0.0
|
2
|
+
|
3
|
+
* Updated Autoprefixer to 10.
|
4
|
+
* Dropped support for Middleman v3.
|
5
|
+
* Ruby 2.2.0 is now oldest supported version.
|
6
|
+
|
7
|
+
# v2.10.0
|
8
|
+
|
9
|
+
* Updated Autoprefixer to 9.1.
|
10
|
+
* Add config for `grid`, `supports` and `flexbox` options.
|
11
|
+
|
12
|
+
# v2.9.0
|
13
|
+
|
14
|
+
* Updated Autoprefixer to 8.0.
|
15
|
+
|
16
|
+
# v2.8.0
|
17
|
+
|
18
|
+
* Updated Autoprefixer to 7.0.
|
19
|
+
|
1
20
|
# v2.7.1
|
2
21
|
|
3
22
|
* Bug fixes ([#26](https://github.com/middleman/middleman-autoprefixer/issues/26)).
|
data/Gemfile
CHANGED
@@ -2,12 +2,10 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
gem 'middleman', '>= 4.0.0'
|
7
|
-
gem 'middleman-sprockets', '>= 4.0.0.rc.1'
|
5
|
+
gem 'middleman', '>= 4.0.0'
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
gem 'rake', '~> 10.3', require: false
|
8
|
+
gem 'capybara', '~> 2.5.0', require: false
|
9
|
+
gem 'cucumber', '~> 2.0', require: false
|
10
|
+
gem 'aruba', '~> 0.7.4', require: false
|
11
|
+
gem 'coveralls', '~> 0.8', require: false
|
data/README.md
CHANGED
@@ -53,4 +53,4 @@ The array of patterns or paths to exclude from processing. Empty by default.
|
|
53
53
|
|
54
54
|
## License
|
55
55
|
|
56
|
-
Middleman Autoprefixer was created by [Dominik Porada](https://github.com/porada) is distributed under the [MIT](http://porada.mit-license.org/) license.
|
56
|
+
Middleman Autoprefixer was created by [Dominik Porada](https://github.com/porada) and is distributed under the [MIT](http://porada.mit-license.org/) license.
|
data/Rakefile
CHANGED
@@ -48,8 +48,8 @@ Feature: Postprocessing stylesheets with Autoprefixer in different configuration
|
|
48
48
|
Then I should see:
|
49
49
|
"""
|
50
50
|
-webkit-box-sizing: border-box;
|
51
|
-
|
52
|
-
|
51
|
+
-moz-box-sizing: border-box;
|
52
|
+
box-sizing: border-box;
|
53
53
|
"""
|
54
54
|
|
55
55
|
Scenario: Inline HTML
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -7,6 +7,9 @@ module Middleman
|
|
7
7
|
option :cascade, true, 'Align prefixed properties'
|
8
8
|
option :inline, false, 'Process inline CSS within HTML files'
|
9
9
|
option :ignore, [], 'File patterns to avoid processing'
|
10
|
+
option :grid, true, 'Enable -ms- prefixes for Grid Layout'
|
11
|
+
option :supports, false, 'Disable @supports parameters prefixing'
|
12
|
+
option :flexbox, false, 'Disable flexbox properties prefixing'
|
10
13
|
|
11
14
|
def initialize(app, options = {}, &block)
|
12
15
|
super
|
@@ -18,7 +21,7 @@ module Middleman
|
|
18
21
|
|
19
22
|
def after_configuration
|
20
23
|
# Setup Rack middleware to apply prefixes
|
21
|
-
app.use Rack, options
|
24
|
+
app.use Rack, config: options, middleman_app: @app
|
22
25
|
end
|
23
26
|
|
24
27
|
# Rack middleware to look for CSS and apply prefixes.
|
@@ -30,14 +33,18 @@ module Middleman
|
|
30
33
|
# @param [Hash] options
|
31
34
|
def initialize(app, options = {})
|
32
35
|
@app = app
|
33
|
-
@
|
34
|
-
@
|
36
|
+
@middleman_app = options.fetch(:middleman_app)
|
37
|
+
@config = options.fetch(:config)
|
38
|
+
@inline = @config[:inline]
|
39
|
+
@ignore = @config[:ignore]
|
35
40
|
|
36
41
|
@processor = ::AutoprefixerRails::Processor.new({
|
37
|
-
browsers:
|
38
|
-
add:
|
39
|
-
remove:
|
40
|
-
|
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]
|
41
48
|
})
|
42
49
|
end
|
43
50
|
|
@@ -74,6 +81,9 @@ module Middleman
|
|
74
81
|
|
75
82
|
def prefix(content, path = nil)
|
76
83
|
@processor.process(content, path ? { from: path } : {}).css
|
84
|
+
rescue => e
|
85
|
+
@middleman_app.logger.error(e.message)
|
86
|
+
raise e
|
77
87
|
end
|
78
88
|
|
79
89
|
def prefix_inline_styles(content)
|
@@ -15,10 +15,8 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
16
16
|
spec.test_files = `git ls-files -- {features,fixtures}/*`.split($/)
|
17
17
|
spec.require_paths = ['lib']
|
18
|
+
spec.required_ruby_version = '>= 2.2.0'
|
18
19
|
|
19
|
-
spec.add_runtime_dependency 'middleman-core', '>=
|
20
|
-
spec.add_runtime_dependency 'autoprefixer-rails', '
|
21
|
-
|
22
|
-
spec.add_development_dependency 'bundler', '>= 1.6'
|
23
|
-
spec.add_development_dependency 'rake', '>= 10.3'
|
20
|
+
spec.add_runtime_dependency 'middleman-core', '>= 4.0.0'
|
21
|
+
spec.add_runtime_dependency 'autoprefixer-rails', '~> 10.0'
|
24
22
|
end
|
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:
|
4
|
+
version: 3.0.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:
|
12
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -17,62 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 4.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 4.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: autoprefixer-rails
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 6.5.2
|
35
|
-
- - "<"
|
32
|
+
- - "~>"
|
36
33
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
34
|
+
version: '10.0'
|
38
35
|
type: :runtime
|
39
36
|
prerelease: false
|
40
37
|
version_requirements: !ruby/object:Gem::Requirement
|
41
38
|
requirements:
|
42
|
-
- - "
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 6.5.2
|
45
|
-
- - "<"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 7.0.0
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: bundler
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.6'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.6'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '10.3'
|
69
|
-
type: :development
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
39
|
+
- - "~>"
|
74
40
|
- !ruby/object:Gem::Version
|
75
|
-
version: '10.
|
41
|
+
version: '10.0'
|
76
42
|
description:
|
77
43
|
email:
|
78
44
|
- dominik@porada.co
|
@@ -81,11 +47,12 @@ executables: []
|
|
81
47
|
extensions: []
|
82
48
|
extra_rdoc_files: []
|
83
49
|
files:
|
50
|
+
- ".devcontainer/Dockerfile"
|
51
|
+
- ".devcontainer/devcontainer.json"
|
84
52
|
- ".gitignore"
|
85
53
|
- ".travis.yml"
|
86
54
|
- CHANGELOG.md
|
87
55
|
- Gemfile
|
88
|
-
- Gemfile3
|
89
56
|
- README.md
|
90
57
|
- Rakefile
|
91
58
|
- features/autoprefixer.feature
|
@@ -138,50 +105,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
105
|
requirements:
|
139
106
|
- - ">="
|
140
107
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
108
|
+
version: 2.2.0
|
142
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
110
|
requirements:
|
144
111
|
- - ">="
|
145
112
|
- !ruby/object:Gem::Version
|
146
113
|
version: '0'
|
147
114
|
requirements: []
|
148
|
-
|
149
|
-
rubygems_version: 2.6.8
|
115
|
+
rubygems_version: 3.1.2
|
150
116
|
signing_key:
|
151
117
|
specification_version: 4
|
152
118
|
summary: Automatically vendor-prefix stylesheets served by Middleman.
|
153
|
-
test_files:
|
154
|
-
- features/autoprefixer.feature
|
155
|
-
- features/support/env.rb
|
156
|
-
- fixtures/adding-off-app/config.rb
|
157
|
-
- fixtures/adding-off-app/source/index.html
|
158
|
-
- fixtures/adding-off-app/source/stylesheets/page.css
|
159
|
-
- fixtures/block-app/config.rb
|
160
|
-
- fixtures/block-app/source/index.html
|
161
|
-
- fixtures/block-app/source/stylesheets/page.css
|
162
|
-
- fixtures/cascading-off-app/config.rb
|
163
|
-
- fixtures/cascading-off-app/source/index.html
|
164
|
-
- fixtures/cascading-off-app/source/stylesheets/page.css
|
165
|
-
- fixtures/cascading-on-app/config.rb
|
166
|
-
- fixtures/cascading-on-app/source/index.html
|
167
|
-
- fixtures/cascading-on-app/source/stylesheets/page.css
|
168
|
-
- fixtures/default-app/config.rb
|
169
|
-
- fixtures/default-app/source/index.html
|
170
|
-
- fixtures/default-app/source/stylesheets/page.css
|
171
|
-
- fixtures/hash-app/config.rb
|
172
|
-
- fixtures/hash-app/source/index.html
|
173
|
-
- fixtures/hash-app/source/stylesheets/_link.sass
|
174
|
-
- fixtures/hash-app/source/stylesheets/page.css.scss
|
175
|
-
- fixtures/ignore-app/config.rb
|
176
|
-
- fixtures/ignore-app/source/index.html
|
177
|
-
- fixtures/ignore-app/source/stylesheets/nope.css
|
178
|
-
- fixtures/ignore-app/source/stylesheets/yep-1.css
|
179
|
-
- fixtures/ignore-app/source/stylesheets/yep-2.css
|
180
|
-
- fixtures/inline-app/config.rb
|
181
|
-
- fixtures/inline-app/source/index.html
|
182
|
-
- fixtures/proxy-app/config.rb
|
183
|
-
- fixtures/proxy-app/source/index.html
|
184
|
-
- fixtures/proxy-app/source/stylesheets/page.css
|
185
|
-
- fixtures/removing-off-app/config.rb
|
186
|
-
- fixtures/removing-off-app/source/index.html
|
187
|
-
- fixtures/removing-off-app/source/stylesheets/page.css
|
119
|
+
test_files: []
|