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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db2b6b006763313a39081d93fc12f396121c3eed
4
- data.tar.gz: db163862c51a5bac75d724b30de5e06606531bc9
3
+ metadata.gz: 0bb57f101309355b205d0f087190e409c7349043
4
+ data.tar.gz: c34869197694d2193219db461acf8a3826f2be56
5
5
  SHA512:
6
- metadata.gz: c49f214fbf0d2934182d0b040dd955c495c64ed0ffe0e77d01bb1772acfd84401b829ef7a43772f4126d28e518bd053c742f5e1726b0f4f5984214bfac899e00
7
- data.tar.gz: a35c9ea6dd29b1e260af715515be72eb923179c9df5c37ca63ca3cb654e24b26abf8e1e9b7b86e2f6e787461e4204c2cafb129da6632e917bc35bfd8d3a63166
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
 
@@ -3,7 +3,12 @@ set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
 
5
5
  which ruby 2>/dev/null >&2 || {
6
- echo 'Bitte "ruby" installieren'
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
 
@@ -5,7 +5,8 @@ require 'shellwords'
5
5
  module ProxyRb
6
6
  # Hold proxy credentials
7
7
  class Credentials
8
- attr_reader :user_name, :password
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
@@ -10,7 +10,7 @@ end
10
10
  resource_user
11
11
  http_response_headers
12
12
  ).each do |announcer|
13
- Before "@announce_#{announcer}" do
13
+ Before "@announce-#{announcer.to_s.gsub(/_/, '-')}" do
14
14
  proxy_rb.announcer.activate(announcer)
15
15
  end
16
16
  end
@@ -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 { |r| ProxyRb::HttpProxy.new(ProxyRb::ProxyUrlParser.new(r[:proxy])) }
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer