Skip to content

Commit

Permalink
Remove analyze config and add to main config
Browse files Browse the repository at this point in the history
  • Loading branch information
greeneca committed Nov 29, 2018
1 parent 5875a0b commit 727eec6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
roku_builder (4.9.3)
roku_builder (4.9.4)
faraday (~> 0.13)
faraday-digestauth (~> 0.2)
git (~> 1.3)
Expand Down Expand Up @@ -30,7 +30,7 @@ GEM
crack (0.4.3)
safe_yaml (~> 1.0.0)
docile (1.3.1)
faraday (0.15.3)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
faraday-digestauth (0.3.0)
faraday (~> 0.7)
Expand Down Expand Up @@ -137,4 +137,4 @@ DEPENDENCIES
yard (~> 0.9)

BUNDLED WITH
1.16.1
1.17.1
2 changes: 1 addition & 1 deletion lib/roku_builder/config.rb
Expand Up @@ -192,7 +192,7 @@ def fix_config_symbol_values
end

def fix_project_config_symbol_values
if @config[:projects] [:default]
if @config[:projects][:default]
@config[:projects][:default] = @config[:projects][:default].to_sym
end
@config[:projects].each_pair do |key,value|
Expand Down
3 changes: 1 addition & 2 deletions lib/roku_builder/plugins/analyzer.rb
Expand Up @@ -30,7 +30,6 @@ def self.dependencies
def analyze(options:, quiet: false)
@options = options
@warnings = []
plugin_config = get_config(".roku_builder_analyze.json", true) || {}
analyzer_config = get_config("inspector_config.json")
performance_config = get_config("performance_config.json")
@inspector_config = analyzer_config[:inspectors]
Expand All @@ -41,7 +40,7 @@ def analyze(options:, quiet: false)
manifest_inspector = ManifestInspector.new(config: @config, dir: dir, raf: raf_inspector)
@warnings.concat(manifest_inspector.run(analyzer_config[:inspectors]))
has_source_dir = false
libraries = plugin_config[:libraries]
libraries = @config.project[:libraries]
libraries ||= []
Dir.glob(File.join(dir, "**", "*")).each do |file_path|
file = file_path.dup; file.slice!(dir)
Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/version.rb
Expand Up @@ -2,5 +2,5 @@

module RokuBuilder
# Version of the RokuBuilder Gem
VERSION = "4.9.3"
VERSION = "4.9.4"
end

0 comments on commit 727eec6

Please sign in to comment.