spark_engine 1.2.2 → 1.2.3
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: 5be42eff957ab9c6d48073ec6c80e9ee8a40bbc07037483d51ac8b84a42e2c12
|
4
|
+
data.tar.gz: 7b4a637c9931790c32b76e4463bf39c5585172ea14890f55f684756b27c9b915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb39fa7b1ba2cf28827862cdec3bd4e3e529a0e3f473ccc02fd9e88dea81e4b1e71940cad513401cac4bd2d7c59800f6bedf10262b6c51d0bfaad0e8c9c85333
|
7
|
+
data.tar.gz: ad21f625b95efe5cd6f05c52274081f845521459b453656dc301a09486f3154cd4226443aa7d5e4d97d65a729d5efe7fad8279d2ae223985a1d8b6846d1a02cf
|
@@ -29,11 +29,11 @@ module SparkEngine
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def stylesheet_url(*args)
|
32
|
-
SparkEngine.plugin.stylesheets.urls(args)
|
32
|
+
SparkEngine.plugin.stylesheets.urls(args).uniq
|
33
33
|
end
|
34
34
|
|
35
35
|
def javascript_url(*args)
|
36
|
-
SparkEngine.plugin.javascripts.urls(args)
|
36
|
+
SparkEngine.plugin.javascripts.urls(args).uniq
|
37
37
|
end
|
38
38
|
|
39
39
|
def asset_tags
|
@@ -16,7 +16,7 @@ module SparkEngine
|
|
16
16
|
@autoprefixer_config ||= begin
|
17
17
|
config_path = File.join( SparkEngine.plugin.root, 'config', 'autoprefixer.yml' )
|
18
18
|
if File.exist?( config_path )
|
19
|
-
YAML.load_file( config_path ).
|
19
|
+
YAML.load_file( config_path ).deep_symbolize_keys
|
20
20
|
else
|
21
21
|
{}
|
22
22
|
end
|
@@ -55,8 +55,7 @@ module SparkEngine
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def build_css(file)
|
58
|
-
css = File.read(file)
|
59
|
-
css = AutoprefixerRails.process(css, autoprefixer_config).css if defined? AutoprefixerRails
|
58
|
+
css = prefix( File.read(file) )
|
60
59
|
File.open(destination(file), 'w') { |io| io.write(css) }
|
61
60
|
|
62
61
|
compress(destination(file))
|
@@ -68,14 +67,21 @@ module SparkEngine
|
|
68
67
|
|
69
68
|
Sass.logger.log_level = :error if SparkEngine.production?
|
70
69
|
|
71
|
-
css = Sass.compile_file(file, style: style)
|
72
|
-
css = AutoprefixerRails.process(css, autoprefixer_config).css if defined? AutoprefixerRails
|
70
|
+
css = prefix( Sass.compile_file(file, style: style) )
|
73
71
|
|
74
72
|
File.open(dest, 'w') { |io| io.write(css) }
|
75
73
|
|
76
74
|
compress(dest)
|
77
75
|
end
|
78
76
|
|
77
|
+
def prefix_css(css)
|
78
|
+
if defined? AutoprefixerRails
|
79
|
+
AutoprefixerRails.process(css, autoprefixer_config).css
|
80
|
+
else
|
81
|
+
css
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
79
85
|
def data
|
80
86
|
if @data
|
81
87
|
@data
|
data/lib/spark_engine/version.rb
CHANGED
data/spark_engine.gemspec
CHANGED
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_runtime_dependency 'sass', '~> 3.4'
|
21
21
|
spec.add_runtime_dependency 'esvg', '~> 4.2'
|
22
|
-
spec.add_runtime_dependency 'listen', '~> 3.0.0'
|
23
22
|
spec.add_runtime_dependency 'block_helpers', '~> 0.3'
|
24
23
|
spec.add_runtime_dependency 'colorize', '~> 0.8'
|
25
24
|
spec.add_runtime_dependency 'bundler', '~> 1.10'
|
26
|
-
spec.add_runtime_dependency 'autoprefixer-rails', '>=
|
27
|
-
spec.add_runtime_dependency 'rails', '>= 5.0', '< 6'
|
25
|
+
spec.add_runtime_dependency 'autoprefixer-rails', '>= 8.0', '< 10'
|
28
26
|
|
27
|
+
spec.add_development_dependency 'rails', '>= 5.0', '< 6'
|
28
|
+
spec.add_development_dependency 'listen', '~> 3.0.0'
|
29
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
30
30
|
spec.add_development_dependency 'pry-byebug'
|
31
31
|
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.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.2'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: listen
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0.0
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: block_helpers
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +86,20 @@ dependencies:
|
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '8.0'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '10'
|
104
93
|
type: :runtime
|
105
94
|
prerelease: false
|
106
95
|
version_requirements: !ruby/object:Gem::Requirement
|
107
96
|
requirements:
|
108
97
|
- - ">="
|
109
98
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
99
|
+
version: '8.0'
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '10'
|
111
103
|
- !ruby/object:Gem::Dependency
|
112
104
|
name: rails
|
113
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,7 +110,7 @@ dependencies:
|
|
118
110
|
- - "<"
|
119
111
|
- !ruby/object:Gem::Version
|
120
112
|
version: '6'
|
121
|
-
type: :
|
113
|
+
type: :development
|
122
114
|
prerelease: false
|
123
115
|
version_requirements: !ruby/object:Gem::Requirement
|
124
116
|
requirements:
|
@@ -128,6 +120,20 @@ dependencies:
|
|
128
120
|
- - "<"
|
129
121
|
- !ruby/object:Gem::Version
|
130
122
|
version: '6'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: listen
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 3.0.0
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 3.0.0
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
138
|
name: rake
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,6 +210,7 @@ files:
|
|
204
210
|
- lib/spark_engine/scaffold/gem/site/app/views/docs/index.html.erb
|
205
211
|
- lib/spark_engine/scaffold/gem/site/app/views/layouts/application.html.erb
|
206
212
|
- lib/spark_engine/scaffold/gem/site/config/application.rb
|
213
|
+
- lib/spark_engine/scaffold/gem/site/config/autoprefixer.yml
|
207
214
|
- lib/spark_engine/scaffold/gem/site/config/environments/development.rb
|
208
215
|
- lib/spark_engine/scaffold/gem/site/config/routes.rb
|
209
216
|
- lib/spark_engine/version.rb
|