mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fixes the test running.
This commit is contained in:
parent
6262d38e9f
commit
1c7bed7ff8
1 changed files with 4 additions and 2 deletions
|
@ -38,11 +38,13 @@ module Google # deviates from other bin stuff to accomodate gem
|
|||
|
||||
# based off of virtual_box.rb
|
||||
def available?
|
||||
# Make sure the gem we use is enabled.
|
||||
availability = if Gem::Specification.respond_to?(:find_all_by_name)
|
||||
!Gem::Specification.find_all_by_name('google_api_client').empty? # newest rubygems
|
||||
!Gem::Specification.find_all_by_name('google-api-client').empty? # newest rubygems
|
||||
else
|
||||
!Gem.source_index.find_name('google_api_client').empty? # legacy
|
||||
!Gem.source_index.find_name('google-api-client').empty? # legacy
|
||||
end
|
||||
|
||||
if availability
|
||||
for service in services
|
||||
for collection in self.class_for(service).collections
|
||||
|
|
Loading…
Add table
Reference in a new issue