roku_builder 4.26.0 → 4.26.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cef81268ceb5755dd1f33511fb33d40231b82f148b1cab085674a640a84422f
4
- data.tar.gz: b76b0aec49eb4a465793cbe2db2e504aaef61c6ca5e0202e4365521c5f665ab3
3
+ metadata.gz: 26fe47ba62ff48e37fe3bd5dda06ff687b79c30dc67bd7dd216747363cf6efbd
4
+ data.tar.gz: cc5480949806270e823d1a177219a48f541abbdde571c949022d9ae16a3cf11a
5
5
  SHA512:
6
- metadata.gz: 9d85a36f9aa407e5b7cb5927f98ffca2d0c3ec67ca3282b3371c75abe41ea0378fef06fe06917d85c00e248f64aa6af4265850a15bf4bd9bd47ba22c208b8ef3
7
- data.tar.gz: 24573d389ea6c02a025512e6ec0092adbe3934d0b0322a9ca8a0aef47b2cc6f311ee8b3b945c9b63201a7eaed2532a925f0243971d069341aa16ddc6cd69352c
6
+ metadata.gz: 7dd09cf68f00832afb02e2797643d6babcb81c6cb943523c883b77b0f2d361bb03fe642c8fe54f685e9565dea175d23974fd1fa9f4ccbbb79be53e559471eb5a
7
+ data.tar.gz: b847c41f764a41db7421c0cba806e7ed264695ec0283f8af28a0a8dad1fdeda731c66c6757bb67faa5ef74e19a45488c33c61f97e3df837d5b9eb1903be12fe3
@@ -103,7 +103,7 @@ module RokuBuilder
103
103
  multipart_connection(device: device) do |conn|
104
104
  response = conn.post "/plugin_install", payload
105
105
  end
106
- unless response.status == 200 and response.body =~ /Conversion succeeded/ or ignoreFailure
106
+ unless response.status == 200 and response.body =~ /squashfs file in internal memory/ or ignoreFailure
107
107
  raise ExecutionError, "Failed Converting to Squashfs"
108
108
  end
109
109
  end
@@ -160,11 +160,13 @@ module RokuBuilder
160
160
  end
161
161
 
162
162
  def build_zip(content)
163
- path = file_path(:out)
164
- File.delete(path) if File.exist?(path)
165
- io = Zip::File.open(path, Zip::File::CREATE)
163
+ tmp_path = File.join(build_dir, SecureRandom.uuid+".zip")
164
+ io = Zip::File.open(tmp_path, Zip::File::CREATE)
166
165
  writeEntries(build_dir, content[:source_files], "", content[:excludes], io)
167
166
  io.close()
167
+ path = file_path(:out)
168
+ File.delete(path) if File.exist?(path)
169
+ FileUtils.mv(tmp_path, path)
168
170
  end
169
171
 
170
172
  # Recursively write directory contents to a zip archive
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.26.0"
5
+ VERSION = "4.26.1"
6
6
  end
@@ -7,7 +7,7 @@
7
7
  "regex": "hello world",
8
8
  "case_sensitive": true,
9
9
  "severity": "warning",
10
- "message": "dont use hello world"
10
+ "message": "only use hello world, no other hello"
11
11
  }
12
12
  ]
13
13
  }
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.26.0
4
+ version: 4.26.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-07-18 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip