caprese 0.3.8 → 0.3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/caprese/record/errors.rb +1 -1
- data/lib/caprese/version.rb +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: b8780afc9827853d9450dab2dcce13687a0d84c4
|
|
4
|
+
data.tar.gz: 640a1458872ceb3e07bc7b66d029fe4304dd38c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 869251a2e14e1c5c0a218e844bc23ffe7b056bf31497a868ae72d267dc7e80b90eedf5ff29451770690e214d88fe73b01cb143cda4020099c5f054e15419ad8c
|
|
7
|
+
data.tar.gz: a9b920d30e58fb6d493db926886f1cb9325350453ff44a6a7405611083021543d2d194e700a35fff8b5fa7fc8c69af3d5f35b1a451c91b72df9d1d8000019a2e
|
data/CHANGELOG.md
CHANGED
|
@@ -38,4 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
## 0.3.8
|
|
40
40
|
|
|
41
|
-
* Use default value provided in options arg of errors.add before retrieving the value from the record (0ed5a3e)
|
|
41
|
+
* Use default value provided in `options` arg of errors.add before retrieving the value from the record (0ed5a3e)
|
|
42
|
+
|
|
43
|
+
## 0.3.8.1
|
|
44
|
+
|
|
45
|
+
* Use default value provided in `t` of `options` arg of errors.add before determining by other means (f3ad88e)
|
|
@@ -15,7 +15,7 @@ module Caprese
|
|
|
15
15
|
options = options.dup
|
|
16
16
|
options[:t] ||= {}
|
|
17
17
|
options[:t][:count] = options[:count]
|
|
18
|
-
options[:t][:value]
|
|
18
|
+
options[:t][:value] ||= options[:value] ||
|
|
19
19
|
if attribute != :base && @base.respond_to?(attribute)
|
|
20
20
|
@base.send(:read_attribute_for_validation, attribute)
|
|
21
21
|
else
|
data/lib/caprese/version.rb
CHANGED