watir_drops 0.5.2 → 0.5.3

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: b5383694f0e0dc64a11078fadafa72f4b3d2bf81
4
- data.tar.gz: cee23620fb06d3c2740f11127d8522018a7cd3bc
3
+ metadata.gz: 9b95d0954bb4433019354522aad1e9ab58973305
4
+ data.tar.gz: 462e49623d07613c354d5203707b4add48c2abd9
5
5
  SHA512:
6
- metadata.gz: 92ee5257ec1ccfd1a545fe09a2c303c4637c1dabc1ea174b161ebf4ebb4dc006c96defa691b1409e0a3835f6ea19dc28c12ea2c70634eff2f2222e49af092b33
7
- data.tar.gz: d61cdb2a9df1a3a9165053d988accd20e34d2dfbb121ad5c5b952beb0a1d839fd2d9f52206c9f9dd277ef445aae3544ffcf5e7e2bd489345f0e9243d634bbb21
6
+ metadata.gz: 1d02fffd68a67f3b65f8a5424a429f8a80ffb19d7cb266cd3067d620e838a28501a37ed4c3a71f8ac84cfe56b07e2b217b312e85f5a70f04a472b967e786ff85
7
+ data.tar.gz: 328e00e0af0cb33f74991f1c9e670bb825617f04312eca9e83a6a6add142d1ee1a7de7aef0faaa05c66fd9f47a07aa16f4e74e9a2032a2071610840aa5033899
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.5.3 (2016-03-03)
2
+
3
+ * only attempt fill forms with values defined in model instance
4
+
1
5
  ### 0.5.2 (2016-02-22)
2
6
 
3
7
  * removed feature for locating a collection based on pluralizing the element name
@@ -87,7 +87,7 @@ module WatirDrops
87
87
 
88
88
  def fill_form(model)
89
89
  model = model.to_h if model.is_a? OpenStruct
90
- intersect = self.class.element_list & model.keys
90
+ intersect = self.class.element_list & model.keys.select {|el| !model.send(el).nil?}
91
91
  intersect.each do |val|
92
92
  self.send("#{val}=", model[val])
93
93
  end
data/watir_drops.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_drops'
5
- spec.version = '0.5.2'
5
+ spec.version = '0.5.3'
6
6
  spec.authors = ['Titus Fortner']
7
7
  spec.email = ['titusfortner@gmail.com']
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_drops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-22 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport