dvla-browser-drivers 2.1.1 → 2.2.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: ded8210272d81162b05c9b4fd5f6f47fb6dd17f7c668b3d2415435499b3326ed
4
- data.tar.gz: 3b642d367f46e22fc3b05dd9480a47c811608f08aa0d8f9bc2cb1b06b5a46d70
3
+ metadata.gz: 92f1ded5d8e7429a4d8686918aa23cac0d7974ecffcfe9972d2178c01b59bf8a
4
+ data.tar.gz: 11576ca04831d7e0b8ea4a22cc41310765b76463c6d0b7f0f461554933e9d03c
5
5
  SHA512:
6
- metadata.gz: b0fdb8305b590e7523605a25d90bfa66ecea8653da35dcc43c52a75788c92707a4fff47480686cdb98783e811852ff736833eb0d95b07ed6a1f5d818cb34a15d
7
- data.tar.gz: bb18727288978ce41b9ea0ba0a084e143bb13e8499febeb87893701f7d29bf16ae398e71331081ffd6b911fb20356fc1a2c0f5d8dfae0e454f3e5eb49eec4359
6
+ metadata.gz: b134f26587e6053d62b8c747184779d5c1744e3d32bc9cee9c93beba11ada8ec5ddb7dcab363704c5e0a38559b01b3e39df6af2d865d5307244a95db750e1a3e
7
+ data.tar.gz: e8cf8d236c3bbfb342020ccc57356bb24f10b3ecbedd1d7a843f8a2c439031159ae295b6b0db407db6720275c5dbfdf1b084f61c5f9d1dcd9457cee939344c73
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # DVLA::Browser::Drivers
2
2
 
3
3
  DVLA-Browser-Drivers is a gem that has pre-configured browser drivers that you can use out-of-the-box for the
4
- development of your application.
4
+ development of your application.
5
5
 
6
6
  ## Installation
7
7
 
8
+ Add this line to your application's Gemfile:
9
+
8
10
  ```ruby
9
- source 'https://gemstash.tooling.dvla.gov.uk/private' do
10
- gem 'dvla-browser-drivers'
11
- end
11
+ gem 'dvla-browser-drivers'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -17,7 +17,7 @@ And then execute:
17
17
 
18
18
  Or install it yourself as:
19
19
 
20
- $ gem install dvla-browser-drivers -s https://gemstash.tooling.dvla.gov.uk/private
20
+ $ gem install dvla-browser-drivers
21
21
 
22
22
  ## Usage
23
23
 
@@ -26,7 +26,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
26
26
  ### Selenium drivers
27
27
 
28
28
  | Driver | Usage |
29
- |------------------|-------------------------------------------|
29
+ | ---------------- | ----------------------------------------- |
30
30
  | chrome | `DVLA::Browser::Drivers.chrome` |
31
31
  | headless_chrome | `DVLA::Browser::Drivers.headless_chrome` |
32
32
  | edge | `DVLA::Browser::Drivers.edge` |
@@ -37,7 +37,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
37
37
  ### Non-selenium drivers
38
38
 
39
39
  | Driver | Usage |
40
- |---------------------|----------------------------------------------|
40
+ | ------------------- | -------------------------------------------- |
41
41
  | cuprite | `DVLA::Browser::Drivers.cuprite` |
42
42
  | headless_cuprite | `DVLA::Browser::Drivers.headless_cuprite` |
43
43
  | apparition | `DVLA::Browser::Drivers.apparition` |
@@ -48,9 +48,9 @@ Once installed, you are able to use any pre-configured browser driver from the l
48
48
  ### Default configuration
49
49
 
50
50
  | Driver | Configuration |
51
- |-----------------------|-------------------------------------------------------|
51
+ | --------------------- | ----------------------------------------------------- |
52
52
  | chrome, edge, firefox | --disable-dev-shm-usage<br/> |
53
- | headless_<driver> | --headless<br/>--no-sandbox |
53
+ | headless\_<driver> | --headless<br/>--no-sandbox |
54
54
  | cuprite, apparition | { 'no-sandbox': nil, disable-smooth-scrolling: true } |
55
55
 
56
56
  ---
@@ -58,7 +58,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
58
58
  ### Additional configuration
59
59
 
60
60
  | Option | Description | supported-browsers |
61
- |-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|
61
+ | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
62
62
  | remote: 'http://localhost:4444/wd/hub' | Allows you to talk to a remote browser | firefox |
63
63
  | additional_options: ['window-size=1400,1920'] | Pass additional options to the driver<br/>Supported switches: https://peter.sh/experiments/chromium-command-line-switches/ | chrome, edge, firefox |
64
64
  | additional_preferences: [{'download.default_directory': '<download_path>'}] | Pass additional preferences to the driver<br/>Documentation: https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/Chromium/Options.html#add_preference-instance_method | chrome, edge, firefox |
@@ -72,11 +72,3 @@ also run `bin/console` for an interactive prompt that will allow you to experime
72
72
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
73
73
  version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
74
74
  push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
75
-
76
- ## Contributing
77
-
78
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dvla-browser-drivers.
79
-
80
- ## License
81
-
82
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
47
47
  spec.add_runtime_dependency 'apparition', '>= 0.6'
48
48
  spec.add_runtime_dependency 'capybara', '>= 3.37'
49
49
  spec.add_runtime_dependency 'cuprite', '>= 0.14'
50
- spec.add_runtime_dependency 'dvla-herodotus', '>= 1.0'
50
+ spec.add_runtime_dependency 'dvla-herodotus', '>= 2.0'
51
51
  spec.add_runtime_dependency 'selenium-webdriver', '>= 4.0'
52
52
 
53
53
  spec.add_development_dependency 'bundler-audit', '~> 0.9'
@@ -3,7 +3,7 @@
3
3
  module DVLA
4
4
  module Browser
5
5
  module Drivers
6
- VERSION = '2.1.1'
6
+ VERSION = '2.2.0'
7
7
  end
8
8
  end
9
9
  end
@@ -8,11 +8,6 @@ require 'selenium-webdriver'
8
8
 
9
9
  module DVLA
10
10
  class Error < StandardError; end
11
-
12
- DVLA::Herodotus.configure do |config|
13
- config.system_name = 'browser-drivers'
14
- config.pid = true
15
- end
16
-
17
- LOG = DVLA::Herodotus.logger
11
+
12
+ LOG = DVLA::Herodotus.logger('browser-drivers')
18
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dvla-browser-drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Driver and Vehicle Licensing Agency (DVLA)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-03-26 00:00:00.000000000 Z
12
+ date: 2024-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: apparition
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.0'
62
+ version: '2.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '1.0'
69
+ version: '2.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: selenium-webdriver
72
72
  requirement: !ruby/object:Gem::Requirement