webdrivers 4.4.0 → 4.5.0

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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -1
  3. data/LICENSE.txt +0 -0
  4. data/README.md +20 -1
  5. data/lib/webdrivers/Rakefile +0 -0
  6. data/lib/webdrivers/chrome_finder.rb +4 -2
  7. data/lib/webdrivers/chromedriver.rb +34 -13
  8. data/lib/webdrivers/common.rb +0 -0
  9. data/lib/webdrivers/edge_finder.rb +11 -0
  10. data/lib/webdrivers/edgedriver.rb +37 -14
  11. data/lib/webdrivers/geckodriver.rb +0 -0
  12. data/lib/webdrivers/iedriver.rb +9 -6
  13. data/lib/webdrivers/logger.rb +0 -0
  14. data/lib/webdrivers/network.rb +2 -0
  15. data/lib/webdrivers/railtie.rb +0 -0
  16. data/lib/webdrivers/system.rb +11 -1
  17. data/lib/webdrivers/tasks/chromedriver.rake +0 -0
  18. data/lib/webdrivers/tasks/edgedriver.rake +0 -0
  19. data/lib/webdrivers/tasks/geckodriver.rake +0 -0
  20. data/lib/webdrivers/tasks/iedriver.rake +0 -0
  21. data/lib/webdrivers/version.rb +1 -1
  22. data/lib/webdrivers.rb +0 -0
  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 +85 -26
  59. data/.github/ISSUE_TEMPLATE.md +0 -16
  60. data/.gitignore +0 -8
  61. data/.rubocop.yml +0 -48
  62. data/.travis.yml +0 -41
  63. data/Gemfile +0 -6
  64. data/Rakefile +0 -11
  65. data/appveyor.yml +0 -45
  66. data/bin/console +0 -15
  67. data/bin/setup +0 -8
  68. data/gemfiles/Gemfile.edge +0 -7
  69. data/support/install_jruby.ps1 +0 -7
  70. data/support/install_msedge.ps1 +0 -11
  71. data/webdrivers.gemspec +0 -41
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.0
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-06-01 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
@@ -60,14 +60,28 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '0.66'
63
+ version: '0.89'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '0.66'
70
+ version: '0.89'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rubocop-packaging
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 0.5.0
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: 0.5.0
71
85
  - !ruby/object:Gem::Dependency
72
86
  name: rubocop-performance
73
87
  requirement: !ruby/object:Gem::Requirement
@@ -88,14 +102,14 @@ dependencies:
88
102
  requirements:
89
103
  - - "~>"
90
104
  - !ruby/object:Gem::Version
91
- version: '1.32'
105
+ version: '1.42'
92
106
  type: :development
93
107
  prerelease: false
94
108
  version_requirements: !ruby/object:Gem::Requirement
95
109
  requirements:
96
110
  - - "~>"
97
111
  - !ruby/object:Gem::Version
98
- version: '1.32'
112
+ version: '1.42'
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: simplecov
101
115
  requirement: !ruby/object:Gem::Requirement
@@ -163,25 +177,13 @@ description: Run Selenium tests more easily with install and updates for all sup
163
177
  email:
164
178
  - titusfortner@gmail.com
165
179
  - kapoorlakshya@gmail.com
166
- executables:
167
- - console
168
- - setup
180
+ executables: []
169
181
  extensions: []
170
182
  extra_rdoc_files: []
171
183
  files:
172
- - ".github/ISSUE_TEMPLATE.md"
173
- - ".gitignore"
174
- - ".rubocop.yml"
175
- - ".travis.yml"
176
184
  - CHANGELOG.md
177
- - Gemfile
178
185
  - LICENSE.txt
179
186
  - README.md
180
- - Rakefile
181
- - appveyor.yml
182
- - bin/console
183
- - bin/setup
184
- - gemfiles/Gemfile.edge
185
187
  - lib/webdrivers.rb
186
188
  - lib/webdrivers/Rakefile
187
189
  - lib/webdrivers/chrome_finder.rb
@@ -203,6 +205,31 @@ files:
203
205
  - spec/spec_helper.rb
204
206
  - spec/webdrivers/chrome_finder_spec.rb
205
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
206
233
  - spec/webdrivers/edge_finder_spec.rb
207
234
  - spec/webdrivers/edgedriver_spec.rb
208
235
  - spec/webdrivers/geckodriver_spec.rb
@@ -210,17 +237,14 @@ files:
210
237
  - spec/webdrivers/system_spec.rb
211
238
  - spec/webdrivers/webdrivers_spec.rb
212
239
  - spec/webdrivers_proxy_support_spec.rb
213
- - support/install_jruby.ps1
214
- - support/install_msedge.ps1
215
- - webdrivers.gemspec
216
240
  homepage: https://github.com/titusfortner/webdrivers
217
241
  licenses:
218
242
  - MIT
219
243
  metadata:
220
244
  bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
221
245
  changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
222
- documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.4.0
223
- source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.4.0
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
224
248
  post_install_message:
225
249
  rdoc_options: []
226
250
  require_paths:
@@ -236,8 +260,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
260
  - !ruby/object:Gem::Version
237
261
  version: '0'
238
262
  requirements: []
239
- rubygems_version: 3.1.3
263
+ rubygems_version: 3.0.3
240
264
  signing_key:
241
265
  specification_version: 4
242
266
  summary: Easy download and use of browser drivers.
243
- test_files: []
267
+ test_files:
268
+ - spec/spec_helper.rb
269
+ - spec/webdrivers/chromedriver_spec.rb
270
+ - spec/webdrivers/chrome_finder_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
296
+ - spec/webdrivers/edgedriver_spec.rb
297
+ - spec/webdrivers/edge_finder_spec.rb
298
+ - spec/webdrivers/geckodriver_spec.rb
299
+ - spec/webdrivers/i_edriver_spec.rb
300
+ - spec/webdrivers/system_spec.rb
301
+ - spec/webdrivers/webdrivers_spec.rb
302
+ - spec/webdrivers_proxy_support_spec.rb
@@ -1,16 +0,0 @@
1
- #### Summary
2
- Short summary of the bug or feature request.
3
-
4
- #### Debug Info
5
- Please provide the following information for bug reports:
6
-
7
- * Webdrivers version:
8
- * Ruby version:
9
- * Operating system / CI Environment:
10
- * Browser and version:
11
-
12
- #### Expected Behavior
13
- What you expect to happen.
14
-
15
- #### Actual Behavior
16
- What is actually happening: Error message, stack trace, DEBUG log if applicable (set `Webdrivers.logger.level = :DEBUG` after you require webdrivers)
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- chromedriver.log
6
- /.idea/
7
- coverage/
8
- gemfiles/Gemfile.*.lock
data/.rubocop.yml DELETED
@@ -1,48 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.4.10
3
-
4
- require:
5
- - rubocop-rspec
6
- - rubocop-performance
7
-
8
- Layout/SpaceInsideHashLiteralBraces:
9
- EnforcedStyle: no_space
10
-
11
- Layout/EndOfLine:
12
- EnforcedStyle: lf
13
-
14
- Layout/LineLength:
15
- Max: 120
16
- IgnoredPatterns:
17
- - '\s+# rubocop:disable'
18
-
19
- Metrics/MethodLength:
20
- Max: 20
21
-
22
- Metrics/BlockLength:
23
- Exclude:
24
- - 'spec/**/*'
25
- - 'lib/webdrivers/tasks/*.rake'
26
- - 'webdrivers.gemspec'
27
-
28
- Metrics/ClassLength:
29
- Max: 116
30
- Exclude:
31
- - 'lib/webdrivers/system.rb'
32
-
33
- Metrics/CyclomaticComplexity:
34
- Max: 8
35
-
36
- Metrics/AbcSize:
37
- Max: 16
38
- Exclude:
39
- - 'lib/webdrivers/chromedriver.rb'
40
-
41
- Style/Documentation:
42
- Enabled: false
43
-
44
- RSpec/ExampleLength:
45
- Enabled: false
46
-
47
- RSpec/MultipleExpectations:
48
- Enabled: false
data/.travis.yml DELETED
@@ -1,41 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- addons:
4
- apt:
5
- packages:
6
- - chromium-browser
7
- - libgconf-2-4
8
- chrome: stable
9
- script: bundle exec rake $RAKE_TASK
10
- before_install:
11
- - gem update --system -N
12
- - gem install bundler -N
13
- matrix:
14
- include:
15
- - rvm: 2.4
16
- env: RAKE_TASK=spec
17
- - rvm: 2.5
18
- env: RAKE_TASK=spec
19
- - rvm: 2.6
20
- env: RAKE_TASK=spec
21
- - rvm: 2.7
22
- os: osx
23
- env: RAKE_TASK=spec
24
- - rvm: 2.7
25
- env: RAKE_TASK=rubocop
26
- - rvm: jruby-9.2.11.1
27
- jdk: openjdk8
28
- env: RAKE_TASK=spec
29
- - rvm: 2.7
30
- env: RAKE_TASK=spec
31
- gemfile: gemfiles/Gemfile.edge
32
- os: osx
33
- osx_image: xcode11.3
34
- addons:
35
- chrome: stable
36
- homebrew:
37
- taps: homebrew/cask-versions
38
- casks:
39
- - microsoft-edge
40
- allow_failures:
41
- - gemfile: gemfiles/Gemfile.edge
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in webdrivers.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- require 'rubocop/rake_task'
6
-
7
- RuboCop::RakeTask.new
8
-
9
- RSpec::Core::RakeTask.new(:spec)
10
-
11
- task default: %i[rubocop spec]
data/appveyor.yml DELETED
@@ -1,45 +0,0 @@
1
- build: off
2
- cache:
3
- - vendor/bundle
4
- image:
5
- - Visual Studio 2019
6
- environment:
7
- matrix:
8
- - RUBY_VERSION: Ruby24-x64
9
- RUBY_BIN: ruby
10
- RAKE_TASK: rubocop
11
- SCRIPT_CONTEXT: bundle exec
12
- - RUBY_VERSION: Ruby24-x64
13
- RUBY_BIN: ruby
14
- RAKE_TASK: spec
15
- SCRIPT_CONTEXT: bundle exec
16
- - RUBY_VERSION: Ruby25-x64
17
- RUBY_BIN: ruby
18
- RAKE_TASK: spec
19
- SCRIPT_CONTEXT: bundle exec
20
- - RUBY_VERSION: Ruby26-x64
21
- RUBY_BIN: ruby
22
- RAKE_TASK: spec
23
- SCRIPT_CONTEXT: bundle exec
24
- - RUBY_VERSION: jruby-9.2.11.1
25
- RUBY_BIN: jruby
26
- RAKE_TASK: spec
27
- SCRIPT_CONTEXT: jruby -G -S
28
- - RUBY_VERSION: Ruby26-x64
29
- RUBY_BIN: ruby
30
- RAKE_TASK: spec
31
- SCRIPT_CONTEXT: bundle exec
32
- BUNDLE_GEMFILE: gemfiles/Gemfile.edge
33
- install:
34
- - ps: if ($env:RUBY_BIN -eq 'jruby') { support\install_jruby.ps1 }
35
- - ps: support\install_msedge.ps1
36
- - set PATH=C:\%RUBY_VERSION%\bin;%PATH%
37
- - '%RUBY_BIN% -S gem update --system -N'
38
- - '%RUBY_BIN% -S gem install bundler -N'
39
- - '%RUBY_BIN% -S bundle install'
40
- before_test:
41
- - '%RUBY_BIN% -v'
42
- - '%RUBY_BIN% -S gem -v'
43
- - '%RUBY_BIN% -S bundle -v'
44
- test_script:
45
- - '%SCRIPT_CONTEXT% rake %RAKE_TASK%'
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'webdrivers'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in webdrivers.gemspec
6
- gemspec path: '..'
7
- gem 'selenium-webdriver', github: 'seleniumhq/selenium', glob: 'rb/*.gemspec'
@@ -1,7 +0,0 @@
1
- $downloadLink = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.11.1/jruby-dist-9.2.11.1-bin.zip"
2
- $zipPath = "c:\jruby-dist-9.2.11.1-bin.zip"
3
-
4
- Write-Host "Installing $($env:RUBY_VERSION)" -ForegroundColor cyan
5
- appveyor DownloadFile "$($downloadLink)" -FileName "$($zipPath)"
6
- 7z x "$($zipPath)" -oc:\ -y # Unzip to c:\
7
- Write-Host "JRuby installed.`n" -ForegroundColor green
@@ -1,11 +0,0 @@
1
- $downloadLink = "https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en"
2
- $installerFile = "C:\MicrosoftEdgeSetup.exe"
3
-
4
- # Note: We're purposely skipping the -Wait flag in Start-Process.
5
- # This is because Edge auto-launches after the setup is done and
6
- # Start-Process continues to indefinitely wait on that process.
7
- Write-Host "Downloading Microsoft Edge (Stable)..." -ForegroundColor cyan
8
- Invoke-WebRequest $downloadLink -OutFile $installerFile
9
- Write-Host "Installing..." -ForegroundColor cyan
10
- Start-Process $installerFile
11
- Write-Host "Microsoft Edge (Stable) installed.`n" -ForegroundColor green
data/webdrivers.gemspec DELETED
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
5
- require 'webdrivers/version'
6
-
7
- Gem::Specification.new do |s|
8
- s.name = 'webdrivers'
9
- s.version = Webdrivers::VERSION
10
- s.required_ruby_version = '>= 2.4.0'
11
- s.authors = ['Titus Fortner', 'Lakshya Kapoor', 'Thomas Walpole']
12
- s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
13
- s.homepage = 'https://github.com/titusfortner/webdrivers'
14
- s.summary = 'Easy download and use of browser drivers.'
15
- s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
16
- s.licenses = ['MIT']
17
-
18
- s.metadata = {
19
- 'bug_tracker_uri' => 'https://github.com/titusfortner/webdrivers/issues',
20
- 'changelog_uri' => 'https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md',
21
- 'documentation_uri' => "https://www.rubydoc.info/gems/webdrivers/#{Webdrivers::VERSION}",
22
- 'source_code_uri' => "https://github.com/titusfortner/webdrivers/tree/v#{Webdrivers::VERSION}"
23
- }
24
-
25
- s.files = `git ls-files`.split("\n")
26
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
27
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
28
- s.require_paths = ['lib']
29
-
30
- s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
31
- s.add_development_dependency 'rake', '~> 12.0'
32
- s.add_development_dependency 'rspec', '~> 3.0'
33
- s.add_development_dependency 'rubocop', '~>0.66'
34
- s.add_development_dependency 'rubocop-performance'
35
- s.add_development_dependency 'rubocop-rspec', '~>1.32'
36
- s.add_development_dependency 'simplecov', '~>0.16'
37
-
38
- s.add_runtime_dependency 'nokogiri', '~> 1.6'
39
- s.add_runtime_dependency 'rubyzip', '>= 1.3.0'
40
- s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
41
- end