lib/rocktumbler/gem.rb in rocktumbler-0.1.1 vs lib/rocktumbler/gem.rb in rocktumbler-0.1.2
- old
+ new
@@ -29,11 +29,12 @@
return ", require: #{!autorequire.empty?}"
end
end
def generate_gem_source(source_options)
- return ", github: '#{source_options['github']}'" if source_options['github']
- return ", path: '#{source_options['path']}'" if source_options['path']
+ ['git','github','git_source','source','path','gist','bitbucket'].each do | source_type |
+ return ", #{source_type}: '#{source_options[source_type]}'" if source_options[source_type]
+ end
end
def retrieve_gem_information(gem_name)
bundled_gem = Bundler.definition.specs.select{|g| g.name == gem_name}.first
if bundled_gem