autoprefixer-rails 5.1.3 → 5.1.3.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 +3 -0
- data/Gemfile +2 -0
- data/lib/autoprefixer-rails/railtie.rb +14 -6
- data/lib/autoprefixer-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c2a75b850fee32edb481670550574834e587462
|
4
|
+
data.tar.gz: 26f151f28e3be510839af2d290c5cff33c01eea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40deb9516a021d9c8d2ac762f8d52c5ed3745392accdb32347e5d2fe51e2e39082c8754d9e90d2833de15f0165698fcd5e54ff9d75e21ac57e7e9c5cb7782cb9
|
7
|
+
data.tar.gz: b1af2a6d89295472b3211324dce5e7c71f1625283bb0e682e38e7a29b54e7ea4d0a8fdbd8d4b297a070e1904eab65d2310fd305dda8caebaea43f90086ba1113
|
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
1
3
|
begin
|
2
4
|
require 'sprockets/railtie'
|
3
5
|
|
@@ -5,17 +7,23 @@ begin
|
|
5
7
|
class Railtie < ::Rails::Railtie
|
6
8
|
rake_tasks do |app|
|
7
9
|
require 'rake/autoprefixer_tasks'
|
8
|
-
Rake::AutoprefixerTasks.new( config(app)[0] )
|
10
|
+
Rake::AutoprefixerTasks.new( config(app.root)[0] )
|
9
11
|
end
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
+
if config.respond_to?(:assets)
|
14
|
+
config.assets.configure do |env|
|
15
|
+
AutoprefixerRails.install(env, *config(env.root))
|
16
|
+
end
|
17
|
+
else
|
18
|
+
initializer :setup_autoprefixer, group: :all do |app|
|
19
|
+
AutoprefixerRails.install(app.assets, *config(app.root))
|
20
|
+
end
|
13
21
|
end
|
14
22
|
|
15
23
|
# Read browsers requirements from application config
|
16
|
-
def config(
|
17
|
-
file =
|
18
|
-
params =
|
24
|
+
def config(root)
|
25
|
+
file = File.join(root, 'config/autoprefixer.yml')
|
26
|
+
params = File.exist?(file) ? ::YAML.load_file(file).symbolize_keys : { }
|
19
27
|
|
20
28
|
opts = { }
|
21
29
|
opts[:safe] = true if params.delete(:safe)
|
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: 5.1.3
|
4
|
+
version: 5.1.3.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: 2015-02-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|