webdrivers 4.4.2 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/LICENSE.txt +0 -0
  4. data/README.md +10 -1
  5. data/lib/webdrivers.rb +0 -0
  6. data/lib/webdrivers/Rakefile +0 -0
  7. data/lib/webdrivers/chrome_finder.rb +2 -2
  8. data/lib/webdrivers/chromedriver.rb +31 -9
  9. data/lib/webdrivers/common.rb +0 -0
  10. data/lib/webdrivers/edge_finder.rb +11 -0
  11. data/lib/webdrivers/edgedriver.rb +35 -8
  12. data/lib/webdrivers/geckodriver.rb +0 -0
  13. data/lib/webdrivers/iedriver.rb +0 -0
  14. data/lib/webdrivers/logger.rb +0 -0
  15. data/lib/webdrivers/network.rb +0 -0
  16. data/lib/webdrivers/railtie.rb +0 -0
  17. data/lib/webdrivers/system.rb +12 -2
  18. data/lib/webdrivers/tasks/chromedriver.rake +0 -0
  19. data/lib/webdrivers/tasks/edgedriver.rake +0 -0
  20. data/lib/webdrivers/tasks/geckodriver.rake +0 -0
  21. data/lib/webdrivers/tasks/iedriver.rake +0 -0
  22. data/lib/webdrivers/version.rb +1 -1
  23. data/spec/spec_helper.rb +0 -0
  24. data/spec/webdrivers/chrome_finder_spec.rb +1 -1
  25. data/spec/webdrivers/chromedriver_spec.rb +0 -0
  26. data/spec/webdrivers/coverage/assets/0.10.2/application.css +799 -0
  27. data/spec/webdrivers/coverage/assets/0.10.2/application.js +1707 -0
  28. data/spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png +0 -0
  29. data/spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  30. data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  31. data/spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  32. data/spec/webdrivers/coverage/assets/0.10.2/favicon_green.png +0 -0
  33. data/spec/webdrivers/coverage/assets/0.10.2/favicon_red.png +0 -0
  34. data/spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  35. data/spec/webdrivers/coverage/assets/0.10.2/loading.gif +0 -0
  36. data/spec/webdrivers/coverage/assets/0.10.2/magnify.png +0 -0
  37. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  38. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  39. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  40. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  41. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  42. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  43. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  44. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  45. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  46. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  47. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  48. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  49. data/spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  50. data/spec/webdrivers/coverage/index.html +3512 -0
  51. data/spec/webdrivers/edge_finder_spec.rb +0 -0
  52. data/spec/webdrivers/edgedriver_spec.rb +0 -0
  53. data/spec/webdrivers/geckodriver_spec.rb +0 -0
  54. data/spec/webdrivers/i_edriver_spec.rb +0 -0
  55. data/spec/webdrivers/system_spec.rb +27 -21
  56. data/spec/webdrivers/webdrivers_spec.rb +0 -0
  57. data/spec/webdrivers_proxy_support_spec.rb +0 -0
  58. metadata +60 -10
File without changes
File without changes
File without changes
File without changes
@@ -2,36 +2,42 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- wsl_proc_contents = [
6
- 'Linux version 4.4.0-18362-Microsoft',
7
- '(Microsoft@Microsoft.com)',
8
- '(gcc version 5.4.0 (GCC) )',
9
- '#836-Microsoft',
10
- 'Mon May 05 16:04:00 PST 2020'
11
- ].join ' '
12
-
13
5
  describe Webdrivers::System do
14
- describe '#wsl?' do
15
- context 'when the current platform is linux' do
16
- before { allow(described_class).to receive(:platform).and_return 'linux' }
6
+ describe '#wsl_v1?' do
7
+ subject { described_class.wsl_v1? }
8
+
9
+ before do
10
+ allow(described_class).to receive(:platform).and_return(platform)
11
+ allow(File).to receive(:open).with('/proc/version').and_return(StringIO.new(wsl_proc_version_contents))
12
+ end
17
13
 
18
- it 'checks /proc/version' do
19
- allow(File).to receive(:open).with('/proc/version').and_return(StringIO.new(wsl_proc_contents))
14
+ let(:platform) { 'linux' }
15
+ let(:wsl_proc_version_contents) { '' }
20
16
 
21
- expect(described_class.wsl?).to eq true
17
+ context 'when the current platform is linux and WSL version is 1' do
18
+ let(:wsl_proc_version_contents) do
19
+ 'Linux version 4.4.0-18362-Microsoft'\
20
+ '(Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) )'\
21
+ '#836-Microsoft Mon May 05 16:04:00 PST 2020'
22
22
  end
23
+
24
+ it { is_expected.to eq true }
23
25
  end
24
26
 
25
- context 'when the current platform is mac' do
26
- before { allow(described_class).to receive(:platform).and_return 'mac' }
27
+ context 'when the current platform is linux and WSL version is 2' do
28
+ let(:wsl_proc_version_contents) do
29
+ 'Linux version 4.19.84-microsoft-standard '\
30
+ '(oe-user@oe-host) (gcc version 8.2.0 (GCC)) '\
31
+ '#1 SMP Wed Nov 13 11:44:37 UTC 2019'
32
+ end
27
33
 
28
- it 'does not bother checking proc' do
29
- allow(File).to receive(:open).and_call_original
34
+ it { is_expected.to eq false }
35
+ end
30
36
 
31
- expect(described_class.wsl?).to eq false
37
+ context 'when the current platform is mac' do
38
+ let(:platform) { 'mac' }
32
39
 
33
- expect(File).not_to have_received(:open).with('/proc/version')
34
- end
40
+ it { is_expected.to eq false }
35
41
  end
36
42
  end
37
43
 
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdrivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-12-30 00:00:00.000000000 Z
13
+ date: 2021-01-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
@@ -205,6 +205,31 @@ files:
205
205
  - spec/spec_helper.rb
206
206
  - spec/webdrivers/chrome_finder_spec.rb
207
207
  - spec/webdrivers/chromedriver_spec.rb
208
+ - spec/webdrivers/coverage/assets/0.10.2/application.css
209
+ - spec/webdrivers/coverage/assets/0.10.2/application.js
210
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png
211
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png
212
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif
213
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png
214
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_green.png
215
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_red.png
216
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png
217
+ - spec/webdrivers/coverage/assets/0.10.2/loading.gif
218
+ - spec/webdrivers/coverage/assets/0.10.2/magnify.png
219
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
220
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
221
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
222
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
223
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
224
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
225
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
226
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
227
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
228
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
229
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
230
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
231
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
232
+ - spec/webdrivers/coverage/index.html
208
233
  - spec/webdrivers/edge_finder_spec.rb
209
234
  - spec/webdrivers/edgedriver_spec.rb
210
235
  - spec/webdrivers/geckodriver_spec.rb
@@ -218,8 +243,8 @@ licenses:
218
243
  metadata:
219
244
  bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
220
245
  changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
221
- documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.4.2
222
- source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.4.2
246
+ documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.5.0
247
+ source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.5.0
223
248
  post_install_message:
224
249
  rdoc_options: []
225
250
  require_paths:
@@ -235,18 +260,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
260
  - !ruby/object:Gem::Version
236
261
  version: '0'
237
262
  requirements: []
238
- rubygems_version: 3.1.4
263
+ rubygems_version: 3.0.3
239
264
  signing_key:
240
265
  specification_version: 4
241
266
  summary: Easy download and use of browser drivers.
242
267
  test_files:
243
268
  - spec/spec_helper.rb
269
+ - spec/webdrivers/chromedriver_spec.rb
244
270
  - spec/webdrivers/chrome_finder_spec.rb
245
- - spec/webdrivers/edge_finder_spec.rb
246
- - spec/webdrivers/webdrivers_spec.rb
247
- - spec/webdrivers/system_spec.rb
271
+ - spec/webdrivers/coverage/assets/0.10.2/application.css
272
+ - spec/webdrivers/coverage/assets/0.10.2/application.js
273
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/border.png
274
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/controls.png
275
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/loading.gif
276
+ - spec/webdrivers/coverage/assets/0.10.2/colorbox/loading_background.png
277
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_green.png
278
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_red.png
279
+ - spec/webdrivers/coverage/assets/0.10.2/favicon_yellow.png
280
+ - spec/webdrivers/coverage/assets/0.10.2/loading.gif
281
+ - spec/webdrivers/coverage/assets/0.10.2/magnify.png
282
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
283
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
284
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
285
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
286
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
287
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
288
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
289
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
290
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
291
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
292
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
293
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
294
+ - spec/webdrivers/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
295
+ - spec/webdrivers/coverage/index.html
248
296
  - spec/webdrivers/edgedriver_spec.rb
249
- - spec/webdrivers/i_edriver_spec.rb
297
+ - spec/webdrivers/edge_finder_spec.rb
250
298
  - spec/webdrivers/geckodriver_spec.rb
251
- - spec/webdrivers/chromedriver_spec.rb
299
+ - spec/webdrivers/i_edriver_spec.rb
300
+ - spec/webdrivers/system_spec.rb
301
+ - spec/webdrivers/webdrivers_spec.rb
252
302
  - spec/webdrivers_proxy_support_spec.rb