roku_builder 4.22.3 → 4.22.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: '095541972d5f6044a4ce8f7764a2001fdc20e0095fc00823a59b046c2543a6cc'
|
|
4
|
+
data.tar.gz: 04fe333f5912595ac824c18e4af9fb0d4d1e00224b87473be666a897cbc0b1a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eb9b8667f9eb6ab5568955d2033a859c34ed6b9da1a5291db531eceb72d6404d39db09fef702f5b50d5871d5e9838f6b69278ab0dd3a9f0507d1f794f6a73ed
|
|
7
|
+
data.tar.gz: a20fee6d540ad890bcb224370f303ec3b0571e01c241b277e4d5965ebe4297f3505e662ed6a79f5a615d60652921b239289cd5b4a2885b595904034698114ad4
|
|
@@ -64,11 +64,12 @@ module RokuBuilder
|
|
|
64
64
|
|
|
65
65
|
def run_sca_tool(path:, ssai:)
|
|
66
66
|
if OS.unix?
|
|
67
|
-
|
|
67
|
+
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd")
|
|
68
68
|
else
|
|
69
69
|
command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd.bat")
|
|
70
70
|
end
|
|
71
|
-
|
|
71
|
+
@logger.debug("Command: '#{command}'")
|
|
72
|
+
results = `#{command} #{path}`.split("\n")
|
|
72
73
|
process_sca_results(results, ssai)
|
|
73
74
|
end
|
|
74
75
|
|
|
@@ -95,6 +96,11 @@ module RokuBuilder
|
|
|
95
96
|
if ssai and /SetAdUrl\(\) method is missing/.match(@sca_warning[:message])
|
|
96
97
|
return false
|
|
97
98
|
end
|
|
99
|
+
libraries = @config.project[:libraries]
|
|
100
|
+
libraries ||= []
|
|
101
|
+
if libraries.any_is_start?(@sca_warning[:path].gsub(/pkg:/, "")) and not @options[:include_libraries]
|
|
102
|
+
return false
|
|
103
|
+
end
|
|
98
104
|
return true
|
|
99
105
|
end
|
|
100
106
|
return false
|
|
@@ -55,6 +55,8 @@ module RokuBuilder
|
|
|
55
55
|
end
|
|
56
56
|
elsif @prev_line =~ /^\s*\bfor\b|^\s*\bwhile\b/i
|
|
57
57
|
@ind += @count
|
|
58
|
+
elsif @prev_line =~ /^\s*\btry\b|^\s*\bcatch\b/i
|
|
59
|
+
@ind += @count
|
|
58
60
|
end
|
|
59
61
|
end
|
|
60
62
|
if line =~ /^\'/ or line =~ /\'indent-ignore/
|
|
@@ -62,11 +64,13 @@ module RokuBuilder
|
|
|
62
64
|
elsif line =~ /^\s*[\}\]\)]/
|
|
63
65
|
@ind -= @count
|
|
64
66
|
elsif line =~ /^\s*\bfunction\b|^\s*\bsub\b/i
|
|
65
|
-
|
|
67
|
+
# Don't change indentation
|
|
66
68
|
elsif line =~ /^\s*:?\s*#?end\b|^\s*#?endif\b|^\s*endfor\b|^\s*\bnext\b/i
|
|
67
69
|
@ind -= @count
|
|
68
70
|
elsif line =~ /^\s*#?else\b|^\s*elseif\b/i
|
|
69
71
|
@ind -= @count
|
|
72
|
+
elsif line =~ /^\s*#?catch\b/i
|
|
73
|
+
@ind -= @count
|
|
70
74
|
end
|
|
71
75
|
end
|
|
72
76
|
end
|
data/lib/roku_builder/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roku_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.22.
|
|
4
|
+
version: 4.22.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- greeneca
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-06-
|
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|