roku_builder 4.24.1 → 4.25.1

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: 5c8cbcadc9f204bd809c6d0b42ef03c0fe462209c493381d654db1b6c4f51b17
4
- data.tar.gz: 51b96420ec3a859d6af35a16989bc5560bd6987c84e8ee3c8bbea4b3159aacbf
3
+ metadata.gz: 0a3905a9a153133cba22710cb79609fce822905727e99a348c682148c9224836
4
+ data.tar.gz: 05b39e2c73538bdd1d8c665f06cbcd52694fd0891355a352c2cf01c75d72212f
5
5
  SHA512:
6
- metadata.gz: 2247b8355b001e0151255e0ffb45032b92ff1f5adb6e5ec6c98be8013c142d859d689cd056b1e757cda82445bf77cae19b9ab0775419d2d95041a105cc7643ca
7
- data.tar.gz: 3459696d4a13f4faf6000c3b2a17a82e392e3935adcee2a77bb312e1ed06fcdbf1ac6e57b4486198128e26235846126fc3508bd61427d52f3a42ffddb536a990
6
+ metadata.gz: eb41fefe18f84f23cf38b7404d08c1b8ae84466373e0098711766b2006ff75f607c92ebc640b4188059bf92924f1e7c9eadd3e06d8f929f9f5664462781ac558
7
+ data.tar.gz: 9a6f5e63ba200dcd844274b3a8513d2c01da66248a74a8df5e095a7280572a120613b0891f218bc05e3c250cae33c5aab195e7fee976292628a3e903c94c2b30
@@ -15,9 +15,9 @@ module RokuBuilder
15
15
  cleanup_uuid_script
16
16
  end
17
17
  def test_sideload
18
- output = `#{roku} --sideload --stage production`
18
+ output = `#{roku} --sideload --stage production -V`
19
19
  assert_log @uuid
20
- refute_match(/WARN: Missing File/, output)
20
+ refute_match(/INFO: Missing File/, output)
21
21
  end
22
22
  def test_delete
23
23
  `#{roku} --sideload --working`
@@ -17,8 +17,8 @@ module RokuBuilder
17
17
  def test_package
18
18
  target = File.join(testfiles_path(PackagerIntergrationTest), "pkg.pkg")
19
19
  FileUtils.rm(target) if File.exist?(target)
20
- output = `#{roku} --package --stage production --out #{target}`
21
- refute_match(/WARN: Missing File/, output)
20
+ output = `#{roku} --package --stage production --out #{target} -V`
21
+ refute_match(/INFO: Missing File/, output)
22
22
  wait_assert {File.exist?(target)}
23
23
  refute File.exist?(target+".zip")
24
24
  FileUtils.rm(target) if File.exist?(target)
@@ -27,7 +27,7 @@ module RokuBuilder
27
27
  target = File.join(testfiles_path(PackagerIntergrationTest), "pkg.pkg")
28
28
  FileUtils.rm(target) if File.exist?(target)
29
29
  output = `#{roku} --package --stage production --out #{target} -V`
30
- refute_match(/WARN: Missing File/, output)
30
+ refute_match(/INFO: Missing File/, output)
31
31
  assert_match(/#{target}/, output)
32
32
  wait_assert {File.exist?(target)}
33
33
  refute File.exist?(target+".zip")
@@ -47,7 +47,8 @@ module RokuBuilder
47
47
  file = file_path.dup; file.slice!(dir)
48
48
  unless libraries.any_is_start?(file) and not @options[:include_libraries]
49
49
  if File.file?(file_path) and file_path.end_with?(".brs", ".xml")
50
- line_inspector_config = performance_config
50
+ line_inspector_config = []
51
+ line_inspector_config = performance_config unless linter_config[:skip_performance]
51
52
  line_inspector_config += linter_config[:rules] if linter_config[:rules]
52
53
  line_inspector = LineInspector.new(inspector_config: line_inspector_config, indent_config: linter_config[:indentation])
53
54
  @warnings.concat(line_inspector.run(file_path))
@@ -40,6 +40,9 @@ module RokuBuilder
40
40
  parser.on("--remote-debug", "Sideload will enable remote debug") do
41
41
  options[:remoteDebug] = true
42
42
  end
43
+ parser.on("--build-dir DIR", "The directory to load files from when building the app") do |dir|
44
+ options[:build_dir] = dir
45
+ end
43
46
  end
44
47
 
45
48
  def self.dependencies
@@ -48,7 +51,6 @@ module RokuBuilder
48
51
 
49
52
  # Sideload an app onto a roku device
50
53
  def sideload(options:)
51
- delete(options: options, ignoreFailure: true)
52
54
  did_build = false
53
55
  unless options[:in]
54
56
  did_build = true
@@ -142,7 +144,7 @@ module RokuBuilder
142
144
  path = file_path(:out)
143
145
  File.delete(path) if File.exist?(path)
144
146
  io = Zip::File.open(path, Zip::File::CREATE)
145
- writeEntries(@config.parsed[:root_dir], content[:source_files], "", content[:excludes], io)
147
+ writeEntries(build_dir, content[:source_files], "", content[:excludes], io)
146
148
  io.close()
147
149
  end
148
150
 
@@ -173,7 +175,7 @@ module RokuBuilder
173
175
  @logger.warn "Ignored file with invalid Roku filetype " + File.basename(diskFilePath)
174
176
  end
175
177
  else
176
- @logger.warn "Missing File: #{diskFilePath}"
178
+ @logger.info "Missing File: #{diskFilePath}"
177
179
  end
178
180
  end
179
181
  end
@@ -188,6 +190,11 @@ module RokuBuilder
188
190
  end
189
191
  end
190
192
  end
193
+ def build_dir
194
+ dir = @options[:build_dir]
195
+ dir ||= @config.parsed[:root_dir]
196
+ dir
197
+ end
191
198
  end
192
199
  RokuBuilder.register_plugin(Loader)
193
200
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.24.1"
5
+ VERSION = "4.25.1"
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.24.1
4
+ version: 4.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -633,7 +633,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
633
633
  - !ruby/object:Gem::Version
634
634
  version: '0'
635
635
  requirements: []
636
- rubygems_version: 3.2.3
636
+ rubygems_version: 3.3.4
637
637
  signing_key:
638
638
  specification_version: 4
639
639
  summary: Build Tool for Roku Apps