mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
parent
567db6064b
commit
0b632b9cdd
13 changed files with 19 additions and 19 deletions
|
@ -356,7 +356,7 @@ class Gem::RequestSet::GemDependencyAPI
|
|||
# Use the given tag for git:, gist: and github: dependencies.
|
||||
|
||||
def gem(name, *requirements)
|
||||
options = requirements.pop if requirements.last.kind_of?(Hash)
|
||||
options = requirements.pop if requirements.last.is_a?(Hash)
|
||||
options ||= {}
|
||||
|
||||
options[:git] = @current_repository if @current_repository
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue