vagrant-proxyconf 1.5.2 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.travis.yml +11 -14
  4. data/CHANGELOG.md +38 -0
  5. data/Gemfile +28 -7
  6. data/LICENSE.txt +1 -1
  7. data/README.md +147 -18
  8. data/Rakefile +1 -27
  9. data/development/Dockerfile +45 -0
  10. data/development/README.md +2 -0
  11. data/development/Vagrantfile.example +185 -9
  12. data/development/install-c7.sh +46 -0
  13. data/development/install-debian.sh +55 -0
  14. data/development/tinyproxy.conf +333 -0
  15. data/lib/vagrant-proxyconf/action.rb +15 -7
  16. data/lib/vagrant-proxyconf/action/base.rb +47 -5
  17. data/lib/vagrant-proxyconf/action/configure_apt_proxy.rb +17 -0
  18. data/lib/vagrant-proxyconf/action/configure_chef_proxy.rb +32 -27
  19. data/lib/vagrant-proxyconf/action/configure_docker_proxy.rb +132 -14
  20. data/lib/vagrant-proxyconf/action/configure_env_proxy.rb +58 -11
  21. data/lib/vagrant-proxyconf/action/configure_git_proxy.rb +25 -9
  22. data/lib/vagrant-proxyconf/action/configure_npm_proxy.rb +14 -6
  23. data/lib/vagrant-proxyconf/action/configure_pear_proxy.rb +15 -8
  24. data/lib/vagrant-proxyconf/action/configure_svn_proxy.rb +15 -8
  25. data/lib/vagrant-proxyconf/action/configure_yum_proxy.rb +16 -0
  26. data/lib/vagrant-proxyconf/action/is_enabled.rb +18 -1
  27. data/lib/vagrant-proxyconf/cap/linux/chef_proxy_conf.rb +17 -0
  28. data/lib/vagrant-proxyconf/cap/linux/docker_proxy_conf.rb +2 -1
  29. data/lib/vagrant-proxyconf/cap/linux/yum_proxy_conf.rb +19 -0
  30. data/lib/vagrant-proxyconf/cap/util.rb +4 -5
  31. data/lib/vagrant-proxyconf/capability.rb +10 -0
  32. data/lib/vagrant-proxyconf/config.rb +20 -0
  33. data/lib/vagrant-proxyconf/config/chef_proxy.rb +25 -0
  34. data/lib/vagrant-proxyconf/config/docker_proxy.rb +25 -0
  35. data/lib/vagrant-proxyconf/config/git_proxy.rb +3 -0
  36. data/lib/vagrant-proxyconf/config/npm_proxy.rb +25 -0
  37. data/lib/vagrant-proxyconf/config/pear_proxy.rb +19 -0
  38. data/lib/vagrant-proxyconf/version.rb +1 -1
  39. data/locales/en.yml +38 -0
  40. data/resources/yum_config.awk +1 -0
  41. data/spec/spec_helper.rb +27 -9
  42. data/spec/unit/fixtures/docker_client_config_json_enabled_proxy +9 -0
  43. data/spec/unit/fixtures/docker_client_config_json_no_proxy +5 -0
  44. data/spec/unit/fixtures/etc_environment_only_http_proxy.conf +9 -0
  45. data/spec/unit/fixtures/yum_with_repository_and_proxy_containing_special_chars.conf +10 -0
  46. data/spec/unit/vagrant-proxyconf/action/base_spec.rb +191 -0
  47. data/spec/unit/vagrant-proxyconf/action/configure_apt_proxy_spec.rb +162 -0
  48. data/spec/unit/vagrant-proxyconf/action/configure_chef_proxy_spec.rb +32 -0
  49. data/spec/unit/vagrant-proxyconf/action/configure_docker_proxy_spec.rb +491 -0
  50. data/spec/unit/vagrant-proxyconf/action/configure_env_proxy_spec.rb +105 -4
  51. data/spec/unit/vagrant-proxyconf/action/configure_git_proxy_spec.rb +116 -0
  52. data/spec/unit/vagrant-proxyconf/action/configure_npm_proxy_spec.rb +67 -0
  53. data/spec/unit/vagrant-proxyconf/action/configure_pear_proxy_spec.rb +116 -0
  54. data/spec/unit/vagrant-proxyconf/action/configure_svn_proxy_spec.rb +85 -0
  55. data/spec/unit/vagrant-proxyconf/action/configure_yum_proxy_spec.rb +100 -0
  56. data/spec/unit/vagrant-proxyconf/action/is_enabled_spec.rb +162 -12
  57. data/spec/unit/vagrant-proxyconf/cap/linux/docker_proxy_conf_spec.rb +1 -1
  58. data/spec/unit/vagrant-proxyconf/cap/util_spec.rb +2 -2
  59. data/spec/unit/vagrant-proxyconf/config/key_mixin_spec.rb +1 -1
  60. data/spec/unit/vagrant-proxyconf/resources/yum_config_spec.rb +14 -0
  61. data/test/issues/180/.rspec +2 -0
  62. data/test/issues/180/Dockerfile +47 -0
  63. data/test/issues/180/README.md +31 -0
  64. data/test/issues/180/Rakefile +27 -0
  65. data/test/issues/180/Vagrantfile +31 -0
  66. data/test/issues/180/entrypoint.sh +50 -0
  67. data/test/issues/180/spec/default/redhat_spec.rb +15 -0
  68. data/test/issues/180/spec/docker_host/redhat_spec.rb +165 -0
  69. data/test/issues/180/spec/spec_helper.rb +43 -0
  70. data/test/issues/180/tinyproxy.conf +333 -0
  71. data/travis/before_install +26 -0
  72. metadata +44 -4
@@ -0,0 +1,26 @@
1
+ #!/bin/bash
2
+
3
+ set -eu -o pipefail
4
+
5
+ remove_default_specs() {
6
+ echo "Removing default gemspec"
7
+ find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete
8
+ }
9
+
10
+ install_bundler() {
11
+ echo "Uninstalling current Bundler versions"
12
+ rvm @global do gem uninstall bundler --all --executables
13
+ gem uninstall bundler --all --executables
14
+ echo "Installing Bundler '$BUNDLER_VERSION'"
15
+ gem install bundler --version "$BUNDLER_VERSION"
16
+ }
17
+
18
+ print_bundler_version() {
19
+ bundler --version
20
+ }
21
+
22
+ if [ -n "${BUNDLER_VERSION:-}" ]; then
23
+ remove_default_specs
24
+ install_bundler
25
+ print_bundler_version
26
+ fi
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-proxyconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teemu Matilainen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2019-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Vagrant plugin that configures the virtual machine to use proxy servers
14
14
  email:
@@ -27,8 +27,12 @@ files:
27
27
  - README.md
28
28
  - Rakefile
29
29
  - development/.gitignore
30
+ - development/Dockerfile
30
31
  - development/README.md
31
32
  - development/Vagrantfile.example
33
+ - development/install-c7.sh
34
+ - development/install-debian.sh
35
+ - development/tinyproxy.conf
32
36
  - lib/vagrant-proxyconf.rb
33
37
  - lib/vagrant-proxyconf/action.rb
34
38
  - lib/vagrant-proxyconf/action/base.rb
@@ -46,22 +50,28 @@ files:
46
50
  - lib/vagrant-proxyconf/cap/coreos/docker_proxy_conf.rb
47
51
  - lib/vagrant-proxyconf/cap/debian/apt_proxy_conf.rb
48
52
  - lib/vagrant-proxyconf/cap/debian/docker_proxy_conf.rb
53
+ - lib/vagrant-proxyconf/cap/linux/chef_proxy_conf.rb
49
54
  - lib/vagrant-proxyconf/cap/linux/docker_proxy_conf.rb
50
55
  - lib/vagrant-proxyconf/cap/linux/env_proxy_conf.rb
51
56
  - lib/vagrant-proxyconf/cap/linux/git_proxy_conf.rb
52
57
  - lib/vagrant-proxyconf/cap/linux/npm_proxy_conf.rb
53
58
  - lib/vagrant-proxyconf/cap/linux/pear_proxy_conf.rb
54
59
  - lib/vagrant-proxyconf/cap/linux/svn_proxy_conf.rb
60
+ - lib/vagrant-proxyconf/cap/linux/yum_proxy_conf.rb
55
61
  - lib/vagrant-proxyconf/cap/redhat/yum_proxy_conf.rb
56
62
  - lib/vagrant-proxyconf/cap/util.rb
57
63
  - lib/vagrant-proxyconf/cap/windows/env_proxy_conf.rb
58
64
  - lib/vagrant-proxyconf/capability.rb
59
65
  - lib/vagrant-proxyconf/config.rb
60
66
  - lib/vagrant-proxyconf/config/apt_proxy.rb
67
+ - lib/vagrant-proxyconf/config/chef_proxy.rb
68
+ - lib/vagrant-proxyconf/config/docker_proxy.rb
61
69
  - lib/vagrant-proxyconf/config/env_proxy.rb
62
70
  - lib/vagrant-proxyconf/config/git_proxy.rb
63
71
  - lib/vagrant-proxyconf/config/key.rb
64
72
  - lib/vagrant-proxyconf/config/key_mixin.rb
73
+ - lib/vagrant-proxyconf/config/npm_proxy.rb
74
+ - lib/vagrant-proxyconf/config/pear_proxy.rb
65
75
  - lib/vagrant-proxyconf/config/proxy.rb
66
76
  - lib/vagrant-proxyconf/config/svn_proxy.rb
67
77
  - lib/vagrant-proxyconf/config/yum_proxy.rb
@@ -74,7 +84,10 @@ files:
74
84
  - locales/en.yml
75
85
  - resources/yum_config.awk
76
86
  - spec/spec_helper.rb
87
+ - spec/unit/fixtures/docker_client_config_json_enabled_proxy
88
+ - spec/unit/fixtures/docker_client_config_json_no_proxy
77
89
  - spec/unit/fixtures/empty
90
+ - spec/unit/fixtures/etc_environment_only_http_proxy.conf
78
91
  - spec/unit/fixtures/yum_only_disabled_proxy.conf
79
92
  - spec/unit/fixtures/yum_only_main.conf
80
93
  - spec/unit/fixtures/yum_only_main_with_disabled_proxy.conf
@@ -85,9 +98,11 @@ files:
85
98
  - spec/unit/fixtures/yum_with_repository_and_disabled_proxy.conf
86
99
  - spec/unit/fixtures/yum_with_repository_and_new_proxy.conf
87
100
  - spec/unit/fixtures/yum_with_repository_and_proxy.conf
101
+ - spec/unit/fixtures/yum_with_repository_and_proxy_containing_special_chars.conf
88
102
  - spec/unit/fixtures/yum_with_repository_and_proxy_without_userinfo.conf
89
103
  - spec/unit/support/fixture.rb
90
104
  - spec/unit/support/shared/apt_proxy_config.rb
105
+ - spec/unit/vagrant-proxyconf/action/base_spec.rb
91
106
  - spec/unit/vagrant-proxyconf/action/configure_apt_proxy_spec.rb
92
107
  - spec/unit/vagrant-proxyconf/action/configure_chef_proxy_spec.rb
93
108
  - spec/unit/vagrant-proxyconf/action/configure_docker_proxy_spec.rb
@@ -123,6 +138,17 @@ files:
123
138
  - spec/unit/vagrant-proxyconf/resource_spec.rb
124
139
  - spec/unit/vagrant-proxyconf/resources/yum_config_spec.rb
125
140
  - spec/unit/vagrant-proxyconf/userinfo_uri_spec.rb
141
+ - test/issues/180/.rspec
142
+ - test/issues/180/Dockerfile
143
+ - test/issues/180/README.md
144
+ - test/issues/180/Rakefile
145
+ - test/issues/180/Vagrantfile
146
+ - test/issues/180/entrypoint.sh
147
+ - test/issues/180/spec/default/redhat_spec.rb
148
+ - test/issues/180/spec/docker_host/redhat_spec.rb
149
+ - test/issues/180/spec/spec_helper.rb
150
+ - test/issues/180/tinyproxy.conf
151
+ - travis/before_install
126
152
  - vagrant-proxyconf.gemspec
127
153
  homepage: http://tmatilai.github.io/vagrant-proxyconf/
128
154
  licenses:
@@ -144,13 +170,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
170
  version: '0'
145
171
  requirements: []
146
172
  rubyforge_project:
147
- rubygems_version: 2.4.5.1
173
+ rubygems_version: 2.6.14.1
148
174
  signing_key:
149
175
  specification_version: 4
150
176
  summary: A Vagrant plugin that configures the virtual machine to use proxy servers
151
177
  test_files:
152
178
  - spec/spec_helper.rb
179
+ - spec/unit/fixtures/docker_client_config_json_enabled_proxy
180
+ - spec/unit/fixtures/docker_client_config_json_no_proxy
153
181
  - spec/unit/fixtures/empty
182
+ - spec/unit/fixtures/etc_environment_only_http_proxy.conf
154
183
  - spec/unit/fixtures/yum_only_disabled_proxy.conf
155
184
  - spec/unit/fixtures/yum_only_main.conf
156
185
  - spec/unit/fixtures/yum_only_main_with_disabled_proxy.conf
@@ -161,9 +190,11 @@ test_files:
161
190
  - spec/unit/fixtures/yum_with_repository_and_disabled_proxy.conf
162
191
  - spec/unit/fixtures/yum_with_repository_and_new_proxy.conf
163
192
  - spec/unit/fixtures/yum_with_repository_and_proxy.conf
193
+ - spec/unit/fixtures/yum_with_repository_and_proxy_containing_special_chars.conf
164
194
  - spec/unit/fixtures/yum_with_repository_and_proxy_without_userinfo.conf
165
195
  - spec/unit/support/fixture.rb
166
196
  - spec/unit/support/shared/apt_proxy_config.rb
197
+ - spec/unit/vagrant-proxyconf/action/base_spec.rb
167
198
  - spec/unit/vagrant-proxyconf/action/configure_apt_proxy_spec.rb
168
199
  - spec/unit/vagrant-proxyconf/action/configure_chef_proxy_spec.rb
169
200
  - spec/unit/vagrant-proxyconf/action/configure_docker_proxy_spec.rb
@@ -199,4 +230,13 @@ test_files:
199
230
  - spec/unit/vagrant-proxyconf/resource_spec.rb
200
231
  - spec/unit/vagrant-proxyconf/resources/yum_config_spec.rb
201
232
  - spec/unit/vagrant-proxyconf/userinfo_uri_spec.rb
202
- has_rdoc:
233
+ - test/issues/180/.rspec
234
+ - test/issues/180/Dockerfile
235
+ - test/issues/180/README.md
236
+ - test/issues/180/Rakefile
237
+ - test/issues/180/Vagrantfile
238
+ - test/issues/180/entrypoint.sh
239
+ - test/issues/180/spec/default/redhat_spec.rb
240
+ - test/issues/180/spec/docker_host/redhat_spec.rb
241
+ - test/issues/180/spec/spec_helper.rb
242
+ - test/issues/180/tinyproxy.conf