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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75ca733cee9a96dd5d17e4ae8ed453686c73d4deaf77fae6fa4008b13b62e12d
4
- data.tar.gz: ed22e70d57b1baac7bf6aafd9f483acf16f07193fb087e872b94d24b44134165
3
+ metadata.gz: 294999a4d7d2baafd5a28b5114cfacc88effd615c606df0a7d6d57156bcf8212
4
+ data.tar.gz: 86c49647f46da133b88c48c0049410300dad35642f7d1f1b4306fa4b73e9212b
5
5
  SHA512:
6
- metadata.gz: a221f4ae1099fa5367af6c60396263d35f1d1d0fdcc8d5fda712a4ca8f3b32e3ca6de14fae15dcf39e2a76f24c91555a6ac2c5745d4d9185ecbb80a0a34e463b
7
- data.tar.gz: 41034edf9b5cf28ab1850a9f499996a4c3903cb75d77112c7d83fe342e7b097a89a83bdfff36750294bf113ba65d07e3db4500eeff8e618e48fa5e55c4e405c8
6
+ metadata.gz: 6b945e8d068713cd24b7aec8a3f9602c4dd19d23a5b5eee689d7670e9f2adf8e78b33a00da06bf218c5299a0513b7cd628d366c34494e3795c28dd505421af89
7
+ data.tar.gz: b4e692f08ba961d662f21d7d5ce01a811ed1e0dc025beca4306d1637f02e526920288aac6b7a35a08481d3069234e4576a246d24ba43580d05cc2d5d0d53c996
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ # Version 3.1.1
2
+ Release date: 2018-05-25
3
+
4
+ ### Fixes
5
+
6
+ * Ensure keystrokes are sent when setting time/date fields to a string with the Selenium driver [Thomas Walpole]
7
+
1
8
  # Version 3.1.0
2
9
  Release date: 2018-05-10
3
10
 
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.0_stable/README.md
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) unless value.respond_to?(:to_date)
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) unless value.respond_to?(:to_time)
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) unless value.respond_to?(:to_time)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Capybara
4
- VERSION = '3.1.0'.freeze
4
+ VERSION = '3.1.1'.freeze
5
5
  end
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.0
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-10 00:00:00.000000000 Z
13
+ date: 2018-05-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable