roku_builder 4.21.4 → 4.21.5

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: 893af4ba4855d2ea781043034af83671eff43a10c14ded1648e12e45377cd9aa
4
- data.tar.gz: 4f9b84df19799dd6220718b2825d4a597327c63b8c3403432b3e5a9c53542652
3
+ metadata.gz: 3a3ef1eb871ea4979ed73ece95c1211b2435f6651e118add52434b163268c5a8
4
+ data.tar.gz: af458ef520e7d7cfb1a93a7d2df1df4c6b885aebc338ddd624100afe8c90aca1
5
5
  SHA512:
6
- metadata.gz: 13cdd1828544c0580c46507047ae9425a65054e3ade6d6f8ac2f5a149faac60cc59212929b64a9226c57494a80bf1fcfb36540e684ada73df7d1215e0fb68b9d
7
- data.tar.gz: e3a7197fbafbf6138b0c5831c21e3640b47d9c4b219c2bde6c924678ff05379d1f7d09490dd4ae06753ef910b57b31816dc70933803784f1fe21fe39ec1ddc41
6
+ metadata.gz: c3ba492b2dcb170dba88e48e77022b537cd1b36c5d98da91788fb4f6d8e8dfce92b706bf57197bc1639f5501c617750b8ba541796b456252c3f8133c645b69ad
7
+ data.tar.gz: 8ee571d3ee816221ba12c9a2b2e59456f420a6ab09c7de5de6e9ab8ac70ca0e431dba3d7be13b8d21db492cf4876a25599605fa1547c11844c3330e6d864a072
@@ -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
@@ -89,7 +89,7 @@ module RokuBuilder
89
89
  attrs = {}
90
90
  attrs[section_singular] = content
91
91
  method = "validate_#{section_singular}".to_sym
92
- send(method, attrs)
92
+ send(method, **attrs)
93
93
  end
94
94
 
95
95
  def singularize(section:)
@@ -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}
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.21.4"
5
+ VERSION = "4.21.5"
6
6
  end
@@ -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 test_performance_for_loop_title_case
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,7 +32,8 @@ module RokuBuilder
32
32
  end
33
33
  count = 0
34
34
  read_stub = Proc.new do |size|
35
- raise SystemExit if count = 2
35
+ shouldExit = (count = 2)
36
+ raise SystemExit if shouldExit
36
37
  count += 1
37
38
  end
38
39
  connection = Minitest::Mock.new
@@ -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
- options_hash = options.send(:parse)
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
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-07-08 00:00:00.000000000 Z
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.1.2
634
+ rubygems_version: 3.0.8
635
635
  signing_key:
636
636
  specification_version: 4
637
637
  summary: Build Tool for Roku Apps