spark_engine 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7557689cf486b1692155cd6263c3c11ab70ff3c3a3e0a008a08f5969bebdf34
|
4
|
+
data.tar.gz: 93088a86f2abe6b96841070cc3645c8858ba5ba8a940a697e2bb312db1ce3726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1951941c433f9ee1efdcda3c316f649d98e0e2c4b69cd85db7bc47e94f8d4f8d9b0c76afa2fa2d2f348c3640a8ccff0862b33df8988f0f5cb199c39bde011f85
|
7
|
+
data.tar.gz: 26ba3d5d75644c35b9ee9732a8bbbba9c09045e304b22295803e8a9874dfb0d4c80ffe56acdcabc8c86c0c95fb2ec8c61870334b7cd6c54cfc38f2103b19d113
|
@@ -35,7 +35,11 @@ module SparkEngine
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def local_path(file)
|
38
|
-
destination(file).sub(plugin.root+'/','')
|
38
|
+
destination(file).sub(plugin.root + '/', '')
|
39
|
+
end
|
40
|
+
|
41
|
+
def pathname(file)
|
42
|
+
destination(file).sub(plugin.destination, '')
|
39
43
|
end
|
40
44
|
|
41
45
|
def build_success(file)
|
@@ -65,14 +65,15 @@ module SparkEngine
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def build_command(file)
|
68
|
-
dest = destination(file)
|
69
|
-
|
68
|
+
dest = destination(file)
|
69
|
+
basename = pathname(file)
|
70
|
+
options = "--standalone #{plugin.name} -d"
|
70
71
|
|
71
72
|
cmd = if SparkEngine.production?
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
npm_path %Q{browserify #{file} #{options} | #{npm_path('uglifyjs')} --output #{dest} --source-map "url='#{basename}.map',filename='#{basename}',content='inline',includeSources='true'"}
|
74
|
+
else
|
75
|
+
npm_path "browserify #{file} #{options} > #{dest}"
|
76
|
+
end
|
76
77
|
puts "Running: #{cmd}"
|
77
78
|
|
78
79
|
cmd
|
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.8
|
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-01-
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|