puffing-billy 2.4.1 → 3.0.0

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
  SHA256:
3
- metadata.gz: 714d9af5c05c61dbdc36579e513987c4e66c3a3ae753cd8c4959e12fe091b042
4
- data.tar.gz: b294a868e906fe711ad856f0d86ca22388be111fc6b2634af1cb26ee7174ebf8
3
+ metadata.gz: 1955fb7348660b0f353200d6280598a526b86b78407165fb294faed839157eb5
4
+ data.tar.gz: 06db7eee54aa9cb21b876111695b399cf1073211d5268221cf5ed1ad36d044a9
5
5
  SHA512:
6
- metadata.gz: 3bcebbc4882d9f0b29cb68de495338457d0806275b024803698a7a4ae5392655da3ed63d8293b1fce78795ed1dd7da52216b403b0537f8089dcb526f8c3fd0ba
7
- data.tar.gz: a2ad11d11b81d522255a88bd2534082c59d056458786f28a4e9e496129d0eb4715d5045555ba59ac1838f5be19f2e9f461e47b873c803aee52af50c29d2ecb58
6
+ metadata.gz: 6f397b5d7889e2e233336c4f35ce6cef157a7f86c64bd8d812ccb7700cc4bd91a48ff9695f3d14a29e696c44a3192c47eeba11e80f77c8b2391238a12dd15813
7
+ data.tar.gz: 5f46e1fedad3a942b30a8667338073c8e3cbc166054f6acde5f2d5820734b603188dc247d845850e23e95762726cc0de2c657ced3d5c3ce4f8e9e02206e014df
@@ -0,0 +1,27 @@
1
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
2
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
3
+
4
+ name: CI
5
+ on:
6
+ push:
7
+ branches: [ master ]
8
+ pull_request:
9
+ branches: [ master ]
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby-version: ['2.6', '2.7', '3.0', '3.1']
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby-version }}
24
+ bundler-cache: true
25
+ rubygems: latest
26
+ - name: Run tests
27
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v3.0.0, 2022-02-15
2
+ -------------------
3
+ * Add support for Ruby 2.7+, remove support for Ruby 2.4 and 2.5
4
+
1
5
  v2.4.1, 2021-01-05
2
6
  -------------------
3
7
  * Rescue Errno::ECONNRESET in shutdown phase [#307](https://github.com/oesmith/puffing-billy/pull/307)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Puffing Billy [![Gem Version](https://badge.fury.io/rb/puffing-billy.svg)](https://badge.fury.io/rb/puffing-billy) [![Build Status](https://travis-ci.org/oesmith/puffing-billy.svg?branch=master)](https://travis-ci.org/oesmith/puffing-billy)
1
+ # Puffing Billy [![Gem Version](https://badge.fury.io/rb/puffing-billy.svg)](https://badge.fury.io/rb/puffing-billy) ![Build Status](https://github.com/oesmith/puffing-billy/actions/workflows/ci.yml/badge.svg)
2
2
 
3
3
  A rewriting web proxy for testing interactions between your browser and
4
4
  external sites. Works with ruby + rspec.
@@ -20,8 +20,10 @@ module Billy
20
20
 
21
21
  def configure_chrome(args)
22
22
  args[:headless] = true
23
- args[:switches] ||= []
24
- args[:switches] += %W[--proxy-server=#{Billy.proxy.host}:#{Billy.proxy.port}]
23
+ args[:proxy] = {
24
+ http: "#{Billy.proxy.host}:#{Billy.proxy.port}",
25
+ ssl: "#{Billy.proxy.host}:#{Billy.proxy.port}"
26
+ }
25
27
  args
26
28
  end
27
29
 
data/lib/billy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Billy
2
- VERSION = '2.4.1'
2
+ VERSION = '3.0.0'
3
3
  end
@@ -14,21 +14,23 @@ Gem::Specification.new do |gem|
14
14
  gem.name = 'puffing-billy'
15
15
  gem.require_paths = ['lib']
16
16
  gem.version = Billy::VERSION
17
+ gem.required_ruby_version = '>= 2.6.0'
17
18
 
18
19
  gem.add_development_dependency 'rspec'
19
20
  gem.add_development_dependency 'thin'
20
21
  gem.add_development_dependency 'faraday', '>= 0.9.0'
21
22
  gem.add_development_dependency 'apparition'
22
23
  gem.add_development_dependency 'capybara'
23
- gem.add_development_dependency 'selenium-webdriver'
24
+ gem.add_development_dependency 'selenium-webdriver', '>= 4.0.0'
24
25
  gem.add_development_dependency 'rack'
25
26
  gem.add_development_dependency 'rake'
26
27
  gem.add_development_dependency 'guard'
27
28
  gem.add_development_dependency 'rb-inotify'
28
29
  gem.add_development_dependency 'pry'
29
30
  gem.add_development_dependency 'cucumber'
30
- gem.add_development_dependency 'watir', '~> 6.10.0'
31
- gem.add_development_dependency 'webdrivers'
31
+ gem.add_development_dependency 'watir', '>= 7.0.0'
32
+ gem.add_development_dependency 'webdrivers', '>= 5.0.0'
33
+ gem.add_development_dependency 'webrick'
32
34
  gem.add_runtime_dependency 'addressable', '~> 2.5'
33
35
  gem.add_runtime_dependency 'eventmachine', '~> 1.2'
34
36
  gem.add_runtime_dependency 'em-synchrony'
@@ -208,8 +208,10 @@ describe Billy::ProxyHandler do
208
208
  allow(Billy.config).to receive(:proxied_request_connect_timeout).and_return(24)
209
209
 
210
210
  expect(EventMachine::HttpRequest).to receive(:new).with(request[:url],
211
- inactivity_timeout: 42,
212
- connect_timeout: 24
211
+ {
212
+ inactivity_timeout: 42,
213
+ connect_timeout: 24
214
+ }
213
215
  )
214
216
 
215
217
  subject.handle_request(request[:method],
@@ -223,9 +225,11 @@ describe Billy::ProxyHandler do
223
225
  allow(Billy.config).to receive(:proxied_request_port).and_return('2080')
224
226
 
225
227
  expect(EventMachine::HttpRequest).to receive(:new).with(request[:url],
226
- inactivity_timeout: 10,
227
- connect_timeout: 5,
228
- proxy: { host: '10.10.10.10', port: '2080' }
228
+ {
229
+ inactivity_timeout: 10,
230
+ connect_timeout: 5,
231
+ proxy: { host: '10.10.10.10', port: '2080' }
232
+ }
229
233
  )
230
234
 
231
235
  subject.handle_request(request[:method],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffing-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olly Smith
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 4.0.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 4.0.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rack
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -182,18 +182,32 @@ dependencies:
182
182
  name: watir
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 6.10.0
187
+ version: 7.0.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: 6.10.0
194
+ version: 7.0.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: webdrivers
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 5.0.0
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 5.0.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: webrick
197
211
  requirement: !ruby/object:Gem::Requirement
198
212
  requirements:
199
213
  - - ">="
@@ -319,9 +333,9 @@ executables:
319
333
  extensions: []
320
334
  extra_rdoc_files: []
321
335
  files:
336
+ - ".github/workflows/ci.yml"
322
337
  - ".gitignore"
323
338
  - ".rspec"
324
- - ".travis.yml"
325
339
  - CHANGELOG.md
326
340
  - Dockerfile
327
341
  - Gemfile
@@ -397,7 +411,7 @@ files:
397
411
  homepage: https://github.com/oesmith/puffing-billy
398
412
  licenses: []
399
413
  metadata: {}
400
- post_install_message:
414
+ post_install_message:
401
415
  rdoc_options: []
402
416
  require_paths:
403
417
  - lib
@@ -405,16 +419,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
405
419
  requirements:
406
420
  - - ">="
407
421
  - !ruby/object:Gem::Version
408
- version: '0'
422
+ version: 2.6.0
409
423
  required_rubygems_version: !ruby/object:Gem::Requirement
410
424
  requirements:
411
425
  - - ">="
412
426
  - !ruby/object:Gem::Version
413
427
  version: '0'
414
428
  requirements: []
415
- rubyforge_project:
416
- rubygems_version: 2.7.3
417
- signing_key:
429
+ rubygems_version: 3.2.22
430
+ signing_key:
418
431
  specification_version: 4
419
432
  summary: Easy request stubs for browser tests.
420
433
  test_files:
data/.travis.yml DELETED
@@ -1,36 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6
8
-
9
- cache:
10
- bundler: true
11
- directories:
12
- - $HOME/.webdrivers
13
-
14
- addons:
15
- chrome: stable
16
- apt:
17
- update: true
18
-
19
- sudo: false
20
- dist: xenial
21
-
22
- rvm:
23
- - 2.3
24
- - 2.4
25
- - 2.5
26
- - 2.6
27
-
28
- matrix:
29
- fast_finish: true
30
-
31
- bundler_args: --jobs 3 --retry 3
32
-
33
- before_install:
34
- - gem update --system
35
- - gem install bundler
36
-