caprese 0.3.7 → 0.3.8

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: 1411527e1ecd7ef00676128c958c74414fb50b30
4
- data.tar.gz: c96f3f3938d48b99c885107f7670f886d5b81dcb
3
+ metadata.gz: cbb143b75c3fdf2f50448c9f37e9f47915b5e0f0
4
+ data.tar.gz: 346a91af8194f1afd46ba445de62da6a300b3ce9
5
5
  SHA512:
6
- metadata.gz: 9d4417c5faa6901736c30076beaee8ab27db4f0139021515ceb45736516a3fe3823b846d198729b6509e2230b7ed0401a59ab71bb2d6015947f72be1cd506435
7
- data.tar.gz: d5a26e58f9619aad4e473161bb4653a07c2ee727ebc87ed961a03bd90a39c4fee50d40b9a697d348ea83aae208a029038d5c84ff951cbdad32c7b4956e141a09
6
+ metadata.gz: c346b5c6524561b3218329d332948bda502d7982023c5d9434be2c41d38bff6af404bc0ddf748aa2f2da7561cd88eb42a3a21aa3fcf52d69f2a37fddcd6a8c8e
7
+ data.tar.gz: d7068484f1d4b273aa47a6a450426f8a6f11171b612088b7402908d0455ab96d6d906e921f715d8a104dc2284a388a54fd570098ab781ffd65ffa0d31f2a094b
data/CHANGELOG.md CHANGED
@@ -35,3 +35,7 @@
35
35
  ## 0.3.7
36
36
 
37
37
  * Completes error source pointer determination to include primary data items and relationship primary data items
38
+
39
+ ## 0.3.8
40
+
41
+ * Use default value provided in options arg of errors.add before retrieving the value from the record (0ed5a3e)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
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.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe