spark_engine 1.2.14 → 1.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spark_engine/scaffold.rb +5 -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: 16e59e67fa1f14d7af3fd5e0368faecaddcfc4324adb3149363d1a31f3b93c19
|
4
|
+
data.tar.gz: 1d0340d272e0d23a551060ed18536af0e1f7379e4be18b4874abbddbe283e718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76498bf814e7d6e2ef141b2266eb8b906255d2a8643930e7ae0d4442ada84d1a3401d4d0902556eab635aff5fc9a1f4e85e41e6465cd264b35df8c5901697668
|
7
|
+
data.tar.gz: 10a22938d59b063e9d29a5c2677ccf6b4d6bb5b8ee1a71ffedf798c8d538a22b06a54fa9a9a548b5fabc3958066dd85533320f6b4526997421ec83d5bb177409
|
@@ -206,8 +206,12 @@ module SparkEngine
|
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
209
|
+
# Convert "foo/bar" || "Foo::Bar" -> "Foo::BarComponent"
|
210
|
+
options[:class] = options[:class] ? "#{modulize(options[:class])}" : "SparkComponents::Component"
|
211
|
+
options[:class] << "Component" unless options[:class].end_with? "Component"
|
212
|
+
|
209
213
|
# Write component class
|
210
|
-
component_content = %Q{class #{modulize(options[:component])}Component < #{options[:class]
|
214
|
+
component_content = %Q{class #{modulize(options[:component])}Component < #{options[:class] }\nend}
|
211
215
|
write_file(paths[:component], component_content, options)
|
212
216
|
|
213
217
|
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.15
|
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-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: esvg
|