capybara 3.2.0 → 3.2.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: 3f4ca4591c94a37a0a1c69adceb5165923d98c18d12f5522c709461d566ee1b2
4
- data.tar.gz: a81064c22b5ad8a3c3967a155a481fc1c25c154056377c1d08188c15de5afe67
3
+ metadata.gz: e7a05e30cbe8690367f383d17347c7b804e4d344ad3133ade68455a048b42808
4
+ data.tar.gz: b636d45641d3a1984b28efb9cd1079df36e7f41bf7ae0dc99335aa36e925951a
5
5
  SHA512:
6
- metadata.gz: bcdf15351d765a4c3112db4744b85ba02770cd8367fcb28970f89d2971a07e6643efd949458e124bf634f9d27204e5a2f6c582a0ef183ceeb59cf6f05d3bd826
7
- data.tar.gz: 1b798cb089ce2a0524633345f61ff6471041418ae9b4d561f1be50b27b32946d61ebcf62fe4f6f34f0ff699cff9465baf933c7292256fb08d962aa244007eed4
6
+ metadata.gz: 0e7499bd3c7f96850db011ebf6215c8e27e11cfcc0c9a000a12b655455d03969fcaa8b17d09cbb4e672ff5ac3eaeb84d45e98d556bc26c42f4f0e0f9b55a7573
7
+ data.tar.gz: '053149fbaa728ab525ed988ef231fcc8189db64baf64fc6be64df8d05c86bd9ca13023028fdd1fe92751fc7345df2e4930e3cccf20306c7805265c27ee09518e'
data/History.md CHANGED
@@ -1,3 +1,11 @@
1
+ # Version 3.2.1
2
+ Release date: 2018-06-04
3
+
4
+ ### Fixes
5
+
6
+ * Only split CSS selectors when :class or :id options are given. Restores 3.1.1 functionality for now but the underlying issue
7
+ will require a larger fix, hopefully coming soon. - Issue #2044 [Thomas Walpole]
8
+
1
9
  # Version 3.2.0
2
10
  Release date: 2018-06-01
3
11
 
@@ -225,12 +225,14 @@ module Capybara
225
225
  raise ArgumentError, "XPath expressions are not supported for the :class filter with CSS based selectors"
226
226
  end
227
227
 
228
- css_selectors = expr.split(',').map(&:rstrip)
229
- expr = css_selectors.map do |sel|
230
- sel += "##{Capybara::Selector::CSS.escape(options[:id])}" if process_id
231
- sel += css_from_classes(Array(options[:class])) if process_class
232
- sel
233
- end.join(", ")
228
+ if process_class || process_id
229
+ css_selectors = expr.split(',').map(&:rstrip)
230
+ expr = css_selectors.map do |sel|
231
+ sel += "##{Capybara::Selector::CSS.escape(options[:id])}" if process_id
232
+ sel += css_from_classes(Array(options[:class])) if process_class
233
+ sel
234
+ end.join(", ")
235
+ end
234
236
  expr
235
237
  end
236
238
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Capybara
4
- VERSION = '3.2.0'
4
+ VERSION = '3.2.1'
5
5
  end
@@ -273,7 +273,7 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
273
273
  expect(@animation_session).to have_no_link('transition me away', wait: 0.5)
274
274
  end
275
275
 
276
- it "should disable CSS animations", :focus_ do
276
+ it "should disable CSS animations" do
277
277
  @animation_session.visit('with_animation')
278
278
  @animation_session.click_link('animate me away')
279
279
  expect(@animation_session).to have_no_link('animate me away', wait: 0.5)
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.2.0
4
+ version: 3.2.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-06-01 00:00:00.000000000 Z
13
+ date: 2018-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable