roku_builder 3.6.4 → 3.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5491a8115dec46aaf4d5aa694bc5d32b66ac39bf
4
- data.tar.gz: 01a9774a5829a0966e6d05dd9187141d00bba712
3
+ metadata.gz: 8f16de91f9bf4cf99d5bd00513cdadc858e7a5f6
4
+ data.tar.gz: b3415b487012393c8a3b23a0ba57c95e21e323e6
5
5
  SHA512:
6
- metadata.gz: 387ce09f99b318904e27b96a8c698f3dd357242e68d3422802306beb5daafb415dea3d69bf92cab81e1c7cd0130a07c9d21585dcca33b157f19dfbd7d4ae2438
7
- data.tar.gz: 3c141ea7b5f3f83c886fc70a905c683e4d229aed277499ec7f4311a8aae24a81ba0a8cedbed15820d19f6704a505f2f4bf4b221c7b4a22be818d9a32f9e51af1
6
+ metadata.gz: 0be2b042494d49588298949394a15cb18bad9233d847833dcbe9405a42d2616e955b164dd70b9fe5e9545b8811bf3a760dcb861539dddb798d7153352dc6025c
7
+ data.tar.gz: 2924a1783b90dd359c6ad8d581b1b8d6accdc0168be6ed5566bc05ce0eba72630ab749c080661fa21073f4be394743074c5c64e64e386860ca32635c76beb5e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roku_builder (3.6.4)
4
+ roku_builder (3.6.5)
5
5
  faraday (~> 0.9)
6
6
  faraday-digestauth (~> 0.2)
7
7
  git (~> 1.3)
@@ -60,7 +60,7 @@ module RokuBuilder
60
60
  unstage_success = false
61
61
  end
62
62
  when :script
63
- Controller.system(command: @key[:unstage])
63
+ Controller.system(command: @key[:unstage]) if @key[:unstage]
64
64
  end
65
65
  Dir.chdir(@orginal_directory) unless @root_dir == @orginal_directory
66
66
  unstage_success
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "3.6.4"
5
+ VERSION = "3.6.5"
6
6
  end
@@ -123,4 +123,13 @@ class ConfigParserTest < Minitest::Test
123
123
  RokuBuilder::ConfigParser.send(:setup_sideload_config, **args)
124
124
  refute_nil args[:configs][:sideload_config][:content][:excludes]
125
125
  end
126
+
127
+ def test_deeplink_app_config
128
+ args = {
129
+ configs: {project_config: {directory: "dir"}},
130
+ options: {deeplink: "a:b", app_id: "xxxxxx"},
131
+ logger: Logger.new("/dev/null")
132
+ }
133
+ RokuBuilder::ConfigParser.send(:setup_simple_configs, **args)
134
+ end
126
135
  end
@@ -389,4 +389,25 @@ class ControllerCommandsTest < Minitest::Test
389
389
  assert_equal RokuBuilder::FAILED_SCREENCAPTURE, code
390
390
  inspector.verify
391
391
  end
392
+ def test_controller_commands_print
393
+ logger = Logger.new("/dev/null")
394
+ stager = Minitest::Mock.new
395
+
396
+ options = {print: 'title', stage: 'production', config: "~/.roku_config.json"}
397
+ config = good_config
398
+ configs = {stage_config: {}}
399
+ code = nil
400
+ scripter_config = {attribute: :title, configs: configs}
401
+ print_check = lambda {|config| RokuBuilder::SUCCESS if config == scripter_config }
402
+ stager.expect(:stage, true)
403
+ stager.expect(:unstage, true)
404
+
405
+ RokuBuilder::Stager.stub(:new, stager) do
406
+ RokuBuilder::Scripter.stub(:print, print_check) do
407
+ code = RokuBuilder::Controller.send(:execute_commands, {options: options, config: config, configs: configs, logger: logger})
408
+ end
409
+ end
410
+ assert_equal RokuBuilder::SUCCESS, code
411
+ stager.verify
412
+ end
392
413
  end
@@ -42,7 +42,8 @@ class ErrorHandlerTest < Minitest::Test
42
42
  RokuBuilder::FAILED_SIGNING,
43
43
  RokuBuilder::FAILED_DEEPLINKING,
44
44
  RokuBuilder::FAILED_NAVIGATING,
45
- RokuBuilder::FAILED_SCREENCAPTURE
45
+ RokuBuilder::FAILED_SCREENCAPTURE,
46
+ RokuBuilder::BAD_PRINT_ATTRIBUTE
46
47
  ]
47
48
  },
48
49
  info: {
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: 3.6.4
4
+ version: 3.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip