roku_builder 4.21.4 → 4.21.5
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/lib/roku_builder.rb +2 -2
- data/lib/roku_builder/config_validator.rb +1 -1
- data/lib/roku_builder/plugins/analyzer.rb +1 -0
- data/lib/roku_builder/version.rb +1 -1
- data/test/roku_builder/plugins/test_analyzer.rb +2 -1
- data/test/roku_builder/plugins/test_profiler.rb +2 -1
- data/test/roku_builder/test_options.rb +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a3ef1eb871ea4979ed73ece95c1211b2435f6651e118add52434b163268c5a8
|
|
4
|
+
data.tar.gz: af458ef520e7d7cfb1a93a7d2df1df4c6b885aebc338ddd624100afe8c90aca1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3ba492b2dcb170dba88e48e77022b537cd1b36c5d98da91788fb4f6d8e8dfce92b706bf57197bc1639f5501c617750b8ba541796b456252c3f8133c645b69ad
|
|
7
|
+
data.tar.gz: 8ee571d3ee816221ba12c9a2b2e59456f420a6ab09c7de5de6e9ab8ac70ca0e431dba3d7be13b8d21db492cf4876a25599605fa1547c11844c3330e6d864a072
|
data/lib/roku_builder.rb
CHANGED
|
@@ -200,7 +200,7 @@ module RokuBuilder
|
|
|
200
200
|
stager.stage
|
|
201
201
|
end
|
|
202
202
|
instance = plugin.new(config: @@config)
|
|
203
|
-
instance.send(@@options.command, {options: @@options})
|
|
203
|
+
instance.send(@@options.command, **{options: @@options})
|
|
204
204
|
stager.unstage if stager
|
|
205
205
|
end
|
|
206
206
|
end
|
|
@@ -224,7 +224,7 @@ module RokuBuilder
|
|
|
224
224
|
def self.process_hook(hook:, params:)
|
|
225
225
|
@@plugins.each do |plugin|
|
|
226
226
|
if plugin.respond_to?("#{hook}_hook".to_sym)
|
|
227
|
-
plugin.send("#{hook}_hook", params)
|
|
227
|
+
plugin.send("#{hook}_hook", **params)
|
|
228
228
|
end
|
|
229
229
|
end
|
|
230
230
|
end
|
|
@@ -30,6 +30,7 @@ module RokuBuilder
|
|
|
30
30
|
def analyze(options:, quiet: false)
|
|
31
31
|
@options = options
|
|
32
32
|
@warnings = []
|
|
33
|
+
@sca_warning = {}
|
|
33
34
|
performance_config = get_config("performance_config.json")
|
|
34
35
|
linter_config = get_config(".roku_builder_linter.json", true)
|
|
35
36
|
linter_config ||= {is_ssai: false}
|
data/lib/roku_builder/version.rb
CHANGED
|
@@ -106,7 +106,7 @@ module RokuBuilder
|
|
|
106
106
|
warnings = test_file(text: "function test() as String 'IGNORE-WARNING\n? \"test\"\nend function")
|
|
107
107
|
assert_equal 0, warnings.count
|
|
108
108
|
end
|
|
109
|
-
def
|
|
109
|
+
def test_performance_for_each_loop_title_case
|
|
110
110
|
warnings = test_file(text: "For each button in buttons\n ? button\nEND FOR")
|
|
111
111
|
assert_equal 0, warnings.count
|
|
112
112
|
end
|
|
@@ -148,6 +148,7 @@ module RokuBuilder
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
logger.verify
|
|
151
|
+
warnings
|
|
151
152
|
end
|
|
152
153
|
|
|
153
154
|
def test(quiet=true)
|
|
@@ -32,14 +32,13 @@ module RokuBuilder
|
|
|
32
32
|
end
|
|
33
33
|
def test_options_parse
|
|
34
34
|
parser = Minitest::Mock.new()
|
|
35
|
-
options_hash = {}
|
|
36
35
|
options = Options.allocate
|
|
37
36
|
parser.expect(:banner=, nil, [String])
|
|
38
37
|
parser.expect(:parse!, nil)
|
|
39
38
|
OptionParser.stub(:new, parser) do
|
|
40
39
|
options.stub(:add_plugin_options, nil) do
|
|
41
40
|
options.stub(:validate_parser, nil) do
|
|
42
|
-
|
|
41
|
+
options.send(:parse)
|
|
43
42
|
end
|
|
44
43
|
end
|
|
45
44
|
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.21.
|
|
4
|
+
version: 4.21.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- greeneca
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|
|
@@ -631,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
631
631
|
- !ruby/object:Gem::Version
|
|
632
632
|
version: '0'
|
|
633
633
|
requirements: []
|
|
634
|
-
rubygems_version: 3.
|
|
634
|
+
rubygems_version: 3.0.8
|
|
635
635
|
signing_key:
|
|
636
636
|
specification_version: 4
|
|
637
637
|
summary: Build Tool for Roku Apps
|