mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.2.0.preview.1
This brings several new features to RubyGems summarized here: https://github.com/rubygems/rubygems/blob/v2.2.0.preview.1/History.txt * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81629f0531
commit
95683e5cb2
25 changed files with 540 additions and 159 deletions
|
@ -45,9 +45,9 @@ requiring to see why it does not behave as you expect.
|
|||
|
||||
if spec then
|
||||
if options[:search_gems_first] then
|
||||
dirs = gem_paths(spec) + $LOAD_PATH
|
||||
dirs = spec.full_require_paths + $LOAD_PATH
|
||||
else
|
||||
dirs = $LOAD_PATH + gem_paths(spec)
|
||||
dirs = $LOAD_PATH + spec.full_require_paths
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -81,10 +81,6 @@ requiring to see why it does not behave as you expect.
|
|||
result
|
||||
end
|
||||
|
||||
def gem_paths(spec)
|
||||
spec.require_paths.collect { |d| File.join spec.full_gem_path, d }
|
||||
end
|
||||
|
||||
def usage # :nodoc:
|
||||
"#{program_name} FILE [FILE ...]"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue