watir_model 0.4.5 → 0.4.6
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 +5 -1
- data/watir_model.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fdf8505d77d7adfa4b9ede2a6c7c6cc65b83bfe
|
4
|
+
data.tar.gz: a9417429d02f0cfa2685cce6c1f7e7caaf4b158f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7905f553d635cbeae6ac9b3c917dbbc057d180554700086ece5ea6cc5de8dad5ec019b0c06eb2f9a11ae197a702ed8997f601568b0eef21a4d17c3d61b6ee1e
|
7
|
+
data.tar.gz: 86da4a818ee420d29891844f679a78c639d117ad7c8007fbffbd7f1d099c33755b9274ed425a2227af00b71563c0e413fec8fd8a814a38337bd019116891daa1
|
data/CHANGES.md
CHANGED
data/lib/watir_model.rb
CHANGED
@@ -54,7 +54,7 @@ class WatirModel
|
|
54
54
|
value = case
|
55
55
|
when data_type == String
|
56
56
|
value.to_s
|
57
|
-
when
|
57
|
+
when [Time, Date, DateTime].include?(data_type)
|
58
58
|
data_type.parse value
|
59
59
|
when data_type == Integer
|
60
60
|
value.to_i
|
@@ -177,6 +177,10 @@ class WatirModel
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
+
def to_json(*)
|
181
|
+
to_hash.to_json
|
182
|
+
end
|
183
|
+
|
180
184
|
def to_api
|
181
185
|
hash = to_hash
|
182
186
|
apis.each do |key, value|
|
data/watir_model.gemspec
CHANGED