chop 0.23.6 → 0.23.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: 6a0b1882650aca57681547a73bb960f648d38005
4
- data.tar.gz: 1cddefc46b23ee80395071c443d06b8867f351cb
3
+ metadata.gz: 2fb6aa4a7050219ceacc87511e5e864718f38c83
4
+ data.tar.gz: 240f88457215b1d133957cb020b2367bfa38e2bf
5
5
  SHA512:
6
- metadata.gz: 4397b86f866314766d99d41259695bd7baace641e942639a5b93000a2066a1838559ed5ac0af5e574594b0938f272f88d2ebc3ef24638ea8eb969cc8b2d73f9d
7
- data.tar.gz: a96002359f003c4f5489124863f5238e66a82d903d550f41314ad0d830d2dcdb827ccbc08255e0668739c9678d79dd8a13363abc1d9f42c52d448eb952309f0a
6
+ metadata.gz: 1caec3d5d4aeb6df3421c9120fe8c2c4f24257cc2218f316d68a082a9557cccda66528cfa871a9d53f798b0ea7dc150deb54c6ef6f64d0bba140305ee88eebd7
7
+ data.tar.gz: a22f52d9e08307861a0bbb2cb7ba9d8ffb84cb2724c4fec0f0fdcf5a371dc6412e9d174240bb53a4669c7f5d8f924e09671a20e0d872b98e545e46a68d3a65bc
data/lib/chop/form.rb CHANGED
@@ -153,9 +153,7 @@ module Chop
153
153
  end
154
154
 
155
155
  def value_field
156
- session.find("[name='#{field[:name]}'][value='#{value}']")
157
- rescue Capybara::ElementNotFound
158
- {}
156
+ session.all(:field, value).find { |el| el[:name] == field[:name] } || {}
159
157
  end
160
158
  end
161
159
 
data/lib/chop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.23.6"
2
+ VERSION = "0.23.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.6
4
+ version: 0.23.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-12 00:00:00.000000000 Z
11
+ date: 2019-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord