roku_builder 4.2.1 → 4.2.2
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 +4 -4
- data/CHANGELOG +9 -0
- data/Gemfile.lock +1 -1
- data/lib/roku_builder/plugins/loader.rb +1 -1
- data/lib/roku_builder/plugins/monitor.rb +1 -0
- data/lib/roku_builder/plugins/profiler.rb +3 -4
- data/lib/roku_builder/plugins/scripter.rb +6 -8
- data/lib/roku_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e19b5128e44e63ada8c0d95b803da19f48449e4a
|
4
|
+
data.tar.gz: 64868208b98f199b93c46dc393d0ed716da7245f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23791ff20262d64387138ba123bbf16825e5a708ce256c4d3a4803add94cc8cdb4d9803c248067fbea818e95aefe5eadf278bbdd7544ff4d4034b7ec0f6209b2
|
7
|
+
data.tar.gz: e3297d64882d4c7bc740e350890420050e219da9f02d346467a5e62ceddad67a436c0be0a07ef518bdbb92c2a48e83ff7213683dace1c47f3d5a4764e51842b7
|
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
@@ -102,7 +102,7 @@ module RokuBuilder
|
|
102
102
|
else
|
103
103
|
content[:folders] = @config.project[:folders]
|
104
104
|
content[:files] = @config.project[:files]
|
105
|
-
content[:excludes] = @config.project[:excludes] if @options[:exclude] or @options.exclude_command?
|
105
|
+
content[:excludes] = @config.project[:excludes] if @config.project[:excludes] and (@options[:exclude] or @options.exclude_command?)
|
106
106
|
end
|
107
107
|
content
|
108
108
|
end
|
@@ -114,6 +114,7 @@ module RokuBuilder
|
|
114
114
|
# @param regexp [Regexp] regular expression to filter text on
|
115
115
|
# @return [String] remaining partial line text
|
116
116
|
def manage_text(all_text:, txt:, regexp: nil)
|
117
|
+
raise ExecutionError, "Connection Closed" unless txt
|
117
118
|
if /connection is already in use/ =~ txt
|
118
119
|
raise ExecutionError, "Connection is in use"
|
119
120
|
end
|
@@ -146,7 +146,7 @@ module RokuBuilder
|
|
146
146
|
start_reg = /RoGraphics instance/
|
147
147
|
end_reg = /Available memory/
|
148
148
|
lines = get_command_response(command: "r2d2_bitmaps", start_reg: start_reg, end_reg: end_reg)
|
149
|
-
lines = sort_image_lines(lines)
|
149
|
+
lines = sort_image_lines(lines, /0x[^\s]+\s+\d+\s+\d+\s+\d+\s+\d+/, 4)
|
150
150
|
lines.each {|line| print line}
|
151
151
|
end
|
152
152
|
def print_memmory_usage
|
@@ -224,14 +224,13 @@ module RokuBuilder
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
-
def sort_image_lines(lines)
|
227
|
+
def sort_image_lines(lines, reg, size_index)
|
228
228
|
new_lines = []
|
229
229
|
line = lines.shift
|
230
230
|
while line != nil
|
231
|
-
reg = /0x[^\s]+\s+\d+\s+\d+\s+\d+\s+\d+/
|
232
231
|
line_data = []
|
233
232
|
while line =~ reg
|
234
|
-
line_data.push({line: line, size: line.split[
|
233
|
+
line_data.push({line: line, size: line.split[size_index].to_i})
|
235
234
|
line = lines.shift
|
236
235
|
end
|
237
236
|
line_data.sort! {|a, b| b[:size] <=> a[:size]}
|
@@ -22,14 +22,6 @@ module RokuBuilder
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def print(options:)
|
25
|
-
attributes = [
|
26
|
-
:title, :build_version, :app_version, :root_dir, :app_name
|
27
|
-
]
|
28
|
-
|
29
|
-
unless attributes.include? options[:print]
|
30
|
-
raise ExecutionError, "Unknown attribute: #{options[:print]}"
|
31
|
-
end
|
32
|
-
|
33
25
|
manifest = Manifest.new(config: @config)
|
34
26
|
|
35
27
|
case options[:print]
|
@@ -45,6 +37,12 @@ module RokuBuilder
|
|
45
37
|
major = manifest.major_version
|
46
38
|
minor = manifest.minor_version
|
47
39
|
printf "%s.%s", major, minor
|
40
|
+
else
|
41
|
+
if manifest.send(options[:print])
|
42
|
+
printf manifest.send(options[:print])
|
43
|
+
else
|
44
|
+
raise ExecutionError, "Unknown attribute: #{options[:print]}"
|
45
|
+
end
|
48
46
|
end
|
49
47
|
end
|
50
48
|
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.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|