spark_engine 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/spark +13 -7
- data/lib/spark_engine/command.rb +1 -1
- data/lib/spark_engine/scaffold.rb +1 -1
- 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: 8d57dc7a7b86f381b4cb7e6396450bc8a574a51a3b1b8002190cff41f86c8b9d
|
4
|
+
data.tar.gz: f648bf35916f8c5ca494ac555e3881ddceb5c63d470e44c7a2640d6de8b8b418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824db6f737dd9ffb97343827e5d8ce973a82d135d225390132a71bb845022e6706ba00e0165565a08860cfa6939ac19d672fed9d4c81a0aafd58bfeec26d6b68
|
7
|
+
data.tar.gz: 6fe639c1ac0c39fd44f096336c115f0281c4b74d873d8d02b2a8046b172f96e3458c4da41196bc5b50c01fdea028c1baa8b46a2d7420c53c4c7f6f51139a749d
|
data/bin/spark
CHANGED
@@ -48,19 +48,25 @@ OptionParser.new do |opts|
|
|
48
48
|
options[:force] = true
|
49
49
|
end
|
50
50
|
|
51
|
-
opts.on("-
|
52
|
-
options[:template] =
|
51
|
+
opts.on("-a", "--add-all", "Add all component scaffolding (js,css,template)") do
|
52
|
+
options[:template] = true
|
53
|
+
options[:js] = true
|
54
|
+
options[:css] = true
|
53
55
|
end
|
54
56
|
|
55
|
-
opts.on("-
|
56
|
-
options[:
|
57
|
+
opts.on("-t", "--add-template", "Add html template for component") do
|
58
|
+
options[:template] = true
|
57
59
|
end
|
58
60
|
|
59
|
-
opts.on("-
|
60
|
-
options[:
|
61
|
+
opts.on("-c", "--add-css", "Add stylesheets for component") do
|
62
|
+
options[:sass] = true
|
61
63
|
end
|
62
64
|
|
63
|
-
opts.on("-
|
65
|
+
opts.on("-j", "--add-js", "Add javascript for component") do
|
66
|
+
options[:js] = true
|
67
|
+
end
|
68
|
+
|
69
|
+
opts.on("-e", "--extend ClassName", String, "Component extends a classname (default: SparkComponents::Component)") do |val|
|
64
70
|
options[:class] = val
|
65
71
|
end
|
66
72
|
|
data/lib/spark_engine/command.rb
CHANGED
@@ -213,7 +213,7 @@ module SparkEngine
|
|
213
213
|
end
|
214
214
|
|
215
215
|
# Write component class
|
216
|
-
component_content = %Q{class #{modulize(options[:component])}Component < #{options[:class] || '
|
216
|
+
component_content = %Q{class #{modulize(options[:component])}Component < #{options[:class] || 'SparkComponents::Component' }\nend}
|
217
217
|
write_file(paths[:component], component_content, options)
|
218
218
|
|
219
219
|
write_file(paths[:template], '', options) if options[:template]
|
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.13
|
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-05-
|
11
|
+
date: 2019-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: esvg
|