spark_engine 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/spark +5 -0
- data/lib/spark_engine/plugin.rb +4 -0
- data/lib/spark_engine/plugin/assets/asset.rb +2 -2
- data/lib/spark_engine/plugin/assets/javascripts.rb +2 -1
- data/lib/spark_engine/scaffold.rb +1 -1
- data/lib/spark_engine/version.rb +1 -1
- data/spark_engine.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee32f3241fdc97bbb263c4f574e5325e7456e44fd03fcea3e589d79254429567
|
4
|
+
data.tar.gz: c2d9648826ac77bab4f106ede5ce7bd5582a9f72e44282505a757569ccc1e0cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f22de549d796f553fa1364cf75b9cff0b0043aa7c466ce94bc71baed5cee4f529b463355cb4e8f7797988c7e711bde1bb3f8afaca7ffa87f5d61c603c0259d
|
7
|
+
data.tar.gz: ee47bba8d8b8b80ab857b425ce7ab471f33edbd9aec708e15f59b6bcfa1ae4e80c77a341e66d0c62d4eb0722486c307e91c48f31df0cbac5d49d7859334dda4c
|
data/bin/spark
CHANGED
@@ -100,6 +100,11 @@ OptionParser.new do |opts|
|
|
100
100
|
opts.on("-C", "--clean", "Remove cache files before build.") do |val|
|
101
101
|
options[:clean] = true
|
102
102
|
end
|
103
|
+
|
104
|
+
opts.on("-d", "--debug", "Print debug messages") do |val|
|
105
|
+
ENV['SPARK_DEBUG'] = 'true'
|
106
|
+
end
|
107
|
+
|
103
108
|
end
|
104
109
|
|
105
110
|
if %w(s server).include? options[:command]
|
data/lib/spark_engine/plugin.rb
CHANGED
@@ -53,11 +53,11 @@ module SparkEngine
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def log_success( msg )
|
56
|
-
STDOUT.
|
56
|
+
STDOUT.print msg.to_s.colorize(:green)
|
57
57
|
end
|
58
58
|
|
59
59
|
def log_error( msg )
|
60
|
-
STDERR.
|
60
|
+
STDERR.print msg.to_s.colorize(:red)
|
61
61
|
end
|
62
62
|
|
63
63
|
# Determine if an NPM module is installed by checking paths with `npm bin`
|
@@ -58,6 +58,7 @@ module SparkEngine
|
|
58
58
|
log_error "JS BUILD FAILED: browserifyinc NPM module not found.\n" << "Please add browserifyinc to your package.json and run `npm install`"
|
59
59
|
abort
|
60
60
|
end
|
61
|
+
puts ""
|
61
62
|
end
|
62
63
|
|
63
64
|
def npm_path( cmd )
|
@@ -74,7 +75,7 @@ module SparkEngine
|
|
74
75
|
else
|
75
76
|
npm_path "browserify #{file} #{options} > #{dest}"
|
76
77
|
end
|
77
|
-
puts "Running: #{cmd}"
|
78
|
+
puts "Running: #{cmd}" if plugin.debug?
|
78
79
|
|
79
80
|
cmd
|
80
81
|
|
@@ -202,7 +202,7 @@ module SparkEngine
|
|
202
202
|
base: path,
|
203
203
|
component: path+'_component.rb',
|
204
204
|
template: File.join(path, "_#{name}.html.erb"),
|
205
|
-
sass: File.join(
|
205
|
+
sass: File.join(SparkEngine.plugin.paths[:stylesheets], "components", "#{options[:component].sub(name, '_'+name)}.scss"),
|
206
206
|
js: File.join(SparkEngine.plugin.paths[:javascripts], "components", "#{options[:component].sub(name, '_'+name)}.js")
|
207
207
|
}
|
208
208
|
|
data/lib/spark_engine/version.rb
CHANGED
data/spark_engine.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'esvg', '~> 4.
|
20
|
+
spec.add_runtime_dependency 'esvg', '~> 4.6'
|
21
21
|
spec.add_runtime_dependency 'colorize', '~> 0.8'
|
22
22
|
spec.add_runtime_dependency 'bundler', '>= 1.10'
|
23
23
|
spec.add_runtime_dependency 'autoprefixer-rails', '>= 8.0', '< 10'
|
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.12
|
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-
|
11
|
+
date: 2019-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: esvg
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colorize
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|