Method: Bundler::Dsl#github
- Defined in:
- lib/bundler/dsl.rb
permalink #github(repo, options = {}) ⇒ Object
169 170 171 172 173 174 175 |
# File 'lib/bundler/dsl.rb', line 169 def github(repo, = {}) raise InvalidArgumentError, "GitHub sources require a block" unless block_given? github_uri = @git_sources["github"].call(repo) = normalize_hash().merge("uri" => github_uri) git_source = @sources.add_git_source() with_source(git_source) { yield } end |