proxy_rb 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4377810fafc59cb042d4c7b48485300d3b1772b1
4
- data.tar.gz: 4453fb8cb01928a2cd16d014bd123de40faffdb4
3
+ metadata.gz: 594b3c6231ef198e86f5c96186bf3267b57c48a8
4
+ data.tar.gz: 49071a22acf7676f7262e05e8bdc15702533e7c2
5
5
  SHA512:
6
- metadata.gz: 4d59513e7c1bcf250aa9ab5a58fb24b4db83e346a668d4d2808c3964b0fc1290d2d19b0f0f186b69f7e2794fc37b74317ca847fbf0621f2c708fb44d00d68fbb
7
- data.tar.gz: f213e05578e450f7b9b4c9dad5d950e7d3f851bdf405b3a5da2d9575e5c4f356cbb3bd71f028a1c1c671c9116435cff8190da3bbe27259b6795a46c4bd7afdf3
6
+ metadata.gz: 9a7305a4755446b67a30a8ec2bde20da59d89d72aa0a94cfe161c0ba19cc5485a17a3c59a3d9d5782c588e1b203ede19e0d7aa6821d6a5372fcd0c35e7b31e39
7
+ data.tar.gz: a469f54857c7678a64b6ba6b4e518057665472306a3b64207f445a8e6732a9379376bc7539d67219e408e750d709ddc8ee9f3e518c4d5f39b7c6a990c6e78c55
data/History.md CHANGED
@@ -4,6 +4,10 @@ Empty
4
4
 
5
5
  # RELEASED
6
6
 
7
+ ## [v0.10.2](https://github.com/fedux-org/proxy_rb/compare/v0.10.1...v0.10.2)
8
+
9
+ * Make it possible to visit pages and then check all of them
10
+
7
11
  ## [v0.10.1](https://github.com/fedux-org/proxy_rb/compare/v0.10.0...v0.10.1)
8
12
 
9
13
  * Add support for password fetching for a particular step
@@ -25,19 +25,29 @@ Given(/^I use the following proxies:$/) do |table|
25
25
  end
26
26
 
27
27
  Then(/the following requests are( not)? allowed to pass the proxy:/) do |forbidden, table|
28
- requests = []
28
+ step 'I visit the following websites:', table
29
+
30
+ if forbidden
31
+ step 'all requests are not allowed to pass the proxy:'
32
+ else
33
+ step 'all requests are allowed to pass the proxy'
34
+ end
35
+ end
36
+
37
+ Then(/all requests are( not)? allowed to pass the proxy/) do |forbidden|
38
+ results = []
29
39
 
30
40
  proxies.each do |proxy|
31
- table.hashes.map { |r| r[:url] }.each do |r|
32
- visit r, proxy
33
- requests << page.dup
41
+ websites.each do |w|
42
+ visit w, proxy
43
+ results << page.dup
34
44
  end
35
45
  end
36
46
 
37
47
  if forbidden
38
- expect(requests).to ProxyRb::Matchers.all be_forbidden
48
+ expect(results).to ProxyRb::Matchers.all be_forbidden
39
49
  else
40
- expect(requests).to ProxyRb::Matchers.all be_successful
50
+ expect(results).to ProxyRb::Matchers.all be_successful
41
51
  end
42
52
  end
43
53
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.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.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer