spark_engine 1.0.3 → 1.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 353877f628feb00aa4efc7ab3e647a7f675d6b1017638bd9c146220c918ea749
|
4
|
+
data.tar.gz: d0996976883a9d7395cf776508121ad2895d26db3c40cec6cd563106f12d26fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0730557a81f965575ae3eba93598b9a2d84389a272df63c9186b95cd433dc15b1492193a65ee2bf84bd8b65952317393008f97fa56bd065dfd3aad9b73b6979b
|
7
|
+
data.tar.gz: a09c64421cd98d49c2b89e4837abddf8e436372a76dccb6873cbdec5e530045cfa979718a92fd752dc15ccb7393c5b956f58095cfd14b5197767e6aa498d3858
|
@@ -12,6 +12,17 @@ module SparkEngine
|
|
12
12
|
"*[ca]ss"
|
13
13
|
end
|
14
14
|
|
15
|
+
def autoprefixer_config
|
16
|
+
@autoprefixer_config ||= begin
|
17
|
+
config_path = File.join( SparkEngine.plugin.root, 'config', 'autoprefixer.yml' )
|
18
|
+
if File.exist?( config_path )
|
19
|
+
YAML.load_file( config_path ).symbolize_keys
|
20
|
+
else
|
21
|
+
{}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
15
26
|
def asset_tag(*args)
|
16
27
|
stylesheet_link_tag(args)
|
17
28
|
end
|
@@ -45,7 +56,7 @@ module SparkEngine
|
|
45
56
|
|
46
57
|
def build_css(file)
|
47
58
|
css = File.read(file)
|
48
|
-
css = AutoprefixerRails.process().css if defined? AutoprefixerRails
|
59
|
+
css = AutoprefixerRails.process(css, autoprefixer_config).css if defined? AutoprefixerRails
|
49
60
|
File.open(destination(file), 'w') { |io| io.write(css) }
|
50
61
|
|
51
62
|
compress(destination(file))
|
@@ -58,7 +69,7 @@ module SparkEngine
|
|
58
69
|
Sass.logger.log_level = :error if SparkEngine.production?
|
59
70
|
|
60
71
|
css = Sass.compile_file(file, style: style)
|
61
|
-
css = AutoprefixerRails.process(css).css if defined? AutoprefixerRails
|
72
|
+
css = AutoprefixerRails.process(css, autoprefixer_config).css if defined? AutoprefixerRails
|
62
73
|
|
63
74
|
File.open(dest, 'w') { |io| io.write(css) }
|
64
75
|
|
data/lib/spark_engine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spark_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -195,6 +195,7 @@ files:
|
|
195
195
|
- lib/spark_engine/scaffold/gem/app/assets/svgs/namespace/.keep
|
196
196
|
- lib/spark_engine/scaffold/gem/app/helpers/namespace/application_helper.rb
|
197
197
|
- lib/spark_engine/scaffold/gem/app/views/layouts/namespace/default.html.erb
|
198
|
+
- lib/spark_engine/scaffold/gem/config/autoprefixer.yml
|
198
199
|
- lib/spark_engine/scaffold/gem/gem.gemspec
|
199
200
|
- lib/spark_engine/scaffold/gem/lib/gem.rb
|
200
201
|
- lib/spark_engine/scaffold/gem/site/app/assets/javascripts/application.js
|