autoprefixer-rails 8.6.5 → 9.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.standard.yml +1 -0
- data/.travis.yml +7 -24
- data/CHANGELOG.md +130 -0
- data/Gemfile +10 -1
- data/README.md +27 -27
- data/Rakefile +25 -20
- data/autoprefixer-rails.gemspec +21 -17
- data/lib/autoprefixer-rails.rb +16 -13
- data/lib/autoprefixer-rails/processor.rb +71 -141
- data/lib/autoprefixer-rails/railtie.rb +6 -6
- data/lib/autoprefixer-rails/sprockets.rb +9 -9
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/lib/rake/autoprefixer_tasks.rb +4 -4
- data/spec/app/Rakefile +1 -1
- data/spec/app/app/controllers/css_controller.rb +1 -1
- data/spec/app/config.ru +1 -1
- data/spec/app/config/application.rb +6 -4
- data/spec/app/config/boot.rb +2 -2
- data/spec/app/config/environment.rb +2 -2
- data/spec/app/config/initializers/secret_token.rb +1 -1
- data/spec/app/config/routes.rb +1 -1
- data/spec/autoprefixer_spec.rb +46 -37
- data/spec/processor_spec.rb +16 -5
- data/spec/rails_spec.rb +12 -22
- data/spec/railtie_spec.rb +9 -9
- data/spec/spec_helper.rb +5 -5
- data/vendor/autoprefixer.js +58511 -15781
- metadata +13 -17
- data/mini_racer.gemfile +0 -16
- data/shared.gemfile +0 -7
- data/spec/app/config/initializers/compress.rb +0 -1
- data/spec/compass/config.rb +0 -34
- data/spec/compass/sass/screen.scss +0 -3
- data/spec/compass_spec.rb +0 -21
- data/sprockets3.gemfile +0 -9
- data/sprockets4.gemfile +0 -9
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoprefixer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: standard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -89,8 +89,10 @@ extra_rdoc_files:
|
|
89
89
|
- LICENSE
|
90
90
|
- CHANGELOG.md
|
91
91
|
files:
|
92
|
+
- ".github/FUNDING.yml"
|
92
93
|
- ".gitignore"
|
93
94
|
- ".rspec"
|
95
|
+
- ".standard.yml"
|
94
96
|
- ".travis.yml"
|
95
97
|
- CHANGELOG.md
|
96
98
|
- Gemfile
|
@@ -105,8 +107,6 @@ files:
|
|
105
107
|
- lib/autoprefixer-rails/sprockets.rb
|
106
108
|
- lib/autoprefixer-rails/version.rb
|
107
109
|
- lib/rake/autoprefixer_tasks.rb
|
108
|
-
- mini_racer.gemfile
|
109
|
-
- shared.gemfile
|
110
110
|
- spec/app/.browserslistrc
|
111
111
|
- spec/app/.gitignore
|
112
112
|
- spec/app/Rakefile
|
@@ -124,24 +124,21 @@ files:
|
|
124
124
|
- spec/app/config/boot.rb
|
125
125
|
- spec/app/config/environment.rb
|
126
126
|
- spec/app/config/environments/test.rb
|
127
|
-
- spec/app/config/initializers/compress.rb
|
128
127
|
- spec/app/config/initializers/secret_token.rb
|
129
128
|
- spec/app/config/routes.rb
|
130
129
|
- spec/autoprefixer_spec.rb
|
131
|
-
- spec/compass/config.rb
|
132
|
-
- spec/compass/sass/screen.scss
|
133
|
-
- spec/compass_spec.rb
|
134
130
|
- spec/processor_spec.rb
|
135
131
|
- spec/rails_spec.rb
|
136
132
|
- spec/railtie_spec.rb
|
137
133
|
- spec/spec_helper.rb
|
138
|
-
- sprockets3.gemfile
|
139
|
-
- sprockets4.gemfile
|
140
134
|
- vendor/autoprefixer.js
|
141
135
|
homepage: https://github.com/ai/autoprefixer-rails
|
142
136
|
licenses:
|
143
137
|
- MIT
|
144
|
-
metadata:
|
138
|
+
metadata:
|
139
|
+
changelog_uri: https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md
|
140
|
+
source_code_uri: https://github.com/ai/autoprefixer-rails
|
141
|
+
bug_tracker_uri: https://github.com/ai/autoprefixer-rails/issues
|
145
142
|
post_install_message:
|
146
143
|
rdoc_options: []
|
147
144
|
require_paths:
|
@@ -157,10 +154,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
154
|
- !ruby/object:Gem::Version
|
158
155
|
version: '0'
|
159
156
|
requirements: []
|
160
|
-
|
161
|
-
rubygems_version: 2.7.6
|
157
|
+
rubygems_version: 3.0.3
|
162
158
|
signing_key:
|
163
159
|
specification_version: 4
|
164
|
-
summary: Parse CSS and add vendor prefixes to CSS rules
|
165
|
-
|
160
|
+
summary: Parse CSS and add vendor prefixes to CSS rules usingvalues from the Can I
|
161
|
+
Use website.
|
166
162
|
test_files: []
|
data/mini_racer.gemfile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
gem 'execjs'
|
6
|
-
gem 'rails', '>= 5.0.2'
|
7
|
-
gem 'sprockets', '>= 4.0.0.beta4'
|
8
|
-
|
9
|
-
# Cannot use shared.gemfile, because therubyracer requires an older version
|
10
|
-
# of libv8 than mini_racer
|
11
|
-
gem 'mini_racer', platforms: [:mri, :rbx]
|
12
|
-
|
13
|
-
gem 'racc', platforms: :rbx
|
14
|
-
gem 'rubysl', platforms: :rbx
|
15
|
-
|
16
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :jruby]
|
data/shared.gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Rails.application.config.assets.css_compressor = nil
|
data/spec/compass/config.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
http_path = "/"
|
2
|
-
css_dir = "stylesheets"
|
3
|
-
sass_dir = "sass"
|
4
|
-
images_dir = "images"
|
5
|
-
javascripts_dir = "javascripts"
|
6
|
-
|
7
|
-
sourcemap = true
|
8
|
-
output_style = :compressed
|
9
|
-
sass_options = { cache: false }
|
10
|
-
line_comments = false
|
11
|
-
|
12
|
-
require 'rubygems'
|
13
|
-
require 'bundler'
|
14
|
-
Bundler.require
|
15
|
-
require '../../lib/autoprefixer-rails'
|
16
|
-
|
17
|
-
on_stylesheet_saved do |file|
|
18
|
-
css = File.read(file)
|
19
|
-
map = file + '.map'
|
20
|
-
|
21
|
-
if File.exists? map
|
22
|
-
result = AutoprefixerRails.process(css,
|
23
|
-
browsers: ['chrome 25'],
|
24
|
-
from: file,
|
25
|
-
to: file,
|
26
|
-
map: { prev: File.read(map), inline: false })
|
27
|
-
File.open(file, 'w') { |io| io << result.css }
|
28
|
-
File.open(map, 'w') { |io| io << result.map }
|
29
|
-
else
|
30
|
-
File.open(file, 'w') do |io|
|
31
|
-
io << AutoprefixerRails.process(css, browsers: ['chrome 25'])
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
data/spec/compass_spec.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require_relative 'spec_helper'
|
2
|
-
|
3
|
-
COMPASS_DIR = Pathname(__FILE__).dirname.join('compass')
|
4
|
-
STYLESHEETS_DIR = COMPASS_DIR.join('stylesheets')
|
5
|
-
|
6
|
-
describe 'Compass integration' do
|
7
|
-
after do
|
8
|
-
STYLESHEETS_DIR.rmtree if STYLESHEETS_DIR.exist?
|
9
|
-
end
|
10
|
-
|
11
|
-
it 'works from config.rb' do
|
12
|
-
`cd #{ COMPASS_DIR }; bundle exec compass compile`
|
13
|
-
expect(STYLESHEETS_DIR.join('screen.css').read)
|
14
|
-
.to eq("a{display:-webkit-flex;display:flex}\n\n" +
|
15
|
-
"/*# sourceMappingURL=screen.css.map */")
|
16
|
-
expect(STYLESHEETS_DIR.join('screen.css.map').read)
|
17
|
-
.to eq('{"version":3,"sources":["../sass/screen.scss"],"names":[],' +
|
18
|
-
'"mappings":"AAAA,EACI,qBAAa,AAAb,YAAa,CAAA","file":"screen.css"}')
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
data/sprockets3.gemfile
DELETED