bundle_info 0.0.2 → 0.0.3

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.
@@ -1,3 +1,3 @@
1
1
  module BundleInfo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/bundle_info.rb CHANGED
@@ -20,8 +20,14 @@ module BundleInfo
20
20
  end
21
21
  gems.dependencies.map do |dep|
22
22
  info = Gems.info dep.name
23
- desc = info['info'].gsub(/\n/, '')
24
- puts "#{dep.name}:".green + " #{desc.truncate(80)}"
23
+ output = "#{dep.name}:".green
24
+ if info
25
+ desc = info['info'].gsub(/\n/, '')
26
+ output += " #{desc.truncate(80)}"
27
+ else
28
+ output += " Not found on rubygems.org"
29
+ end
30
+ puts output
25
31
  end
26
32
  end
27
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: