watir 7.0.0.beta2 → 7.0.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.
@@ -39,6 +39,7 @@ class LocalConfig
39
39
  Webdrivers::Geckodriver.update
40
40
  "geckodriver version: #{Webdrivers::Geckodriver.current_version.version}"
41
41
  when :ie
42
+ Webdrivers::IEdriver.required_version = '3.150.1'
42
43
  Webdrivers::IEdriver.update
43
44
  "iedriver version: #{Webdrivers::IEdriver.current_version.version}"
44
45
  end
@@ -155,6 +156,8 @@ RSpec.configure do |config|
155
156
  headless = WatirSpec.implementation.browser_args.last[:headless]
156
157
  guards.add_condition(:headless, headless)
157
158
 
159
+ guards.add_condition(:ci, ENV['DESKTOP_SESSION'].nil?)
160
+
158
161
  window_manager = !Selenium::WebDriver::Platform.linux? || !ENV['DESKTOP_SESSION'].nil?
159
162
  guards.add_condition(:window_manager, window_manager)
160
163
 
data/watir.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'watir/version'
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'watir'
8
8
  s.version = Watir::VERSION
9
- s.required_ruby_version = '>= 2.5.0'
9
+ s.required_ruby_version = '>= 2.6.0'
10
10
 
11
11
  s.platform = Gem::Platform::RUBY
12
12
  s.authors = ['Alex Rodionov', 'Titus Fortner', 'Justin Ko']
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
26
26
  s.require_paths = ['lib']
27
27
 
28
- s.add_dependency 'selenium-webdriver', '>= 4.0.0.beta2'
28
+ s.add_dependency 'selenium-webdriver', '~> 4.0'
29
29
  s.add_runtime_dependency 'regexp_parser', '>= 1.2', '< 3'
30
30
 
31
31
  s.add_development_dependency 'activesupport', '~> 4.0', '>= 4.1.11' # for pluralization during code generation
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.add_development_dependency 'rubocop', '~> 0.59'
40
40
  s.add_development_dependency 'selenium_statistics'
41
41
  s.add_development_dependency 'simplecov-console'
42
- s.add_development_dependency 'webdrivers', '~> 4.6'
42
+ s.add_development_dependency 'webdrivers', '~> 4.7'
43
43
  s.add_development_dependency 'webidl', '>= 0.2.2'
44
44
  s.add_development_dependency 'yard', '> 0.8.2.1'
45
45
  s.add_development_dependency 'yard-doctest', '~> 0.1.14'
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0.beta2
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
8
8
  - Titus Fortner
9
9
  - Justin Ko
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-03-28 00:00:00.000000000 Z
13
+ date: 2021-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: selenium-webdriver
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.0.beta2
21
+ version: '4.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 4.0.0.beta2
28
+ version: '4.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: regexp_parser
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '4.6'
215
+ version: '4.7'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: '4.6'
222
+ version: '4.7'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: webidl
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -278,7 +278,12 @@ files:
278
278
  - ".github/actions/enable-safari/action.yml"
279
279
  - ".github/actions/install-chrome/action.yml"
280
280
  - ".github/actions/setup-linux/action.yml"
281
- - ".github/workflows/tests.yml"
281
+ - ".github/workflows/chrome.yml"
282
+ - ".github/workflows/edge.yml"
283
+ - ".github/workflows/firefox.yml"
284
+ - ".github/workflows/ie.yml"
285
+ - ".github/workflows/safari.yml"
286
+ - ".github/workflows/unit.yml"
282
287
  - ".gitignore"
283
288
  - ".rubocop.yml"
284
289
  - ".rubocop_todo.yml"
@@ -599,7 +604,7 @@ homepage: http://github.com/watir/watir
599
604
  licenses:
600
605
  - MIT
601
606
  metadata: {}
602
- post_install_message:
607
+ post_install_message:
603
608
  rdoc_options: []
604
609
  require_paths:
605
610
  - lib
@@ -607,15 +612,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
607
612
  requirements:
608
613
  - - ">="
609
614
  - !ruby/object:Gem::Version
610
- version: 2.5.0
615
+ version: 2.6.0
611
616
  required_rubygems_version: !ruby/object:Gem::Requirement
612
617
  requirements:
613
- - - ">"
618
+ - - ">="
614
619
  - !ruby/object:Gem::Version
615
- version: 1.3.1
620
+ version: '0'
616
621
  requirements: []
617
- rubygems_version: 3.1.4
618
- signing_key:
622
+ rubygems_version: 3.2.22
623
+ signing_key:
619
624
  specification_version: 4
620
625
  summary: Watir powered by Selenium
621
626
  test_files:
@@ -1,104 +0,0 @@
1
- name: All Tests
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- documentation-test:
9
- name: Yard Doctest
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
- - uses: ruby/setup-ruby@v1
14
- with:
15
- ruby-version: 2.6
16
- - run: bundle install
17
- - uses: ./.github/actions/install-chrome
18
- - uses: ./.github/actions/setup-linux
19
- - run: |
20
- bundle exec rake yard:doctest
21
-
22
- unit-test:
23
- name: Unit Tests
24
- runs-on: ubuntu-latest
25
- strategy:
26
- fail-fast: false
27
- matrix:
28
- ruby: ['2.5', '2.6', '2.7', '3.0']
29
- steps:
30
- - uses: actions/checkout@v2
31
- - uses: ruby/setup-ruby@v1
32
- with:
33
- ruby-version: ${{ matrix.ruby }}
34
- - run: bundle install
35
- - uses: ./.github/actions/install-chrome
36
- - uses: ./.github/actions/setup-linux
37
- - run: |
38
- bundle exec rake spec:unit
39
- env:
40
- DISPLAY: :99
41
-
42
- linter-test:
43
- name: Rubocop Tests
44
- runs-on: ubuntu-latest
45
- steps:
46
- - uses: actions/checkout@v2
47
- - uses: ruby/setup-ruby@v1
48
- with:
49
- ruby-version: 2.6
50
- - run: bundle install
51
- - run: bundle exec rubocop
52
-
53
- local-tests:
54
- name: Local Tests
55
- runs-on: ${{ matrix.os }}
56
- strategy:
57
- fail-fast: false
58
- matrix:
59
- os: [ubuntu-latest, macos-latest, windows-latest]
60
- ruby: [ 2.6, 3.0 ]
61
- task: [ chrome, firefox, edge ]
62
- include:
63
- - os: 'macos-latest'
64
- ruby: 2.6
65
- task: 'safari'
66
- - os: 'macos-latest'
67
- ruby: 3.0
68
- task: 'safari'
69
- - os: 'windows-latest'
70
- ruby: 2.6
71
- task: 'ie'
72
- - os: 'windows-latest'
73
- ruby: 3.0
74
- task: 'ie'
75
- exclude:
76
- - os: 'ubuntu-latest'
77
- task: 'edge'
78
- steps:
79
- - uses: actions/checkout@v2
80
- - uses: ./.github/actions/install-chrome
81
- if: |
82
- matrix.task == 'chrome' &&
83
- matrix.os == 'ubuntu-latest'
84
- - uses: ./.github/actions/setup-linux
85
- if: matrix.os == 'ubuntu-latest'
86
- - uses: browser-actions/setup-firefox@latest
87
- with:
88
- firefox-version: '86.0'
89
- if: matrix.task == 'firefox'
90
- - uses: ./.github/actions/enable-safari
91
- if: matrix.task == 'safari'
92
- - run: |
93
- echo "COVERAGE=true" >> $GITHUB_ENV
94
- if: |
95
- matrix.os == 'ubuntu-latest' ||
96
- matrix.os == 'macos-latest'
97
- - uses: ruby/setup-ruby@v1
98
- with:
99
- ruby-version: ${{ matrix.ruby }}
100
- - run: bundle install
101
- - run: |
102
- bundle exec rake spec:${{ matrix.task }}
103
- env:
104
- DISPLAY: :99