Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
only invalid gemname
Browse files Browse the repository at this point in the history
white space fixes

add a line
  • Loading branch information
jendiamond committed Sep 7, 2013
1 parent c17c215 commit cea2118
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,12 @@ def binstubs(*gems)
"Do not attempt to fetch gems remotely and use the gem cache instead"
def outdated(*gems)
sources = Array(options[:source])
Bundler.definition.validate_ruby!

gems.each do |gem_name|
select_spec(gem_name)
end

Bundler.definition.validate_ruby!
current_specs = Bundler.ui.silence { Bundler.load.specs }
current_dependencies = {}
Bundler.ui.silence { Bundler.load.dependencies.each { |dep| current_dependencies[dep.name] = dep } }
Expand Down Expand Up @@ -879,7 +883,6 @@ def not_found_message(missing_gem_name, alternatives)
message
end


def without_groups_message
groups = Bundler.settings.without
group_list = [groups[0...-1].join(", "), groups[-1..-1]].
Expand Down
7 changes: 7 additions & 0 deletions spec/commands/outdated_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,11 @@
end
end
end

describe "with invalid gem name" do
it "returns could not find gem name" do
bundle "outdated invalid_gem_name"
expect(out).to include("Could not find gem 'invalid_gem_name'.")
end
end
end

0 comments on commit cea2118

Please sign in to comment.