roku_builder 3.12.1 → 3.12.2

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
  SHA1:
3
- metadata.gz: 5d6c658a501f3875fc1990a008e29e96298ee4f8
4
- data.tar.gz: 8ccab9dc5a4ca327747a1f990ac7a8fbbcdae747
3
+ metadata.gz: 2fb178e01cea210f0293002bfda3f18dfa08c525
4
+ data.tar.gz: e18dfb21ea5fb2d3c4fdb646b50446a4adc3ed08
5
5
  SHA512:
6
- metadata.gz: 76e20ba196af6d026cac3041259c27370e9fe154c62c967a7fe794ff810b6a3537a47d1e34aff52566ff7e0658730b6be59c350abc948c5eda8a69c0cf36c5fb
7
- data.tar.gz: b6f3f6139949b6a01e7e111ac59d71d99331a120d4ec22145573d4f20abaae1e88e50419b1da3344b66d91031d0741be87e3b9b17e6b167ee3733f5871cde9b6
6
+ metadata.gz: f5115c01940757881bf4a18ddbecae18fb6da21e727d698be7defad2ab4fd73f76c14e5fa88bc7f8580958aa9cec707cb0a6b35d188690b362c9fd47d15d23ea
7
+ data.tar.gz: cecd6468a8e1b2e2c5b386555370175191d977b1141180373643911b769563d2b97c4c77269f65fbaca92ac224e3ddd50d5a7ab97da5eb0263539e28bbe347e1
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ = 3.12.2 =
2
+
3
+ - Fix bug with monitor not exiting
4
+
1
5
  = 3.12.1 =
2
6
 
3
7
  - Fix project selection when using the project_dir config value
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roku_builder (3.12.1)
4
+ roku_builder (3.12.2)
5
5
  faraday (~> 0.11)
6
6
  faraday-digestauth (~> 0.2)
7
7
  git (~> 1.3)
@@ -73,20 +73,20 @@ module RokuBuilder
73
73
  while running
74
74
  begin
75
75
  if @show_prompt
76
- command = Readline.readline('BrightScript Debugger> ', true)
77
- if command =~ /^\s*$/ or Readline::HISTORY.to_a[-2] == command
78
- Readline::HISTORY.pop
79
- end
80
- case command
81
- when "q"
82
- thread.exit
83
- running = false
84
- else
85
- @show_prompt = false
86
- thread[:connection].puts(command)
87
- end
76
+ prompt = 'BrightScript Debugger> '
88
77
  else
89
- sleep 0.01
78
+ prompt = ''
79
+ end
80
+ command = Readline.readline(prompt, true)
81
+ if command =~ /^\s*$/ or Readline::HISTORY.to_a[-2] == command
82
+ Readline::HISTORY.pop
83
+ end
84
+ case command
85
+ when "q"
86
+ thread.exit
87
+ running = false
88
+ else
89
+ thread[:connection].puts(command)
90
90
  end
91
91
  rescue SystemExit, Interrupt
92
92
  thread[:connection].puts("\C-c")
@@ -103,9 +103,12 @@ module RokuBuilder
103
103
  while line = all_text.slice!(/^.*\n/) do
104
104
  puts line if !line.strip.empty?
105
105
  end
106
+
106
107
  if all_text.downcase == "BrightScript Debugger> ".downcase
107
108
  @show_prompt = true
108
109
  all_text = ""
110
+ else
111
+ @show_prompt = false
109
112
  end
110
113
  all_text
111
114
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "3.12.1"
5
+ VERSION = "3.12.2"
6
6
  end
@@ -95,7 +95,7 @@ class ConfigParserTest < Minitest::Test
95
95
  assert_equal "/tmp/project1", configs[:project_config][:directory]
96
96
  end
97
97
 
98
- def test_manifest_config_project_select
98
+ def test_manifest_config_project_directory_select
99
99
  logger = Logger.new("/dev/null")
100
100
  options = {
101
101
  config: File.expand_path(File.join(File.dirname(__FILE__), "test_files", "controller_config_test", "valid_config.json")),
@@ -12,7 +12,6 @@ class MonitorTest < Minitest::Test
12
12
  logger: Logger.new("/dev/null")
13
13
  }
14
14
  monitor = RokuBuilder::Monitor.new(**device_config)
15
- monitor.instance_variable_set(:@show_prompt, true)
16
15
 
17
16
  connection.expect(:waitfor, nil) do |config|
18
17
  assert_equal(/./, config['Match'])
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.12.1
4
+ version: 3.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - greeneca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip