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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee32f3241fdc97bbb263c4f574e5325e7456e44fd03fcea3e589d79254429567
4
- data.tar.gz: c2d9648826ac77bab4f106ede5ce7bd5582a9f72e44282505a757569ccc1e0cf
3
+ metadata.gz: 8d57dc7a7b86f381b4cb7e6396450bc8a574a51a3b1b8002190cff41f86c8b9d
4
+ data.tar.gz: f648bf35916f8c5ca494ac555e3881ddceb5c63d470e44c7a2640d6de8b8b418
5
5
  SHA512:
6
- metadata.gz: 12f22de549d796f553fa1364cf75b9cff0b0043aa7c466ce94bc71baed5cee4f529b463355cb4e8f7797988c7e711bde1bb3f8afaca7ffa87f5d61c603c0259d
7
- data.tar.gz: ee47bba8d8b8b80ab857b425ce7ab471f33edbd9aec708e15f59b6bcfa1ae4e80c77a341e66d0c62d4eb0722486c307e91c48f31df0cbac5d49d7859334dda4c
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("-t", "--skip-template", "Skip html template for component") do
52
- options[:template] = false
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("-s", "--skip-sass", "Skip Sass for component") do
56
- options[:sass] = false
57
+ opts.on("-t", "--add-template", "Add html template for component") do
58
+ options[:template] = true
57
59
  end
58
60
 
59
- opts.on("-j", "--skip-js", "Skip javascript for component") do
60
- options[:js] = false
61
+ opts.on("-c", "--add-css", "Add stylesheets for component") do
62
+ options[:sass] = true
61
63
  end
62
64
 
63
- opts.on("-c", "--class ClassName", String, "Component extends a classname (default: Components::Component)") do |val|
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
 
@@ -66,7 +66,7 @@ module SparkEngine
66
66
  FileUtils.rm_rf('public')
67
67
  dispatch(:build)
68
68
  system "bundle exec rake build"
69
- system "git add Gemfile*"
69
+ system "git add Gemfile* lib"
70
70
  end
71
71
 
72
72
  def gem_install
@@ -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] || 'Components::Component' }\nend}
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]
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.12"
2
+ VERSION = "1.2.13"
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.12
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-10 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: esvg