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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e50ce79a72fee1cd0dba3e7b7f0119cb705a26c618a76561d73c417ac81619e0
4
- data.tar.gz: b24647e777549411af4f2eae600cf25d70942233271826cc8867c0f4995fbabf
3
+ metadata.gz: 16e59e67fa1f14d7af3fd5e0368faecaddcfc4324adb3149363d1a31f3b93c19
4
+ data.tar.gz: 1d0340d272e0d23a551060ed18536af0e1f7379e4be18b4874abbddbe283e718
5
5
  SHA512:
6
- metadata.gz: 0c1061970c120d8e3f5bc76b0e559f30d480e85b56bbad898e5bc4f58686ef2471bfb398707dc4eaf7518d45c64b866319bb8a1447fb0a4d765df72ab5fc2d4e
7
- data.tar.gz: 021e1af17823e0d8f08a566158649d958e9cf6710ae4d77d04428c1d5411a863fe6b8acc6a9f79646cf876c37bb48ec86558d51f455698ef6c1e768fbf511964
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] || 'SparkComponents::Component' }\nend}
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]
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.14"
2
+ VERSION = "1.2.15"
3
3
  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.14
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-07-08 00:00:00.000000000 Z
11
+ date: 2019-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: esvg