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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbb143b75c3fdf2f50448c9f37e9f47915b5e0f0
4
- data.tar.gz: 346a91af8194f1afd46ba445de62da6a300b3ce9
3
+ metadata.gz: b8780afc9827853d9450dab2dcce13687a0d84c4
4
+ data.tar.gz: 640a1458872ceb3e07bc7b66d029fe4304dd38c5
5
5
  SHA512:
6
- metadata.gz: c346b5c6524561b3218329d332948bda502d7982023c5d9434be2c41d38bff6af404bc0ddf748aa2f2da7561cd88eb42a3a21aa3fcf52d69f2a37fddcd6a8c8e
7
- data.tar.gz: d7068484f1d4b273aa47a6a450426f8a6f11171b612088b7402908d0455ab96d6d906e921f715d8a104dc2284a388a54fd570098ab781ffd65ffa0d31f2a094b
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] = options[: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
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.8'
2
+ VERSION = '0.3.8.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caprese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe