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: 85484b63659bffb334c177eea2ed17a69f59816cbddeb5af36ab731690cce294
4
- data.tar.gz: 1bea33c6abeb70f6b0a9be02b8c3eb0e8f5f5688d43def914880ebd327038b2c
3
+ metadata.gz: 353877f628feb00aa4efc7ab3e647a7f675d6b1017638bd9c146220c918ea749
4
+ data.tar.gz: d0996976883a9d7395cf776508121ad2895d26db3c40cec6cd563106f12d26fb
5
5
  SHA512:
6
- metadata.gz: 8032e5c1bf8037dc27412d9558922e0c94640d8a6fb0b6eedebaf8a2025a16c815d73bb2e6fbc42a6b4e4149ccc977dc730d9f10c3aa4dd1f49af22139fa94eb
7
- data.tar.gz: 80ec5bac2c7d8b77b528e5c7eff990d13ae3f27867fb825d459bb597dd452c9a8fb07b55f45215e494afc53fe38aa748b7ff8d555cc44f86d388e0e1db0530aa
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
 
@@ -0,0 +1,4 @@
1
+ browsers:
2
+ - "> 1%"
3
+ - "last 2 versions"
4
+ - "IE > 10"
@@ -1,3 +1,4 @@
1
1
  Rails.application.routes.draw do
2
+ get '*path', to: 'docs#show'
2
3
  resources :docs, param: :page, path: ''
3
4
  end
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
3
3
  end
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.3
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-16 00:00:00.000000000 Z
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