roku_builder 4.2.1 → 4.2.2

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: 96078c06d0fadd3351016a57dbfa2d8647943fd6
4
- data.tar.gz: ff81f747fca7e2cb63d3b9068cb58077133ebaad
3
+ metadata.gz: e19b5128e44e63ada8c0d95b803da19f48449e4a
4
+ data.tar.gz: 64868208b98f199b93c46dc393d0ed716da7245f
5
5
  SHA512:
6
- metadata.gz: 9e1db79b2b3aa25ae8f85516ddfcff4b2e1d28fe175644d4bf93988df94e250e6dc12084eee6a945c68c919f69905f89795c35bd4018525aa32c13d7f60c4545
7
- data.tar.gz: fba309af11a0ccda44e640741d971a12d052b24d517a1c49e3125342b6c9232c24cda599912437d44c05229b408208b7f15b77426f2185271d6aa2e85b6b4acf
6
+ metadata.gz: 23791ff20262d64387138ba123bbf16825e5a708ce256c4d3a4803add94cc8cdb4d9803c248067fbea818e95aefe5eadf278bbdd7544ff4d4034b7ec0f6209b2
7
+ data.tar.gz: e3297d64882d4c7bc740e350890420050e219da9f02d346467a5e62ceddad67a436c0be0a07ef518bdbb92c2a48e83ff7213683dace1c47f3d5a4764e51842b7
data/CHANGELOG CHANGED
@@ -1,3 +1,12 @@
1
+ = 4.2.2 =
2
+
3
+ - Fix missing excludes parameter
4
+ - Allow printing generic manifest parameters
5
+
6
+ = 4.2.1 =
7
+
8
+ - Fix excludes feature
9
+
1
10
  = 4.2.0 =
2
11
 
3
12
  - Added `--sgperf` command to do performance reports
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roku_builder (4.2.1)
4
+ roku_builder (4.2.2)
5
5
  faraday (~> 0.12)
6
6
  faraday-digestauth (~> 0.2)
7
7
  git (~> 1.3)
@@ -102,7 +102,7 @@ module RokuBuilder
102
102
  else
103
103
  content[:folders] = @config.project[:folders]
104
104
  content[:files] = @config.project[:files]
105
- content[:excludes] = @config.project[:excludes] if @options[:exclude] or @options.exclude_command?
105
+ content[:excludes] = @config.project[:excludes] if @config.project[:excludes] and (@options[:exclude] or @options.exclude_command?)
106
106
  end
107
107
  content
108
108
  end
@@ -114,6 +114,7 @@ module RokuBuilder
114
114
  # @param regexp [Regexp] regular expression to filter text on
115
115
  # @return [String] remaining partial line text
116
116
  def manage_text(all_text:, txt:, regexp: nil)
117
+ raise ExecutionError, "Connection Closed" unless txt
117
118
  if /connection is already in use/ =~ txt
118
119
  raise ExecutionError, "Connection is in use"
119
120
  end
@@ -146,7 +146,7 @@ module RokuBuilder
146
146
  start_reg = /RoGraphics instance/
147
147
  end_reg = /Available memory/
148
148
  lines = get_command_response(command: "r2d2_bitmaps", start_reg: start_reg, end_reg: end_reg)
149
- lines = sort_image_lines(lines)
149
+ lines = sort_image_lines(lines, /0x[^\s]+\s+\d+\s+\d+\s+\d+\s+\d+/, 4)
150
150
  lines.each {|line| print line}
151
151
  end
152
152
  def print_memmory_usage
@@ -224,14 +224,13 @@ module RokuBuilder
224
224
  end
225
225
  end
226
226
 
227
- def sort_image_lines(lines)
227
+ def sort_image_lines(lines, reg, size_index)
228
228
  new_lines = []
229
229
  line = lines.shift
230
230
  while line != nil
231
- reg = /0x[^\s]+\s+\d+\s+\d+\s+\d+\s+\d+/
232
231
  line_data = []
233
232
  while line =~ reg
234
- line_data.push({line: line, size: line.split[4].to_i})
233
+ line_data.push({line: line, size: line.split[size_index].to_i})
235
234
  line = lines.shift
236
235
  end
237
236
  line_data.sort! {|a, b| b[:size] <=> a[:size]}
@@ -22,14 +22,6 @@ module RokuBuilder
22
22
  end
23
23
 
24
24
  def print(options:)
25
- attributes = [
26
- :title, :build_version, :app_version, :root_dir, :app_name
27
- ]
28
-
29
- unless attributes.include? options[:print]
30
- raise ExecutionError, "Unknown attribute: #{options[:print]}"
31
- end
32
-
33
25
  manifest = Manifest.new(config: @config)
34
26
 
35
27
  case options[:print]
@@ -45,6 +37,12 @@ module RokuBuilder
45
37
  major = manifest.major_version
46
38
  minor = manifest.minor_version
47
39
  printf "%s.%s", major, minor
40
+ else
41
+ if manifest.send(options[:print])
42
+ printf manifest.send(options[:print])
43
+ else
44
+ raise ExecutionError, "Unknown attribute: #{options[:print]}"
45
+ end
48
46
  end
49
47
  end
50
48
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "4.2.1"
5
+ VERSION = "4.2.2"
6
6
  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.2.1
4
+ version: 4.2.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-08-25 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip