watir 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/lib/watir/wait.rb +12 -2
  4. data/watir.gemspec +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc26b04deabc014544f4768c6477d930ae316b9d
4
- data.tar.gz: e3e954cff4868448b49735ab2e7e04018a601bc2
3
+ metadata.gz: 1ba80da46c192619b2230212be6150d3586566a4
4
+ data.tar.gz: 19dbb91b0970bea2464b10204456c39a662211f7
5
5
  SHA512:
6
- metadata.gz: 53b68b0ca306783b02910bc0152e8ccbc064262e7b9fe22792ee32b84c436f4232a782c4e5db387ce0b1168ebc0a322b5a5d15434c83b2b43063733784a06836
7
- data.tar.gz: e2233b72dd59430fe9a49fcdf210188916719ee818724e65c9c25dc6588e9b47ddf57a97b796e54af68aca92df08203b861af946f2418c6b938395acbb467e5b
6
+ metadata.gz: 343c137c32b5e70eefe073e0dfff7909df5e901bc28eabd4c5a8de6e07baecd97f3ee70207c5dc15d8ea8c2ff27c934a3674e9faaeccd517273647109a161e08
7
+ data.tar.gz: eb26d6a072fd05b905349b0d767b0d4203ac7bddc1e46b5a0c440d8e0b6f8f3431b84d80ee642a54f2708a54b932cf0ac09994fdd8fb64660f7351b20fc13caf
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 6.0.1 (2016-11-09)
2
+
3
+ * Fix bug for `Browser#wait_until` and `wait_while` to allow ordered arguments
4
+
1
5
  ### 6.0.0 (2016-11-08)
2
6
 
3
7
  * Add `#Watir#relaxed_locate` to enable automatic waiting for elements to be ready for a specified action
@@ -115,7 +115,12 @@ module Watir
115
115
  # @param [String] message error message for when times out
116
116
  #
117
117
 
118
- def wait_until(timeout: nil, message: nil, &blk)
118
+ def wait_until(deprecated_timeout = nil, deprecated_message = nil, timeout: nil, message: nil, &blk)
119
+ if deprecated_message || deprecated_timeout
120
+ warn "Instead of passing arguments into #wait_until, use keywords"
121
+ timeout = deprecated_timeout
122
+ message = deprecated_message
123
+ end
119
124
  message ||= "waiting for true condition on #{selector_string}"
120
125
  Wait.until(timeout: timeout, message: message, object: self, &blk)
121
126
 
@@ -136,7 +141,12 @@ module Watir
136
141
  # @param [String] message error message for when times out
137
142
  #
138
143
 
139
- def wait_while(timeout: nil, message: nil, &blk)
144
+ def wait_while(deprecated_timeout = nil, deprecated_message = nil, timeout: nil, message: nil, &blk)
145
+ if deprecated_message || deprecated_timeout
146
+ warn "Instead of passing arguments into #wait_while method, use keywords"
147
+ timeout = deprecated_timeout
148
+ message = deprecated_message
149
+ end
140
150
  message ||= "waiting for false condition on #{selector_string}"
141
151
  Wait.while(timeout: timeout, message: message, object: self, &blk)
142
152
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'watir'
5
- s.version = '6.0.0'
5
+ s.version = '6.0.1'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['Alex Rodionov', 'Titus Fortner']
8
8
  s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-09 00:00:00.000000000 Z
12
+ date: 2016-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver