mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
merge revision(s) 44515: [Backport #9375]
* lib/rubygems: Update to RubyGems master 21e409d / RubyGems 2.2.1. See http://rubygems.rubyforge.org/rubygems-update/History_txt.html for a list of bug fixes. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
32e4d034ca
commit
3efb494a21
30 changed files with 256 additions and 163 deletions
|
@ -206,6 +206,24 @@ class Gem::BasicSpecification
|
|||
[relative_extension_dir].concat @require_paths
|
||||
end
|
||||
|
||||
##
|
||||
# Returns the paths to the source files for use with analysis and
|
||||
# documentation tools. These paths are relative to full_gem_path.
|
||||
|
||||
def source_paths
|
||||
paths = raw_require_paths.dup
|
||||
|
||||
if @extensions then
|
||||
ext_dirs = @extensions.map do |extension|
|
||||
extension.split(File::SEPARATOR, 2).first
|
||||
end.uniq
|
||||
|
||||
paths.concat ext_dirs
|
||||
end
|
||||
|
||||
paths.uniq
|
||||
end
|
||||
|
||||
##
|
||||
# Return a Gem::Specification from this gem
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue