lib/bundle_info.rb in bundle_info-0.0.3 vs lib/bundle_info.rb in bundle_info-0.0.4

- old
+ new

@@ -19,14 +19,12 @@ exit end gems.dependencies.map do |dep| info = Gems.info dep.name output = "#{dep.name}:".green - if info - desc = info['info'].gsub(/\n/, '') + if info && info['info'] + desc = info['info'].gsub(/\n/, ' ') output += " #{desc.truncate(80)}" - else - output += " Not found on rubygems.org" end puts output end end end \ No newline at end of file