lib/vim-flavor/flavor.rb in vim-flavor-1.0.1 vs lib/vim-flavor/flavor.rb in vim-flavor-1.0.2
- old
+ new
@@ -25,13 +25,12 @@
@cached_repo_path ||=
"#{ENV['HOME'].to_stash_path}/repos/#{@repo_name.zap}"
end
def self.github_repo_uri(user, repo)
- @github_repo_uri ||= lambda {|user, repo|
- "git://github.com/#{user}/#{repo}.git"
- }
- @github_repo_uri.call(user, repo)
+ p = (ENV['VIM_FLAVOR_GITHUB_URI_PREFIX'] ||= 'git://github.com/')
+ s = (ENV['VIM_FLAVOR_GITHUB_URI_SUFFIX'] ||= '.git')
+ "#{p}#{user}/#{repo}#{s}"
end
def repo_uri
@repo_uri ||=
if /^([^\/]+)$/.match(repo_name)