polyblock 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: 778fe1861ddfad519060397796abf565d0f0c827
4
- data.tar.gz: f7d0cd8cffd99107b9008b3e7653600aa4a6f920
3
+ metadata.gz: 8bf9008887fae26ad79aa76fbe8a172da6ad6ab3
4
+ data.tar.gz: 6c9495b8d6baa16961f04c5bea3568b254d98ac8
5
5
  SHA512:
6
- metadata.gz: 72b73996dae288974773f0d4826cc01393e4bf311362211be52260ad511f94d176e475396d17b44eabbaa49539b8164c54435c3bf65ea446ad025b9a35d66bcf
7
- data.tar.gz: 3a6e0b0dca74b25bea85934655183b94069fece2d889098888b50d9078ec1150d55b2b683ff51e925bb7eb2d69a43b6a449c368cfb0f27f910d40bc44e923c91
6
+ metadata.gz: d74df5375feb912807a23523df66b582efe50a5b3287ec86733509d01999a7b2cbb64caf76063b7ec11fb08f1bdb88067fe3c8e8e209a3ebf73c70fa1ba69696
7
+ data.tar.gz: d401f0d06297798a2bc786203534ddb0e3ae1345bc8864a82ccdac663635c3e13fe178f51db0b079a5160a93d1f3f716418cd4f3fcd71303b1b8b0a1d3571675
@@ -3,7 +3,8 @@ module Polyblock
3
3
  def fill_in_polyblock(locator, params={})
4
4
  # Find out ckeditor id at runtime using its label
5
5
  # if page.has_css? "##{locator}"
6
- if page.evaluate_script("$('##{locator}').is('*')")
6
+ if !locator.include?(' ') && page.evaluate_script("$('##{locator}').is('*')")
7
+ # Locator is fine as is for capybara.
7
8
  # elsif page.has_css? 'label', text: locator
8
9
  elsif page.evaluate_script("$(\"label:contains('#{locator}')\").is('*')")
9
10
  locator = find('label', text: locator)[:for]
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails