capybara 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +7 -0
- data/README.md +1 -1
- data/lib/capybara/selenium/node.rb +3 -3
- data/lib/capybara/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 294999a4d7d2baafd5a28b5114cfacc88effd615c606df0a7d6d57156bcf8212
|
4
|
+
data.tar.gz: 86c49647f46da133b88c48c0049410300dad35642f7d1f1b4306fa4b73e9212b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b945e8d068713cd24b7aec8a3f9602c4dd19d23a5b5eee689d7670e9f2adf8e78b33a00da06bf218c5299a0513b7cd628d366c34494e3795c28dd505421af89
|
7
|
+
data.tar.gz: b4e692f08ba961d662f21d7d5ce01a811ed1e0dc025beca4306d1637f02e526920288aac6b7a35a08481d3069234e4576a246d24ba43580d05cc2d5d0d53c996
|
data/History.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jnicklas/capybara?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
8
8
|
|
9
9
|
**Note** You are viewing the README for the development version of Capybara. If you are using the current release version
|
10
|
-
you can find the README at https://github.com/teamcapybara/capybara/blob/3.
|
10
|
+
you can find the README at https://github.com/teamcapybara/capybara/blob/3.1_stable/README.md
|
11
11
|
|
12
12
|
|
13
13
|
Capybara helps you test web applications by simulating how a real user would
|
@@ -241,19 +241,19 @@ private
|
|
241
241
|
end
|
242
242
|
|
243
243
|
def set_date(value) # rubocop:disable Naming/AccessorMethodName
|
244
|
-
return set_text(value)
|
244
|
+
return set_text(value) if value.is_a?(String) || !value.respond_to?(:to_date)
|
245
245
|
# TODO: this would be better if locale can be detected and correct keystrokes sent
|
246
246
|
update_value_js(value.to_date.strftime('%Y-%m-%d'))
|
247
247
|
end
|
248
248
|
|
249
249
|
def set_time(value) # rubocop:disable Naming/AccessorMethodName
|
250
|
-
return set_text(value)
|
250
|
+
return set_text(value) if value.is_a?(String) || !value.respond_to?(:to_time)
|
251
251
|
# TODO: this would be better if locale can be detected and correct keystrokes sent
|
252
252
|
update_value_js(value.to_time.strftime('%H:%M'))
|
253
253
|
end
|
254
254
|
|
255
255
|
def set_datetime_local(value) # rubocop:disable Naming/AccessorMethodName
|
256
|
-
return set_text(value)
|
256
|
+
return set_text(value) if value.is_a?(String) || !value.respond_to?(:to_time)
|
257
257
|
# TODO: this would be better if locale can be detected and correct keystrokes sent
|
258
258
|
update_value_js(value.to_time.strftime('%Y-%m-%dT%H:%M'))
|
259
259
|
end
|
data/lib/capybara/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Walpole
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- gem-public_cert.pem
|
13
|
-
date: 2018-05-
|
13
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|