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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c19396d0acc214911d18c3be499dc2577f1a10de
4
- data.tar.gz: 2b0fc5733f711314090aa5d5758f803e105df7af
3
+ metadata.gz: a3374b8a07e80ff6fbc630e47407547bca348986
4
+ data.tar.gz: ad8690cb4312f629218ff66a6845f3631d41208e
5
5
  SHA512:
6
- metadata.gz: 3df993d3bee3eb41e489b947fe537d5b3585aac44c2939d9c398d40978b3476079dd11f407e9381fb8598226fec8eaf81be42ebe8d72938bcca8646514ae7ce0
7
- data.tar.gz: d92b072dc3d1a6d803bac96d004005c76418f6a390cbd0737899b4c73ad2162a6264c5a794c03ec4ab3eb3d3924485094c84d51907a2c8d6e33d134cbd04f666
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 teh following command:
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RokuBuilder
4
4
  # Version of the RokuBuilder Gem
5
- VERSION = "3.8.0"
5
+ VERSION = "3.8.1"
6
6
  end
@@ -9,7 +9,7 @@ class Scriptertest < Minitest::Test
9
9
  assert_equal RokuBuilder::BAD_PRINT_ATTRIBUTE, code
10
10
  end
11
11
 
12
- def test_scripter_print_config_values
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.0
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-06-29 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip