roku_builder 4.17.0 → 4.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +5 -0
- data/lib/roku_builder/config_parser.rb +2 -1
- data/lib/roku_builder/config_validator.rb +1 -2
- data/lib/roku_builder/plugins/manifest_attributes.json +1 -6
- data/lib/roku_builder/version.rb +1 -1
- data/test/roku_builder/plugins/test_analyzer.rb +4 -0
- data/test/roku_builder/plugins/test_packager.rb +2 -2
- data/test/roku_builder/test_config_parser.rb +3 -3
- data/test/roku_builder/test_config_validator.rb +0 -7
- data/test/roku_builder/test_files/analyzer_test/manifest_sd_image_resolution +9 -0
- data/test/roku_builder/test_helper.rb +4 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 114ba37cf715600a090d737d83c708b116b2f609c7e261edc235f08c925f0ece
|
4
|
+
data.tar.gz: 2d67e30e939dbe815bccc49be7da543331b78291c6c87c75d2fceaf70cfb7ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81a51cb1b9af95b7aade298176f544747b08f300eb553b9bd171da5a006fce7f40fd16bf5330e4f8d257da7ea5f97312f7d54eeb6ea3e1fbafc75f0f4eb8f24c
|
7
|
+
data.tar.gz: '0369e150700a626cf96b7651704cf52c581c194562ac41dc8f066a0015c8aa08505f252c81f870dd2a9318e1c0c3613a465b5c45a437ff3607ca840ddb966afe'
|
data/CHANGELOG
CHANGED
@@ -46,9 +46,10 @@ module RokuBuilder
|
|
46
46
|
project = current_project
|
47
47
|
if project
|
48
48
|
@options[:project] = project
|
49
|
-
|
49
|
+
elsif @config[:projects][:default]
|
50
50
|
@options[:project] = @config[:projects][:default]
|
51
51
|
end
|
52
|
+
raise ArgumentError, "A project is required for that command" unless @options[:project]
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
@@ -113,8 +113,7 @@ module RokuBuilder
|
|
113
113
|
[MISSING_DEVICES, !@config[:devices]],
|
114
114
|
[MISSING_DEVICES_DEFAULT, (@config[:devices] and !@config[:devices][:default])],
|
115
115
|
[DEVICE_DEFAULT_BAD, (@config[:devices] and @config[:devices][:default] and !@config[:devices][:default].is_a?(Symbol))],
|
116
|
-
[MISSING_PROJECTS_DEFAULT, (@config[:projects] and
|
117
|
-
[MISSING_PROJECTS_DEFAULT, (@config[:projects] and @config[:projects][:default] == "<project id>".to_sym)],
|
116
|
+
[MISSING_PROJECTS_DEFAULT, (@config[:projects] and @config[:projects][:default] and @config[:projects][:default] == "<project id>".to_sym)],
|
118
117
|
[PROJECTS_DEFAULT_BAD, (@config[:projects] and @config[:projects][:default] and !@config[:projects][:default].is_a?(Symbol))]
|
119
118
|
]
|
120
119
|
process_errors(errors: errors)
|
@@ -33,12 +33,7 @@
|
|
33
33
|
"resolution": [336, 210]
|
34
34
|
},
|
35
35
|
"mm_icon_focus_sd": {
|
36
|
-
"required": true
|
37
|
-
"validations": {
|
38
|
-
"starts_with": "pkg:/"
|
39
|
-
},
|
40
|
-
"isResource": true,
|
41
|
-
"resolution": [246, 140]
|
36
|
+
"required": true
|
42
37
|
},
|
43
38
|
"splash_screen_fhd": {
|
44
39
|
"validations": {
|
data/lib/roku_builder/version.rb
CHANGED
@@ -160,6 +160,10 @@ module RokuBuilder
|
|
160
160
|
assert_equal 5, warnings[0][:line]
|
161
161
|
assert_equal "manifest", warnings[0][:path]
|
162
162
|
end
|
163
|
+
def test_manifest_sd_image_resolution
|
164
|
+
warnings = test_manifest("manifest_sd_image_resolution")
|
165
|
+
assert_equal 0, warnings.count
|
166
|
+
end
|
163
167
|
def test_line_inspector_depricated_component
|
164
168
|
warnings = test_file(text: "\"roVideoScreen\"")
|
165
169
|
assert_equal 1, warnings.count
|
@@ -95,7 +95,7 @@ module RokuBuilder
|
|
95
95
|
logger.expect(:debug, nil, [String])
|
96
96
|
io.expect(:each_line, nil)
|
97
97
|
logger.expect(:info, nil) do |message|
|
98
|
-
assert_match(
|
98
|
+
assert_match(/#{tmp_folder}/, message)
|
99
99
|
end
|
100
100
|
|
101
101
|
Logger.class_variable_set(:@@instance, logger)
|
@@ -143,7 +143,7 @@ module RokuBuilder
|
|
143
143
|
logger.expect(:debug, nil, [String])
|
144
144
|
io.expect(:each_line, nil)
|
145
145
|
logger.expect(:info, nil) do |message|
|
146
|
-
assert_match(
|
146
|
+
assert_match(/#{tmp_folder}/, message)
|
147
147
|
end
|
148
148
|
|
149
149
|
Logger.class_variable_set(:@@instance, logger)
|
@@ -186,7 +186,7 @@ module RokuBuilder
|
|
186
186
|
config[:projects][:project2][:directory] = "project2"
|
187
187
|
|
188
188
|
configs = nil
|
189
|
-
Pathname.stub(:pwd, Pathname.new("/tmp/project2")) do
|
189
|
+
Pathname.stub(:pwd, Pathname.new("/tmp/project2").realdirpath) do
|
190
190
|
Dir.stub(:exist?, true) do
|
191
191
|
configs = ConfigParser.parse(options: options, config: config)
|
192
192
|
end
|
@@ -289,7 +289,7 @@ module RokuBuilder
|
|
289
289
|
refute_nil parsed[:out]
|
290
290
|
refute_nil parsed[:out][:folder]
|
291
291
|
assert_nil parsed[:out][:file]
|
292
|
-
assert_equal
|
292
|
+
assert_equal tmp_folder, parsed[:out][:folder]
|
293
293
|
end
|
294
294
|
def test_outfile_config_folder
|
295
295
|
config = good_config(ConfigParserTest)
|
@@ -342,7 +342,7 @@ module RokuBuilder
|
|
342
342
|
refute_nil parsed[:out]
|
343
343
|
refute_nil parsed[:out][:folder]
|
344
344
|
refute_nil parsed[:out][:file]
|
345
|
-
assert_equal
|
345
|
+
assert_equal tmp_folder, parsed[:out][:folder]
|
346
346
|
assert_equal "file.jpg", parsed[:out][:file]
|
347
347
|
end
|
348
348
|
end
|
@@ -100,13 +100,6 @@ module RokuBuilder
|
|
100
100
|
assert validator.is_valid?
|
101
101
|
end
|
102
102
|
|
103
|
-
def test_config_manager_validate_projects_default
|
104
|
-
config = good_config
|
105
|
-
config[:projects][:default] = nil
|
106
|
-
validator = ConfigValidator.new(config: config)
|
107
|
-
assert_equal [5], validator.instance_variable_get(:@codes)
|
108
|
-
end
|
109
|
-
|
110
103
|
def test_config_manager_validate_projects_default_default_value
|
111
104
|
config = good_config
|
112
105
|
config[:projects][:default] = "<project id>".to_sym
|
@@ -0,0 +1,9 @@
|
|
1
|
+
title=Test
|
2
|
+
major_version=1
|
3
|
+
minor_version=0
|
4
|
+
build_version=01
|
5
|
+
mm_icon_focus_hd=pkg:/images/focus_hd.png
|
6
|
+
mm_icon_focus_sd=pkg:/images/too_small.png
|
7
|
+
splash_screen_hd=pkg:/images/splash_hd.png
|
8
|
+
splash_screen_sd=pkg:/images/splash_sd.png
|
9
|
+
splash_color=#121212
|
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.17.
|
4
|
+
version: 4.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -546,6 +546,7 @@ files:
|
|
546
546
|
- test/roku_builder/test_files/analyzer_test/manifest_missing_attribute
|
547
547
|
- test/roku_builder/test_files/analyzer_test/manifest_missing_file
|
548
548
|
- test/roku_builder/test_files/analyzer_test/manifest_raf
|
549
|
+
- test/roku_builder/test_files/analyzer_test/manifest_sd_image_resolution
|
549
550
|
- test/roku_builder/test_files/analyzer_test/manifest_template
|
550
551
|
- test/roku_builder/test_files/analyzer_test/test.pkg
|
551
552
|
- test/roku_builder/test_files/config_parser_test/test.pkg
|
@@ -629,7 +630,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
629
630
|
version: '0'
|
630
631
|
requirements: []
|
631
632
|
rubyforge_project:
|
632
|
-
rubygems_version: 2.
|
633
|
+
rubygems_version: 2.7.9
|
633
634
|
signing_key:
|
634
635
|
specification_version: 4
|
635
636
|
summary: Build Tool for Roku Apps
|
@@ -672,6 +673,7 @@ test_files:
|
|
672
673
|
- test/roku_builder/test_files/analyzer_test/manifest_missing_attribute
|
673
674
|
- test/roku_builder/test_files/analyzer_test/manifest_missing_file
|
674
675
|
- test/roku_builder/test_files/analyzer_test/manifest_raf
|
676
|
+
- test/roku_builder/test_files/analyzer_test/manifest_sd_image_resolution
|
675
677
|
- test/roku_builder/test_files/analyzer_test/manifest_template
|
676
678
|
- test/roku_builder/test_files/analyzer_test/test.pkg
|
677
679
|
- test/roku_builder/test_files/config_parser_test/test.pkg
|