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: fe82e43712c05c593d5627cdd0b87140186311e278aeae2c08658c6135451ba3
4
- data.tar.gz: 43acac9b51f9ece09cc3c6989a0dae36ab8a5ab2d1ef996b37697c373ee1cdcb
3
+ metadata.gz: '095541972d5f6044a4ce8f7764a2001fdc20e0095fc00823a59b046c2543a6cc'
4
+ data.tar.gz: 04fe333f5912595ac824c18e4af9fb0d4d1e00224b87473be666a897cbc0b1a8
5
5
  SHA512:
6
- metadata.gz: e53e522610ddbc4d54d0d03a7b608e6453f4baba8b5dc0c75ab450c13da02792e597310d9ee057d59b5e0544abad8b829a0ca3b27dae3f4ee4da0676f6faa2aa
7
- data.tar.gz: 34629a36e098629e19c4e986c5edf86dc1c432a9ad61b61cc1fa08536ce18092d2d7f271aebf6ac8099eaeb9d10ee895f8839a50cbfc76211e9398664a92309a
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
- command = File.join(File.dirname(__FILE__), "sca-cmd", "bin", "sca-cmd")
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
- results = `#{@options[:sca_precommand]} #{command} #{path}`.split("\n")
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
- @ind -= 0
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.22.3"
5
+ VERSION = "4.22.8"
6
6
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip