autoprefixer-rails 9.5.0 → 9.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -0
- data/README.md +8 -0
- data/autoprefixer-rails.gemspec +0 -1
- data/lib/autoprefixer-rails/version.rb +1 -1
- data/spec/app/config/application.rb +2 -0
- data/spec/rails_spec.rb +1 -11
- data/vendor/autoprefixer.js +10196 -9825
- metadata +3 -24
- data/spec/app/config/initializers/compress.rb +0 -1
- data/spec/compass/.sass-cache/9d2b36f9e9dcbcd2558ccf9e4f73aa1cad8bcbb4/screen.scssc +0 -0
- data/spec/compass/config.rb +0 -27
- data/spec/compass/sass/screen.scss +0 -3
- data/spec/compass_spec.rb +0 -20
- 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: 9.5.
|
4
|
+
version: 9.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: compass
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rspec-rails
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,19 +123,13 @@ files:
|
|
137
123
|
- spec/app/config/boot.rb
|
138
124
|
- spec/app/config/environment.rb
|
139
125
|
- spec/app/config/environments/test.rb
|
140
|
-
- spec/app/config/initializers/compress.rb
|
141
126
|
- spec/app/config/initializers/secret_token.rb
|
142
127
|
- spec/app/config/routes.rb
|
143
128
|
- spec/autoprefixer_spec.rb
|
144
|
-
- spec/compass/.sass-cache/9d2b36f9e9dcbcd2558ccf9e4f73aa1cad8bcbb4/screen.scssc
|
145
|
-
- spec/compass/config.rb
|
146
|
-
- spec/compass/sass/screen.scss
|
147
|
-
- spec/compass_spec.rb
|
148
129
|
- spec/processor_spec.rb
|
149
130
|
- spec/rails_spec.rb
|
150
131
|
- spec/railtie_spec.rb
|
151
132
|
- spec/spec_helper.rb
|
152
|
-
- sprockets4.gemfile
|
153
133
|
- vendor/autoprefixer.js
|
154
134
|
homepage: https://github.com/ai/autoprefixer-rails
|
155
135
|
licenses:
|
@@ -173,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
153
|
- !ruby/object:Gem::Version
|
174
154
|
version: '0'
|
175
155
|
requirements: []
|
176
|
-
|
177
|
-
rubygems_version: 2.7.6.2
|
156
|
+
rubygems_version: 3.0.3
|
178
157
|
signing_key:
|
179
158
|
specification_version: 4
|
180
159
|
summary: Parse CSS and add vendor prefixes to CSS rules usingvalues from the Can I
|
@@ -1 +0,0 @@
|
|
1
|
-
Rails.application.config.assets.css_compressor = nil
|
Binary file
|
data/spec/compass/config.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
self.sourcemap = true
|
2
|
-
self.output_style = :compressed
|
3
|
-
self.sass_options = {cache: false}
|
4
|
-
|
5
|
-
require "rubygems"
|
6
|
-
require "bundler"
|
7
|
-
Bundler.require
|
8
|
-
require "../../lib/autoprefixer-rails"
|
9
|
-
|
10
|
-
on_stylesheet_saved do |file|
|
11
|
-
css = File.read(file)
|
12
|
-
map = file + ".map"
|
13
|
-
|
14
|
-
if File.exist? map
|
15
|
-
result = AutoprefixerRails.process(css,
|
16
|
-
browsers: ["chrome 25"],
|
17
|
-
from: file,
|
18
|
-
to: file,
|
19
|
-
map: {prev: File.read(map), inline: false})
|
20
|
-
File.open(file, "w") { |io| io << result.css }
|
21
|
-
File.open(map, "w") { |io| io << result.map }
|
22
|
-
else
|
23
|
-
File.open(file, "w") do |io|
|
24
|
-
io << AutoprefixerRails.process(css, browsers: ["chrome 25"])
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/spec/compass_spec.rb
DELETED
@@ -1,20 +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,oBAAS,CAAT,YAAa","file":"screen.css"}')
|
19
|
-
end
|
20
|
-
end
|