watir_model 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/watir_model.rb +3 -5
- data/watir_model.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e0f40be4b5cd8fb18525491d8ca33ee514bb7b
|
4
|
+
data.tar.gz: dcc96c4053178bd7e22018301c6b37d829d584ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43cc68f124ca456e5d66b15d96950ab1f5121ead62b7ef8bf35819c5d3356d9f3f9ffe76f190ad76bfa0b82565697d2f17376c7ba28e496ec0e1d5bf2a630f00
|
7
|
+
data.tar.gz: 26d9a4b9a6b84ebb08c3d80b76e3d5e461de4d39c4f5261bf3f0437f9fa558e53f743211d03250eff8c58110f97bfb8b0dd5fb97b72a2d1c8e6aeb39a6ad91e3
|
data/CHANGES.md
CHANGED
data/lib/watir_model.rb
CHANGED
@@ -54,10 +54,8 @@ class WatirModel
|
|
54
54
|
value = case
|
55
55
|
when data_type == String
|
56
56
|
value.to_s
|
57
|
-
when data_type == Time
|
58
|
-
|
59
|
-
when data_type == DateTime
|
60
|
-
DateTime.parse value
|
57
|
+
when data_type == Time, Date, DateTime
|
58
|
+
data_type.parse value
|
61
59
|
when data_type == Integer
|
62
60
|
value.to_i
|
63
61
|
when data_type == Float
|
@@ -111,7 +109,7 @@ class WatirModel
|
|
111
109
|
end
|
112
110
|
|
113
111
|
def data_from_yaml(file, value)
|
114
|
-
return nil
|
112
|
+
return nil if file.nil? || !(value.is_a?(Symbol) || value.is_a?(String))
|
115
113
|
YAML.load_file(file)[value.to_sym]
|
116
114
|
end
|
117
115
|
end
|
data/watir_model.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|