lib/rocktumbler/gem.rb in rocktumbler-0.2.0 vs lib/rocktumbler/gem.rb in rocktumbler-0.2.1
- old
+ new
@@ -50,9 +50,12 @@
end
def format_source
return '' unless @gem_dep.source
source_options = @gem_dep.source.options
+ if source_options['remotes']
+ return ", source: '#{source_options['remotes'].first}'"
+ end
%w(git github git_source source path gist bitbucket).each do |source_type|
next unless source_options[source_type]
return ", #{source_type}: '#{source_options[source_type]}'"
end
end