Skip to content

Commit

Permalink
Merge 3b39b34 into c87058d
Browse files Browse the repository at this point in the history
  • Loading branch information
meckhardt committed Jun 23, 2017
2 parents c87058d + 3b39b34 commit 1d0eceb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -2,11 +2,11 @@ source 'https://rubygems.org'

gem 'vagrant',
git: 'https://github.com/mitchellh/vagrant.git',
ref: ENV.fetch('VAGRANT_VERSION', 'v1.7.2')
ref: ENV.fetch('VAGRANT_VERSION', 'v1.9.4')

gem 'cane', '~> 2.6'
gem 'coveralls', require: false
gem 'rake'
gem 'rake', '< 11.0'
gem 'rspec', '~> 3.1'
gem 'rspec-its', '~> 1.0'
gem 'tailor', '~> 1.4'
Expand Down
16 changes: 8 additions & 8 deletions lib/vagrant-proxyconf/action/configure_env_proxy.rb
Expand Up @@ -107,14 +107,14 @@ def environment_sed_script

def environment_config
<<-CONFIG.gsub(/^\s+/, '')
HTTP_PROXY=#{config.http || ''}
HTTPS_PROXY=#{config.https || ''}
FTP_PROXY=#{config.ftp || ''}
NO_PROXY=#{config.no_proxy || ''}
http_proxy=#{config.http || ''}
https_proxy=#{config.https || ''}
ftp_proxy=#{config.ftp || ''}
no_proxy=#{config.no_proxy || ''}
HTTP_PROXY='#{config.http}'
HTTPS_PROXY='#{config.https}'
FTP_PROXY='#{config.ftp}'
NO_PROXY='#{config.no_proxy}'
http_proxy='#{config.http}'
https_proxy='#{config.https}'
ftp_proxy='#{config.ftp}'
no_proxy='#{config.no_proxy}'
CONFIG
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-proxyconf/config/env_proxy.rb
Expand Up @@ -46,7 +46,7 @@ def config_for(key, value)
# still in v1.0.x.
value = value.inspect if key.name == :no_proxy

[var.upcase, var.downcase].map { |v| "export #{v}=#{value}\n" }.join
[var.upcase, var.downcase].map { |v| "export #{v}='#{value}'\n" }.join
end
end

Expand Down

0 comments on commit 1d0eceb

Please sign in to comment.