lib/kpm/inspector.rb in kpm-0.8.2 vs lib/kpm/inspector.rb in kpm-0.9.0

- old
+ new

@@ -31,11 +31,11 @@ def add_sha1_info(bundles_dir, all_plugins) sha1_filename = KPM::BaseInstaller::SHA1_FILENAME sha1_file = "#{bundles_dir}/#{sha1_filename}" sha1_checker = Sha1Checker.from_file(sha1_file) - all_plugins.keys.each do |cur_plugin_name| + all_plugins.each_key do |cur_plugin_name| cur = all_plugins[cur_plugin_name] sha1_checker.all_sha1.each do |e| coord, sha1 = e coordinate_map = KPM::Coordinates.get_coordinate_map(coord) @@ -50,10 +50,10 @@ end end def add_plugin_identifier_info(plugins, all_plugins) plugins_manager = PluginsManager.new(plugins, @logger) - all_plugins.keys.each do |cur| + all_plugins.each_key do |cur| plugin_key, entry = plugins_manager.get_identifier_key_and_entry(cur) all_plugins[cur][:plugin_key] = plugin_key all_plugins[cur][:group_id] = entry ? entry['group_id'] : nil all_plugins[cur][:artifact_id] = entry ? entry['artifact_id'] : nil all_plugins[cur][:packaging] = entry ? entry['packaging'] : nil