Skip to content

Commit

Permalink
@ #493 | minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Oct 9, 2018
1 parent 673384e commit bb08486
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/teracy-dev/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.sync(plugins)
plugins.each do |plugin|

unless Util.exist? plugin['name']
logger.warn('Plugin name must be configured')
logger.warn("Plugin name must be configured for #{plugin}")
next
end

Expand All @@ -38,12 +38,12 @@ def self.sync(plugins)
end
when 'uninstalled'
if installed_plugins.has_key?(plugin['name'])
logger.info("uninstalling plugin: #{plugin['name']}")
logger.info("uninstalling plugin: #{plugin}")
plugin_manager.uninstall_plugin(plugin['name'])
reload_required = true
end
else
logger.debug('The plugin state is not set, no action will be taken')
logger.debug("The plugin state is not set, no action will be taken for #{plugin}")
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/teracy-dev/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def self.override(originHash, sourceHash)

if !originHash.has_key?(replaced_key)
if value.class.name == 'Hash'
originHash[key] = {}
originHash[key] = {}
elsif value.class.name == 'Array'
originHash[replaced_key] = []
originHash[replaced_key] = []
end
end

Expand Down

0 comments on commit bb08486

Please sign in to comment.