bundle_info 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,40 @@
1
+ @announce @no-clobber
2
+ Feature: Command line
3
+
4
+ @gemfile
5
+ Scenario: Valid Gemfile
6
+ Given a file named "Gemfile" with:
7
+ """
8
+ source 'https://rubygems.org'
9
+
10
+ group :development do
11
+ gem 'awesome_print', '~> 1.0.2'
12
+ gem 'benchmark-ips', '~> 1.2.0'
13
+ gem 'pry', '~> 0.9.10'
14
+ gem 'rake', '~> 0.9.2.2'
15
+ gem 'mass_assignment_guard' # yanked gem
16
+ end
17
+
18
+ group :test do
19
+ gem 'guard-minitest', '~> 0.5.0'
20
+ gem 'minitest', '~> 3.3.0'
21
+ gem 'rack-test', '~> 0.6.1'
22
+ gem 'turn', '~> 0.9.6'
23
+ gem 'i_dont_exist'
24
+ end
25
+ """
26
+ When I run `bundle_info`
27
+ Then the output should contain exactly:
28
+ """
29
+ awesome_print: Great Ruby dubugging companion: pretty print Ruby objects to visualize their ...
30
+ benchmark-ips: A iterations per second enhancement to Benchmark
31
+ pry: An IRB alternative and runtime developer console
32
+ rake: Rake is a Make-like program implemented in Ruby. Tasks and dependencies aresp...
33
+ mass_assignment_guard:
34
+ guard-minitest: Guard::Minitest automatically run your tests with MiniTest framework (much li...
35
+ minitest: minitest provides a complete suite of testing facilities supporting TDD, BDD,...
36
+ rack-test: Rack::Test is a small, simple testing API for Rack apps. It can be used on it...
37
+ turn: Turn provides a set of alternative runners for MiniTest, both colorful and in...
38
+ i_dont_exist:
39
+
40
+ """
@@ -21,11 +21,9 @@ module BundleInfo
21
21
  gems.dependencies.map do |dep|
22
22
  info = Gems.info dep.name
23
23
  output = "#{dep.name}:".green
24
- if info
25
- desc = info['info'].gsub(/\n/, '')
24
+ if info && info['info']
25
+ desc = info['info'].gsub(/\n/, ' ')
26
26
  output += " #{desc.truncate(80)}"
27
- else
28
- output += " Not found on rubygems.org"
29
27
  end
30
28
  puts output
31
29
  end
@@ -1,3 +1,3 @@
1
1
  module BundleInfo
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-15 00:00:00.000000000 Z
12
+ date: 2012-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gemnasium-parser
@@ -155,6 +155,7 @@ files:
155
155
  - Rakefile
156
156
  - bin/bundle_info
157
157
  - bundler_info.gemspec
158
+ - features/command_line.feature
158
159
  - features/support/env.rb
159
160
  - features/support/vcr.rb
160
161
  - lib/bundle_info.rb
@@ -185,5 +186,7 @@ specification_version: 3
185
186
  summary: Command-line tool to display information about all the gems in a project's
186
187
  Gemfile
187
188
  test_files:
189
+ - features/command_line.feature
188
190
  - features/support/env.rb
189
191
  - features/support/vcr.rb
192
+ has_rdoc: