roku_builder 3.8.0 → 3.8.1
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 +4 -4
- data/README.md +1 -1
- data/lib/roku_builder/scripter.rb +3 -1
- data/lib/roku_builder/version.rb +1 -1
- data/tests/roku_builder/scripter_test.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3374b8a07e80ff6fbc630e47407547bca348986
|
4
|
+
data.tar.gz: ad8690cb4312f629218ff66a6845f3631d41208e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32c2f4df3680ea15fa9aaa02c66e41a5ef5dcfc7999348786068f4a3c1f4650a90a677884724921d08b9e2a6662118e77c6011a78088d80e45d0f3f39dbeae63
|
7
|
+
data.tar.gz: 43e10ec15f221df63d2cf258a5c219074840366ac25205a5581362fe1c181a0c9a7a65cd4543ae55333f641681738f1690292cdd8933255a54a2e982b4c7541b
|
data/README.md
CHANGED
@@ -191,7 +191,7 @@ types and how many of each are being created.
|
|
191
191
|
$ roku --profile stats
|
192
192
|
|
193
193
|
If you want to see more information about each node you can monitor the
|
194
|
-
profile log (See Monitoring Logs above) and enter
|
194
|
+
profile log (See Monitoring Logs above) and enter the following command:
|
195
195
|
|
196
196
|
$ sgnodes all
|
197
197
|
|
@@ -10,7 +10,7 @@ module RokuBuilder
|
|
10
10
|
# @param configs [Hash] Parsed config hash
|
11
11
|
def self.print(attribute:, configs:)
|
12
12
|
attributes = [
|
13
|
-
:title, :build_version, :app_version, :root_dir
|
13
|
+
:title, :build_version, :app_version, :root_dir, :app_name
|
14
14
|
]
|
15
15
|
|
16
16
|
unless attributes.include? attribute
|
@@ -22,6 +22,8 @@ module RokuBuilder
|
|
22
22
|
case attribute
|
23
23
|
when :root_dir
|
24
24
|
printf "%s", configs[:project_config][:directory]
|
25
|
+
when :app_name
|
26
|
+
printf "%s", configs[:project_config][:app_name]
|
25
27
|
when :title
|
26
28
|
printf "%s", ManifestManager.read_manifest(**read_config)[:title]
|
27
29
|
when :build_version
|
data/lib/roku_builder/version.rb
CHANGED
@@ -9,7 +9,7 @@ class Scriptertest < Minitest::Test
|
|
9
9
|
assert_equal RokuBuilder::BAD_PRINT_ATTRIBUTE, code
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
12
|
+
def test_scripter_print_config_root_dir
|
13
13
|
call_count = 0
|
14
14
|
code = nil
|
15
15
|
fake_print = lambda { |message, path|
|
@@ -24,6 +24,21 @@ class Scriptertest < Minitest::Test
|
|
24
24
|
assert_equal 1, call_count
|
25
25
|
assert_equal RokuBuilder::SUCCESS, code
|
26
26
|
end
|
27
|
+
def test_scripter_print_config_app_name
|
28
|
+
call_count = 0
|
29
|
+
code = nil
|
30
|
+
fake_print = lambda { |message, path|
|
31
|
+
assert_equal "%s", message
|
32
|
+
assert_equal "TestApp", path
|
33
|
+
call_count+=1
|
34
|
+
}
|
35
|
+
configs = {project_config: {app_name: "TestApp"}}
|
36
|
+
RokuBuilder::Scripter.stub(:printf, fake_print) do
|
37
|
+
code = RokuBuilder::Scripter.print(attribute: :app_name, configs: configs)
|
38
|
+
end
|
39
|
+
assert_equal 1, call_count
|
40
|
+
assert_equal RokuBuilder::SUCCESS, code
|
41
|
+
end
|
27
42
|
|
28
43
|
def test_scripter_print_manifest_title
|
29
44
|
call_count = 0
|
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.8.
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- greeneca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|