spark_engine 1.2.11 → 1.2.12

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: b204f632e94d9317bb8aaf8ad053e2c8bf64e688c101580f65baf52fd9bc05a1
4
- data.tar.gz: 885a54ca22fbab517def739eea267701d78ef9dab4152f458ab37ef5b788f263
3
+ metadata.gz: ee32f3241fdc97bbb263c4f574e5325e7456e44fd03fcea3e589d79254429567
4
+ data.tar.gz: c2d9648826ac77bab4f106ede5ce7bd5582a9f72e44282505a757569ccc1e0cf
5
5
  SHA512:
6
- metadata.gz: 288f62b4bd028afaf32afe5875766d3816efad36835e32d99601b9eb3330d344b2fe23a6da569414b0c8b289ff0cca8ef066dc7a589dc3b416c3435b23185f10
7
- data.tar.gz: a8e4b4bd12f58cdcfcf85e671c9a5b66f3820e36b12d3f87d51a685914be00a305b4d5ac724f5d272a94398c113cf0485e5212f9ba53e9dd6dfb86c013b7ae50
6
+ metadata.gz: 12f22de549d796f553fa1364cf75b9cff0b0043aa7c466ce94bc71baed5cee4f529b463355cb4e8f7797988c7e711bde1bb3f8afaca7ffa87f5d61c603c0259d
7
+ data.tar.gz: ee47bba8d8b8b80ab857b425ce7ab471f33edbd9aec708e15f59b6bcfa1ae4e80c77a341e66d0c62d4eb0722486c307e91c48f31df0cbac5d49d7859334dda4c
data/bin/spark CHANGED
@@ -100,6 +100,11 @@ OptionParser.new do |opts|
100
100
  opts.on("-C", "--clean", "Remove cache files before build.") do |val|
101
101
  options[:clean] = true
102
102
  end
103
+
104
+ opts.on("-d", "--debug", "Print debug messages") do |val|
105
+ ENV['SPARK_DEBUG'] = 'true'
106
+ end
107
+
103
108
  end
104
109
 
105
110
  if %w(s server).include? options[:command]
@@ -116,6 +116,10 @@ module SparkEngine
116
116
  end
117
117
  end
118
118
 
119
+ def debug?
120
+ ENV['SPARK_DEBUG']
121
+ end
122
+
119
123
  def watch(options)
120
124
  assets(options).map(&:watch)
121
125
  end
@@ -53,11 +53,11 @@ module SparkEngine
53
53
  end
54
54
 
55
55
  def log_success( msg )
56
- STDOUT.puts msg.to_s.colorize(:green)
56
+ STDOUT.print msg.to_s.colorize(:green)
57
57
  end
58
58
 
59
59
  def log_error( msg )
60
- STDERR.puts msg.to_s.colorize(:red)
60
+ STDERR.print msg.to_s.colorize(:red)
61
61
  end
62
62
 
63
63
  # Determine if an NPM module is installed by checking paths with `npm bin`
@@ -58,6 +58,7 @@ module SparkEngine
58
58
  log_error "JS BUILD FAILED: browserifyinc NPM module not found.\n" << "Please add browserifyinc to your package.json and run `npm install`"
59
59
  abort
60
60
  end
61
+ puts ""
61
62
  end
62
63
 
63
64
  def npm_path( cmd )
@@ -74,7 +75,7 @@ module SparkEngine
74
75
  else
75
76
  npm_path "browserify #{file} #{options} > #{dest}"
76
77
  end
77
- puts "Running: #{cmd}"
78
+ puts "Running: #{cmd}" if plugin.debug?
78
79
 
79
80
  cmd
80
81
 
@@ -202,7 +202,7 @@ module SparkEngine
202
202
  base: path,
203
203
  component: path+'_component.rb',
204
204
  template: File.join(path, "_#{name}.html.erb"),
205
- sass: File.join(path, "_#{name}.scss"),
205
+ sass: File.join(SparkEngine.plugin.paths[:stylesheets], "components", "#{options[:component].sub(name, '_'+name)}.scss"),
206
206
  js: File.join(SparkEngine.plugin.paths[:javascripts], "components", "#{options[:component].sub(name, '_'+name)}.js")
207
207
  }
208
208
 
@@ -1,3 +1,3 @@
1
1
  module SparkEngine
2
- VERSION = "1.2.11"
2
+ VERSION = "1.2.12"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_runtime_dependency 'esvg', '~> 4.2'
20
+ spec.add_runtime_dependency 'esvg', '~> 4.6'
21
21
  spec.add_runtime_dependency 'colorize', '~> 0.8'
22
22
  spec.add_runtime_dependency 'bundler', '>= 1.10'
23
23
  spec.add_runtime_dependency 'autoprefixer-rails', '>= 8.0', '< 10'
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.11
4
+ version: 1.2.12
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-04-18 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: esvg
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '4.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
26
+ version: '4.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement