roku_builder 4.29.8 → 4.29.9

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: 82d24a2f934584b2ddf6531d7f087aab02a8e6fbb30b95c611a825f9dae45f1d
4
- data.tar.gz: 727d3649d936ff4a0ac96bed9c5b53f0e2b1ecdea043130f8e622a05a3b12868
3
+ metadata.gz: 7f556d2bdac60b5a1c852aff402451f8db62724ef9f70d2f2c69bb044ba84d90
4
+ data.tar.gz: b29aa27d5d0868b61772f7413998f800693b3c7410795e12264a5f866b10ecbf
5
5
  SHA512:
6
- metadata.gz: bd3c416558b52d1b852e6e4101cd1a702fbf1de6c3b125b53d429e6d7e365a8453236c4498a16f9b0afc1a1b233b3fac897346736a2359921a820a14a834718f
7
- data.tar.gz: 0ebeaae1a028abfe252177528cdb295ad7a0655959c218d59b8b6f910768f58ef950d0df3be17d7169d57553f18f262e97b2f32d1ebc401fd1a0c447a3c34c19
6
+ metadata.gz: 54afc02cb2f2e28601ae6a9da3695f572a34bf0aab27330cfff5d41b93fc402982c20eeefa0c115e8548b7e70303a4011b7282cfbfce4b9650cbf8f8d61cf7ec
7
+ data.tar.gz: 738ba6cf30630263c2901c16e5b0a034449703cf311d839a9abbffb5e908199961cd30f5b6a8f6a2c3c8dcf500f54beaf05ff4fb76e95ee4b60e6c8fce5e791f
@@ -44,6 +44,7 @@ module RokuBuilder
44
44
  libraries = @config.project[:libraries]
45
45
  libraries ||= []
46
46
  Dir.glob(File.join(dir, "**", "*")).each do |file_path|
47
+ #byebug if file_path.include?("adTuningChannelComponent.brs")
47
48
  file = file_path.dup; file.slice!(dir)
48
49
  unless libraries.any_is_start?(file) and not @options[:include_libraries]
49
50
  if File.file?(file_path) and file_path.end_with?(".brs", ".xml")
@@ -73,6 +74,7 @@ module RokuBuilder
73
74
  end
74
75
  @logger.debug("Command: '#{command}'")
75
76
  results = `#{command} #{path} 2>#{stderr}`.split("\n")
77
+ @logger.debug("Results: '#{results}'")
76
78
  process_sca_results(results, linter_config)
77
79
  end
78
80
 
@@ -102,7 +104,7 @@ module RokuBuilder
102
104
  end
103
105
  libraries = @config.project[:libraries]
104
106
  libraries ||= []
105
- if @sca_warning[:path] and libraries.any_is_start?(@sca_warning[:path].gsub(/pkg:/, "")) and not @options[:include_libraries]
107
+ if @sca_warning[:path] and libraries.any_is_start?(@sca_warning[:path].gsub(/pkg:/, "")) and not @options[:include_libraries] and not linter_config[:sca_libraries]
106
108
  return false
107
109
  end
108
110
  if linter_config[:ignore_warnings]
@@ -18,7 +18,7 @@ module RokuBuilder
18
18
  lines_to_ignore = []
19
19
  file.readlines.each_with_index do |line, line_number|
20
20
  full_line = line.dup
21
- line.gsub!(/'.*/, "") if file_path.end_with?(".brs")
21
+ line.gsub!(/'[^"]*("[^"]*"[^"\n]*)*$/, "\n") if file_path.end_with?(".brs")
22
22
  if file_path.end_with?(".xml")
23
23
  if in_xml_comment
24
24
  if line.gsub!(/.*-->/, "")
@@ -41,6 +41,7 @@ module RokuBuilder
41
41
  no_comments = file_no_comments.join("")
42
42
  file = full_file.join("")
43
43
  @inspector_config.each do |line_inspector|
44
+ next if line_inspector[:skip_xml] and file_path.end_with?(".xml")
44
45
  unless line_inspector[:disabled]
45
46
  to_check = no_comments
46
47
  to_check = file if line_inspector[:include_comments]
@@ -67,6 +68,7 @@ module RokuBuilder
67
68
  if (not line_inspector[:pass_if_match] and match) or (line_inspector[:pass_if_match] and not match)
68
69
  error_match = match
69
70
  if match
71
+
70
72
  line_number = to_check[0..match.begin(0)+start].split("\n", -1).count - 1
71
73
  start = match.end(0) + start
72
74
  else
@@ -217,7 +217,7 @@ module RokuBuilder
217
217
  def copy_channel_files(content)
218
218
  content[:source_files].each do |entity|
219
219
  begin
220
- FileUtils.copy_entry(File.join(@config.parsed[:root_dir], entity), File.join(@target, entity))
220
+ FileUtils.copy_entry(File.join(build_dir, entity), File.join(@target, entity))
221
221
  rescue Errno::ENOENT
222
222
  @logger.warn "Missing Entry: #{entity}"
223
223
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.29.8"
5
+ VERSION = "4.29.9"
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.29.8
4
+ version: 4.29.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip