1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rubygems/resolver
David Rodríguez ee5e684bc1 [rubygems/rubygems] Fix gem install <non-existent-gem> --force crash
Before:

```
$ gem install sfdsfdsfsdide --force
ERROR:  While executing gem ... (NoMethodError)
    undefined method `spec' for nil:NilClass

    @always_install << newest.spec
                             ^^^^^
```

After:

```
$ gem install sfdsfdsfsdide --force
ERROR:  Could not find a valid gem 'sfdsfdsfsdide' (>= 0) in any repository
```

https://github.com/rubygems/rubygems/commit/4e2bfd1101
2022-01-06 23:52:48 +09:00
..
api_set
molinillo/lib
activation_request.rb
api_set.rb
api_specification.rb
best_set.rb
composed_set.rb
conflict.rb
current_set.rb
dependency_request.rb
git_set.rb
git_specification.rb
index_set.rb
index_specification.rb
installed_specification.rb
installer_set.rb
local_specification.rb
lock_set.rb
lock_specification.rb
molinillo.rb
requirement_list.rb
set.rb
source_set.rb
spec_specification.rb
specification.rb
stats.rb
vendor_set.rb
vendor_specification.rb