roku_builder 3.4.2 → 3.4.3

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: dc0d1c23db3b41b36ad688f25bd7cf265bace489
4
- data.tar.gz: 8f480837cb1cbe27b24453a3b81c5606d65aa28d
3
+ metadata.gz: 7bd482d491cdcd7d0fcdb0868cfd4a6a127b7550
4
+ data.tar.gz: aa79081e34db9e1de4b65178a051afe0fde5b5a4
5
5
  SHA512:
6
- metadata.gz: 6f0472ac3122318632449e8f257312211867da471632d14f53bc1845bd3bd47f3ef3d55606f9273b4adaa19a1dd0039baab6666de91ff7cb207e1876a771a1d9
7
- data.tar.gz: 2d130f6dd27005b871c4ea0c318f45fb5871feb615b92ec54af119a0f9a26701c773fcf36aaf42c7a728ef407dc5f43d725721da265a00d9df75e955993ddbca
6
+ metadata.gz: 6ac512ad7e5f80613cc1ec94f3ebc5da64ed55f98d2af28edafbc4905f36400239c972fefc0a123465bc645baaa9fc66586f885b7e5dc3e5d957d22528bbdac0
7
+ data.tar.gz: c5c10aafa9eef6d3dab2f7ee90c4279b0b5ef6fdc828eb9542fd8a403e8574ed9f0bd451a1f180f5b38b89f6de7de755755014644e4db985850bd618ebc6160a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roku_builder (3.4.2)
4
+ roku_builder (3.4.3)
5
5
  faraday (~> 0.9)
6
6
  faraday-digestauth (~> 0.2)
7
7
  git (~> 1.3)
data/bin/roku CHANGED
@@ -59,6 +59,10 @@ OptionParser.new do |opts|
59
59
  options[:build] = true
60
60
  end
61
61
 
62
+ opts.on("-k", "--key", "Command: change device key") do
63
+ options[:key] = true
64
+ end
65
+
62
66
  opts.on("--screen SCREEN", "Command: show a screen") do |s|
63
67
  options[:screen] = s
64
68
  end
@@ -159,9 +159,11 @@ module RokuBuilder
159
159
  # @param options [Hash] The options hash
160
160
  # @param stage [Symbol] The stage to package
161
161
  def self.setup_package_config(configs:, options:, stage:)
162
- if options[:package]
162
+ if options[:package] or options[:key]
163
163
  # Create Key Config
164
164
  configs[:key] = configs[:project_config][:stages][stage][:key]
165
+ end
166
+ if options[:package]
165
167
  # Create Package Config
166
168
  configs[:package_config] = {
167
169
  password: configs[:key][:password],
@@ -150,7 +150,7 @@ module RokuBuilder
150
150
  # @return [Array<Symbol>] List of command symbols that can be used in the options hash
151
151
  def self.commands
152
152
  [:sideload, :package, :test, :deeplink,:configure, :validate, :delete,
153
- :navigate, :text, :build, :monitor, :update, :screencapture, :screen,
153
+ :navigate, :text, :build, :monitor, :update, :screencapture, :key, :screen,
154
154
  :screens]
155
155
  end
156
156
  private_class_method :commands
@@ -165,7 +165,7 @@ module RokuBuilder
165
165
  # List of commands requiring a source option
166
166
  # @return [Array<Symbol>] List of command symbols that require a source in the options hash
167
167
  def self.source_commands
168
- [:sideload, :package, :test, :build]
168
+ [:sideload, :package, :test, :build, :key]
169
169
  end
170
170
  private_class_method :source_commands
171
171
 
@@ -17,6 +17,7 @@ module RokuBuilder
17
17
  failure: FAILED_NAVIGATING },
18
18
  screen: { klass: Navigator, method: :screen, config_key: :screen_config,
19
19
  failure: FAILED_NAVIGATING },
20
+ key: { klass: Keyer, method: :rekey, config_key: :key },
20
21
  screens: { klass: Navigator, method: :screens },
21
22
  text: { klass: Navigator, method: :type, config_key: :text_config },
22
23
  test: { klass: Tester, method: :run_tests, config_key: :test_config },
@@ -22,6 +22,7 @@ module RokuBuilder
22
22
 
23
23
  # check key
24
24
  newId = dev_id
25
+ @logger.info("Key did not change") unless newId != oldId
25
26
  newId != oldId
26
27
  end
27
28
 
@@ -1,4 +1,4 @@
1
1
  module RokuBuilder
2
2
  # Version of the RokuBuilder Gem
3
- VERSION = "3.4.2"
3
+ VERSION = "3.4.3"
4
4
  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: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip