proxy_rb 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/README.md +1 -1
- data/bin/bootstrap +6 -1
- data/lib/proxy_rb/credentials.rb +2 -1
- data/lib/proxy_rb/cucumber/hooks.rb +1 -1
- data/lib/proxy_rb/cucumber/steps.rb +6 -1
- data/lib/proxy_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bb57f101309355b205d0f087190e409c7349043
|
4
|
+
data.tar.gz: c34869197694d2193219db461acf8a3826f2be56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fe18b6359945971756bc5063d326d05ca304db97dc2c22e8dae2a106a0258b7854497540cbbf7096f251a6fcef65fd5b9423006ffc48c6872f30dde610cfb0b
|
7
|
+
data.tar.gz: 9d2bbcfa91fe09d52e9f9e72920319dc85c0f07fa66be7a3bd195487a466ce65ec49549e0ca8b7c0209ca9232b626a43adadc5193966ffcefcad6ceddedf6b68
|
data/History.md
CHANGED
@@ -4,6 +4,10 @@ Empty
|
|
4
4
|
|
5
5
|
# RELEASED
|
6
6
|
|
7
|
+
## [v0.9.2](https://github.com/fedux-org/proxy_rb/compare/v0.9.1...v0.9.2)
|
8
|
+
|
9
|
+
* Fixed proxy authentication for cucumber steps
|
10
|
+
|
7
11
|
## [v0.9.1](https://github.com/fedux-org/proxy_rb/compare/v0.9.0...v0.9.1)
|
8
12
|
|
9
13
|
* Added initializer for cucumber which I forgot to add earlier
|
data/README.md
CHANGED
@@ -156,7 +156,7 @@ into a path which is part of the "PATH"-environment variable - even on Windows.
|
|
156
156
|
|
157
157
|
~~~bash
|
158
158
|
curl -o /tmp/vault.zip https://releases.hashicorp.com/vault/0.5.1/vault_0.5.1_linux_amd64.zip
|
159
|
-
unzip /tmp/vault.zip
|
159
|
+
unzip -d /tmp/ /tmp/vault.zip
|
160
160
|
install -D /tmp/vault -m 0755 ~/bin/vault
|
161
161
|
~~~
|
162
162
|
|
data/bin/bootstrap
CHANGED
@@ -3,7 +3,12 @@ set -euo pipefail
|
|
3
3
|
IFS=$'\n\t'
|
4
4
|
|
5
5
|
which ruby 2>/dev/null >&2 || {
|
6
|
-
echo '
|
6
|
+
echo 'Please install "ruby".'
|
7
|
+
exit 2
|
8
|
+
}
|
9
|
+
|
10
|
+
which vault 2>/dev/null >&2 || {
|
11
|
+
echo 'Please install"HashiCorp vault". See README.md for more information.'
|
7
12
|
exit 2
|
8
13
|
}
|
9
14
|
|
data/lib/proxy_rb/credentials.rb
CHANGED
@@ -5,7 +5,8 @@ require 'shellwords'
|
|
5
5
|
module ProxyRb
|
6
6
|
# Hold proxy credentials
|
7
7
|
class Credentials
|
8
|
-
attr_reader :user_name
|
8
|
+
attr_reader :user_name
|
9
|
+
attr_accessor :password
|
9
10
|
|
10
11
|
# @param [String] user_name
|
11
12
|
# The user name to use for authentication against proxy
|
@@ -3,7 +3,12 @@ require 'proxy_rb/http_proxy'
|
|
3
3
|
require 'proxy_rb/proxy_url_parser'
|
4
4
|
|
5
5
|
Given(/^I use the following proxies:$/) do |table|
|
6
|
-
@proxies = table.hashes.map
|
6
|
+
@proxies = table.hashes.map do |r|
|
7
|
+
p = ProxyRb::HttpProxy.new(ProxyRb::ProxyUrlParser.new(r[:proxy]))
|
8
|
+
p.credentials.password = password(p.credentials.user_name) if p.credentials.password == '<PASSWORD>'
|
9
|
+
|
10
|
+
p
|
11
|
+
end
|
7
12
|
end
|
8
13
|
|
9
14
|
Then(/the following requests are( not)? allowed to pass the proxy:/) do |forbidden, table|
|
data/lib/proxy_rb/version.rb
CHANGED