spark_engine 1.2.13 → 1.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/spark +1 -1
- data/lib/spark_engine/command.rb +5 -2
- data/lib/spark_engine/command/npm.rb +1 -1
- data/lib/spark_engine/plugin/assets/javascripts.rb +1 -2
- data/lib/spark_engine/scaffold.rb +2 -8
- data/lib/spark_engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e50ce79a72fee1cd0dba3e7b7f0119cb705a26c618a76561d73c417ac81619e0
|
4
|
+
data.tar.gz: b24647e777549411af4f2eae600cf25d70942233271826cc8867c0f4995fbabf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1061970c120d8e3f5bc76b0e559f30d480e85b56bbad898e5bc4f58686ef2471bfb398707dc4eaf7518d45c64b866319bb8a1447fb0a4d765df72ab5fc2d4e
|
7
|
+
data.tar.gz: 021e1af17823e0d8f08a566158649d958e9cf6710ae4d77d04428c1d5411a863fe6b8acc6a9f79646cf876c37bb48ec86558d51f455698ef6c1e768fbf511964
|
data/bin/spark
CHANGED
data/lib/spark_engine/command.rb
CHANGED
@@ -11,6 +11,10 @@ module SparkEngine
|
|
11
11
|
return
|
12
12
|
end
|
13
13
|
|
14
|
+
if options[:clean] || SparkEngine.production?
|
15
|
+
from_root { clean }
|
16
|
+
end
|
17
|
+
|
14
18
|
case options[:command]
|
15
19
|
when 'new', 'n'
|
16
20
|
require "spark_engine/scaffold"
|
@@ -66,7 +70,7 @@ module SparkEngine
|
|
66
70
|
FileUtils.rm_rf('public')
|
67
71
|
dispatch(:build)
|
68
72
|
system "bundle exec rake build"
|
69
|
-
system "git add Gemfile
|
73
|
+
system "git add Gemfile.lock lib"
|
70
74
|
end
|
71
75
|
|
72
76
|
def gem_install
|
@@ -129,7 +133,6 @@ module SparkEngine
|
|
129
133
|
def build(options={})
|
130
134
|
puts SparkEngine.production? ? 'Building for production…' : 'Building…'
|
131
135
|
require_rails
|
132
|
-
clean if SparkEngine.production?
|
133
136
|
SparkEngine.plugin.build(options)
|
134
137
|
end
|
135
138
|
|
@@ -61,7 +61,7 @@ module SparkEngine
|
|
61
61
|
puts ""
|
62
62
|
end
|
63
63
|
|
64
|
-
def npm_path(
|
64
|
+
def npm_path(cmd)
|
65
65
|
File.join SparkEngine.gem_path, "node_modules/.bin", cmd
|
66
66
|
end
|
67
67
|
|
@@ -78,7 +78,6 @@ module SparkEngine
|
|
78
78
|
puts "Running: #{cmd}" if plugin.debug?
|
79
79
|
|
80
80
|
cmd
|
81
|
-
|
82
81
|
end
|
83
82
|
end
|
84
83
|
end
|
@@ -189,12 +189,6 @@ module SparkEngine
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def new_component(options={})
|
192
|
-
options = {
|
193
|
-
sass: true,
|
194
|
-
template: true,
|
195
|
-
js: true
|
196
|
-
}.merge(options)
|
197
|
-
|
198
192
|
path = File.join(SparkEngine.plugin.paths[:components], options[:component])
|
199
193
|
name = options[:component].split('/').last
|
200
194
|
|
@@ -202,7 +196,7 @@ module SparkEngine
|
|
202
196
|
base: path,
|
203
197
|
component: path+'_component.rb',
|
204
198
|
template: File.join(path, "_#{name}.html.erb"),
|
205
|
-
|
199
|
+
css: File.join(SparkEngine.plugin.paths[:stylesheets], "components", "#{options[:component].sub(name, '_'+name)}.scss"),
|
206
200
|
js: File.join(SparkEngine.plugin.paths[:javascripts], "components", "#{options[:component].sub(name, '_'+name)}.js")
|
207
201
|
}
|
208
202
|
|
@@ -217,7 +211,7 @@ module SparkEngine
|
|
217
211
|
write_file(paths[:component], component_content, options)
|
218
212
|
|
219
213
|
write_file(paths[:template], '', options) if options[:template]
|
220
|
-
write_file(paths[:
|
214
|
+
write_file(paths[:css], '', options) if options[:css]
|
221
215
|
write_file(paths[:js], '', options) if options[:js]
|
222
216
|
end
|
223
217
|
|
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.2.
|
4
|
+
version: 1.2.14
|
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-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: esvg
|